* luci/themes: next round of css fixes for openwrt.org theme

This commit is contained in:
Jo-Philipp Wich 2008-07-07 19:36:43 +00:00
parent b736c37da0
commit 7e674adf82
2 changed files with 74 additions and 55 deletions

View file

@ -28,6 +28,10 @@ div#content ul {
display: none; display: none;
} }
.error {
color: #ff0000;
}
#header { #header {
min-height: 98px; min-height: 98px;
background-image: url(header.jpg); background-image: url(header.jpg);
@ -51,9 +55,16 @@ div#content ul {
display: none; display: none;
} }
.menubar {
width: 100%;
min-height: 1.8em;
background: #000000;
color: #ffffff;
}
.mainmenu { .mainmenu {
float: left; float: left;
width: 100%; width: auto;
min-height: 1.8em; min-height: 1.8em;
background: #000000; background: #000000;
color: #ffffff; color: #ffffff;
@ -65,7 +76,6 @@ div#content ul {
.mainmenu div { .mainmenu div {
float: left; float: left;
/*display: inline;*/
} }
.mainmenu div ul { .mainmenu div ul {
@ -85,7 +95,6 @@ div#content ul {
} }
.mainmenu ul li > ul { .mainmenu ul li > ul {
/* display: none;*/
left: 100%; left: 100%;
margin-top: -1.8em; margin-top: -1.8em;
border-width: 1px; border-width: 1px;
@ -95,7 +104,6 @@ div#content ul {
.mainmenu a { .mainmenu a {
display: block; display: block;
padding: 0.5em; padding: 0.5em;
/*width: */
color: #ffffff; color: #ffffff;
text-decoration: none; text-decoration: none;
font-size: 80%; font-size: 80%;
@ -110,7 +118,6 @@ div#content ul {
.mainmenu li:hover > span > a, .mainmenu li:hover > span > a,
.mainmenu div:hover > a { .mainmenu div:hover > a {
font-weight: bold; font-weight: bold;
/* color: #ffffff;*/
} }
.modemenu a:hover, .modemenu a:hover,
@ -127,10 +134,7 @@ div#content ul {
} }
.modemenu ul { .modemenu ul {
float: right; width: auto;
/*max-width: 45%;*/
width: 45%;
margin-top: -1.8em;
background: #000000; background: #000000;
color: #ffffff; color: #ffffff;
list-style-type: none; list-style-type: none;
@ -141,25 +145,23 @@ div#content ul {
} }
.sidebar { .sidebar {
/* display: none;*/ position: absolute;
/* float: right;*/ top: -50px;
position: fixed;
bottom: 0.5em;
right: 0; right: 0;
width: 19%; width: 18%;
color: #888888; color: #888888;
text-align: center; text-align: center;
font-size: 100%; font-size: 100%;
font-weight: bold; font-weight: bold;
z-index: -1;
} }
.sidebar ul { .sidebar ul {
float: right;
width: 100%; width: 100%;
margin-top: 0.5em; margin-top: 16em;
list-style-type: none; list-style-type: none;
color: #ffffff; color: #ffffff;
text-align: right; text-align: left;
font-size: 80%; font-size: 80%;
font-size: normal; font-size: normal;
} }
@ -167,7 +169,6 @@ div#content ul {
#content { #content {
clear: both; clear: both;
width: 60%; width: 60%;
/*margin: 2.25em 20% 0 20%;*/
margin: 0 auto; margin: 0 auto;
padding: 0.5em; padding: 0.5em;
background: #f5f5f5; background: #f5f5f5;
@ -192,7 +193,6 @@ div#content ul {
} }
#content p { #content p {
/* margin: 1em;*/
margin-bottom: 1em; margin-bottom: 1em;
} }
@ -208,8 +208,8 @@ div#content ul {
} }
.cbi-section h3 { .cbi-section h3 {
height: 1.2em; height: 1em;
margin-top: -1.2em; font-size: 120%;
} }
.cbi-section-descr { .cbi-section-descr {
@ -225,13 +225,19 @@ label {
select, select,
input, input,
textarea { textarea {
background: #dddddd; background: #eeeeee;
color: #000000; color: #000000;
border: 1px solid #000000; border: 1px solid #000000;
} }
input:focus,
textarea:focus {
background: #ffffff;
}
select, select,
input[type=text] { input[type=text],
input[type=password] {
width: 20em; width: 20em;
} }
@ -251,6 +257,7 @@ table.smalltext {
border-top: 1px solid #666666; border-top: 1px solid #666666;
border-right: 1px solid #666666; border-right: 1px solid #666666;
border-bottom: 1px solid #666666; border-bottom: 1px solid #666666;
font-size: 90%;
} }
table.smalltext tr th { table.smalltext tr th {
@ -266,23 +273,27 @@ table.smalltext tr td {
div.cbi-value { div.cbi-value {
clear: left; clear: left;
border-bottom: 1px dotted #AAAAAA; padding: 0.25em;
border-bottom: 1px dotted #bbbbbb;
}
div.cbi-value:hover {
background: #f8f8f8;
} }
div.cbi-value:last-child { div.cbi-value:last-child {
border: none; border: none;
} }
div.cbi-value-title { .cbi-value-title {
width: 30%;
float: left; float: left;
margin: 0.5em 0; width: 30%;
margin: 0.25em 0;
} }
div.cbi-value-field { div.cbi-value-field {
width: 68%; width: 68%;
float: left; margin: 0.25em 0 0.25em 30%;
margin: 0.5em 0;
} }
div.cbi-value-description { div.cbi-value-description {
@ -299,16 +310,21 @@ div.cbi-map-descr {
div.cbi-optionals { div.cbi-optionals {
margin: 0.5em 0; margin: 0.5em 0;
padding: 0 0.25em;
}
div.cbi-section-remove {
float: right;
} }
div.cbi-section-remove input { div.cbi-section-remove input {
border-color: #AAAAAA; border-color: #bbbbbb;
border-bottom: none; border-bottom: none;
} }
div.cbi-section-node { div.cbi-section-node {
border: 1px solid #AAAAAA; clear: both;
padding: 0.25em; border: 1px dotted #bbbbbb;
padding-bottom: 0; padding-bottom: 0;
} }

View file

@ -56,6 +56,7 @@ end
%> %>
</div> </div>
<div class="menubar">
<div class="mainmenu"> <div class="mainmenu">
<% <%
local function submenu(prefix, node) local function submenu(prefix, node)
@ -116,6 +117,8 @@ end
end%> end%>
</ul> </ul>
</div> </div>
<br class="clear" />
</div>
<div class="sidebar"> <div class="sidebar">
<% <%
if "admin" == request[1] then if "admin" == request[1] then