Fixes in css

This commit is contained in:
Antonio de la Rosa 2018-09-30 05:55:54 +02:00
parent 2e9fa5fa8d
commit f5ccab3952
7 changed files with 85 additions and 39 deletions

View file

@ -268,7 +268,7 @@ def login():
user_admin.conditions=['WHERE username=%s', [username]]
arr_user=user_admin.select_a_row_where(['id', 'password', 'privileges', 'lang', 'num_tries'])
arr_user=user_admin.select_a_row_where(['id', 'password', 'privileges', 'lang', 'num_tries', 'email'])
if arr_user==False:
@ -293,6 +293,7 @@ def login():
s['login']=1
s['privileges']=arr_user['privileges']
s['lang']=arr_user['lang']
s['email']=arr_user['email']
if s['lang']=='':
s['lang']=I18n.default_lang

View file

@ -1,9 +1,11 @@
body
{
margin:0px;
background-color:#f7f6f1;
font-family: "Helvetica", sans, sans-serif, serif;
font-family: "Roboto", sans, sans-serif, serif;
font-size: 16px;
}
@ -28,7 +30,7 @@ a:hover
height:47px;
color:#000;
font-size:22px;
font-family:"Open Sans", sans, serif;
font-family:"Roboto", sans, serif;
/*background-image:url('../images/background.png');
background-position:top;
background-repeat:repeat-x;*/
@ -42,7 +44,7 @@ a:hover
font-size:28px;
padding-left:15px;
color: #555555;
font-family:"Open Sans", sans, serif;
font-family:"Roboto", sans, serif;
/*font-style:italic;*/
/*text-shadow:#000000 1px 1px 1px;
filter: progid:DXImageTransform.Microsoft.Shadow(color='#000000', Direction=130, Strength=4);*/
@ -63,12 +65,12 @@ a:hover
h1, h2
{
font-family:"Helvetica", sans, serif;
font-family:"Roboto", sans, serif;
border: solid #cbcbcb;
border-width: 0px 0px 1px 1px;
font-size:26px;
color:#333333;
margin:0px;
margin:0px 0px 20px 0px;
padding:5px 10px;
font-weight:normal;
background: #e6e6e6;
@ -86,6 +88,16 @@ h2 {
}
h1 {
-webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
font-size:20px;
padding:3px 10px;
}
p {
border: solid #cbcbcb;
@ -124,23 +136,28 @@ p {
width:17%;
margin-right:0px;
position:relative;
border:solid #cccccc;
border-width:0px 1px 1px 0px;
/* border:solid #cccccc;
border-width:0px 1px 1px 0px;*/
box-sizing: border-box;
padding-bottom: 100px;
overflow:hidden;
}
#menu a
{
font-size:14px;
font-size:16px;
/*font-family:arial, sans;*/
text-decoration:none;
color:#6183b0;
color:#ededed;
display:block;
border:solid #cccccc;
/*border-width:0px 1px 1px 1px;*/
border-width:0px;
padding:5px;
background: #ececec;
padding-top:10px;
padding-bottom:10px;
background: transparent;
}
#menu a:hover
@ -148,7 +165,7 @@ p {
text-decoration:underline;
color:#fbfbfb;
background: #18788d;
background: #0fb1dd;
text-decoration:none;
}
@ -167,7 +184,7 @@ p {
padding:5px;
font-size:18px;
font-family:"Helvetica", sans, serif;
font-family:"Roboto", sans, serif;
font-weight:bold;
/*background-image:url('../images/background_title.png');
background-position:top;
@ -176,12 +193,15 @@ p {
/*border:solid #cccccc;
border-width:0px 1px 1px 1px;*/
color: #fbfbfb;
overflow: hidden;
box-sizing: border-box;
}
.father_admin {
font-family:"Helvetica", sans, serif;
font-family:"Roboto", sans, serif;
padding:5px;
font-size:18px;
display: block;
@ -218,24 +238,31 @@ p {
{
margin:auto;
background-color:#ffffff;
background: rgba(18,47,59,1);
background: -moz-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(18,47,59,1)), color-stop(51%, rgba(18,47,59,1)), color-stop(74%, rgba(18,47,59,1)), color-stop(100%, rgba(8,59,77,1)));
background: -webkit-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -o-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -ms-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: linear-gradient(to right, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background-size: 17% 100%;
background-repeat:no-repeat;
padding:0px;
border:solid #bcbcbc;
border-width: 1px;
font-size:14px;
border-width: 0px;
font-size:16px;
position:relative;
overflow:auto;
/*background: linear-gradient(to right, #ababab , #cbcbcb);
background-size:244px;
background-repeat: repeat-y;*/
border: solid #cbcbcb;
border-width: 0px 0px 1px 0px;
}
.contents
{
float:right;
width:82%;
width:83%;
padding:0px 0px 0px 0px;
box-sizing: border-box;
}
.content
@ -260,7 +287,7 @@ p {
background-color: #337ab7;
border-radius: 8px 8px 0px 0px;
border:solid #337ab7;
border-width:1px 1px 1px 1px;
border-width:1px 0px 1px 0px;
margin-top:8px;
}
@ -591,6 +618,7 @@ a:hover.no_choose_flag
top:8px;
right:5px;
height:10px;
}
@ -601,7 +629,7 @@ a:hover.no_choose_flag
right:10px;
width:55px;
font-weight:bold;
font-size:12px;
font-size:10px;
text-decoration: none;
/*border: solid #000 1px;*/
}
@ -729,6 +757,12 @@ a.form_button_tab:hover
/* Media queries */
@media only screen and (max-width: 800px) {
.content_admin {
background: transparent;
}
#toggle {
@ -753,6 +787,19 @@ a.form_button_tab:hover
width:100%;
}
#menu a {
background: rgba(18,47,59,1);
background: -moz-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -webkit-gradient(left top, right top, color-stop(0%, rgba(18,47,59,1)), color-stop(51%, rgba(18,47,59,1)), color-stop(74%, rgba(18,47,59,1)), color-stop(100%, rgba(8,59,77,1)));
background: -webkit-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -o-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: -ms-linear-gradient(left, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
background: linear-gradient(to right, rgba(18,47,59,1) 0%, rgba(18,47,59,1) 51%, rgba(18,47,59,1) 74%, rgba(8,59,77,1) 100%);
}
#title_phango
{
font-size:18px;

View file

@ -899,4 +899,4 @@ a.see {
width:40px;
text-align:center;
}
}

View file

@ -19,8 +19,15 @@ ${add_js_home_local('jquery.min.js', 'admin')}
${add_js_home_local('responsive-nav.min.js', 'admin')}
${add_js_home_local('tooltipster.bundle.min.js', 'admin')}
${HeaderHTML.css_home()|n}
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<%block name="extra_css">
</%block>
${HeaderHTML.js_home()|n}
<%block name="extra_js">
</%block>
${HeaderHTML.header_home()|n}
<%block name="extra_header">
</%block>
</head>
<body>
<div id="languages_general">
@ -32,7 +39,7 @@ ${HeaderHTML.header_home()|n}
<div id="center_body">
<div id="header">
<a href="#nav" id="toggle"><i class="fa fa-bars" aria-hidden="true"></i><span>Menu</span></a>
<span id="title_phango">Paramecio</span> <span id="title_framework">Framework!</span>
<%block name="title_admin"><span id="title_phango">Paramecio</span> <span id="title_framework">Framework!</span></%block>
<div id="languages_general">
<%def name="select_lang(i18n, lang_selected)">
% if i18n==lang_selected:
@ -52,11 +59,11 @@ ${HeaderHTML.header_home()|n}
<div class="content_admin">
<nav id="menu" class="nav-collapse">
<ul>
<li class="menu_title"><i class="fa fa-gear" aria-hidden="true"></i> ${lang('admin', 'applications', 'Applications')}</li>
<li class="menu_title"><i class="fa fa-gear" aria-hidden="true"></i>&nbsp;&nbsp; ${lang('admin', 'applications', 'Applications')}</li>
% for module in menu:
% if type(menu[module]).__name__=='list':
% if menu[module][0]!="":
<li><a href="${check_menu(module).strip()|n}"><i class="fa fa-circle-o" aria-hidden="true"></i> ${menu[module][0]}</a></li>
<li><a href="${check_menu(module).strip()|n}"><i class="fa fa-circle-o" aria-hidden="true"></i>&nbsp;&nbsp; ${menu[module][0]}</a></li>
% endif
% else:
% if menu[module]!="":