* luci/themes: merge openwrt.org the from xyron

This commit is contained in:
Jo-Philipp Wich 2008-07-06 17:31:22 +00:00
parent c33d0c62b0
commit 4fe7531e6b
5 changed files with 237 additions and 272 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -1,298 +1,265 @@
@charset "utf-8"; * {
margin: 0;
padding: 0;
}
body { body {
background-color: #4a6b7c;
background-image: url(bg.jpg);
background-position: bottom center;
background-attachment: fixed;
background-repeat: repeat-x;
color: #ffffff;
font-family: Verdana, Arial, sans-serif; font-family: Verdana, Arial, sans-serif;
background-color: #557788; font-size: 100%;
} line-height: 100%;
h1 {
margin: 0%;
font-size: 1.4em;
font-weight: bold;
margin-bottom: 0.5em;
}
h2 {
margin: 0%;
font-size: 1.2em;
font-weight: bold;
}
h3 {
margin: 0%;
}
#page {
background-color: #d4dce0;
border-left: 3px solid #000000;
border-right: 3px solid #000000;
}
#header {
padding: 0.2em;
height: 4.5em;
padding-left: 1.2em;
}
#columns {
border-left: 10.1em solid #ccd6db;
border-right: 10.1em solid #ccd6db;
display: block;
padding: 0.1em;
}
#columnswrapper {
display: block;
margin-left: -10em;
margin-right: -10em;
}
#content {
margin-left: 14em;
margin-right: 14em;
display: block;
position: relative;
padding: 2px;
font-size: 0.8em;
}
.headerlogo {
height: 4em;
padding: 5px;
}
.headerlogo img {
height: 100%;
}
.headertitle {
font-size: 2.4em;
color: black;
font-weight: bold;
letter-spacing: 0.6em;
text-transform: lowercase;
}
.separator {
padding-left: 0.25em;
font-weight: bold;
font-size: 0.8em;
line-height: 1.4em;
}
.whitetext {
color: white;
}
.blacktext {
color: #000000;
}
.magentatext {
color: #dc0065;
}
.inheritcolor {
color: inherit;
}
.smalltext {
font-size: 0.8em;
}
.black {
background-color: #000000;
}
.nodeco {
text-decoration: none;
}
.redhover:hover {
color: red;
}
.bold {
font-weight: bold;
}
.sidebar {
position: relative;
padding: 0.25em;
color: gray;
width: 9em;
font-weight: bold;
}
.separator a, .sidebar a {
color: inherit;
text-decoration: inherit;
}
.separator a:hover, .sidebar a:hover {
color: red;
}
.sidebar div {
padding-bottom: 0.5em;
}
.sidebar ul {
font-size: 0.9em;
color: white;
list-style-type: none;
padding-left: 1em;
margin-top: 0%;
}
.table {
display: table;
}
.table-row {
display: table-row;
}
.table-cell {
display: table-cell;
}
.left {
float: left;
text-align: left;
}
.right {
float: right;
text-align: right;
} }
.clear { .clear {
clear: both; clear: both;
height: 1px;
} }
.hidden { .hidden {
display: none; display: none;
} }
.inline { #header {
display: inline; min-height: 98px;
} background-image: url(header.jpg);
background-repeat: no-repeat;
.code { background-position: left center;
background: #f7f7f7; background-color: #557788;
border: 1px solid #d7d7d7;
margin: 1em 1.75em;
padding: 1em;
}
code {
display: block;
background: #f7f7f7;
border: 1px solid #d7d7d7;
margin: 1em 1.75em;
padding: 1em;
overflow: auto;
white-space: pre;
}
.cbi-section {
margin-top: 1em;
}
.cbi-section-remove {
text-align: right; text-align: right;
} }
.cbi-value { #header .info {
display: table-row; padding: 1em 1em;
font-size: 70%;
line-height: 160%;
} }
.cbi-value-title { #header .title {
display: table-cell; display: none;
line-height: 1.75em; }
.pathbar {
display: none;
}
.mainmenu {
float: left;
width: 100%;
/* height: 2em;*/
min-height: 1.5em;
background: #000000;
color: #ffffff;
}
.mainmenu div {
float: left;
/*display: inline;*/
}
.mainmenu div ul {
display: none;
position: absolute;
background: #000000;
color: #ffffff;
border-width: 0 1px 1px 1px;
border-style: solid;
border-color: #444444;
list-style-type: none;
}
.mainmenu ul li:hover > ul,
.mainmenu div:hover > ul {
display: block;
}
.mainmenu ul li > ul {
/* display: none;*/
left: 100%;
margin-top: -1.8em;
border-width: 1px;
}
.modemenu a,
.mainmenu a {
display: block;
padding: 0.5em;
/*width: */
color: #ffffff;
text-decoration: none;
font-size: 80%;
}
.mainmenu .active a,
.modemenu .active a {
color: #ffff00;
font-weight: bold; font-weight: bold;
padding: 0.25em;
} }
.cbi-value-field { .mainmenu li:hover > span > a,
display: table-cell; .mainmenu div:hover > a {
text-align: left; font-weight: bold;
padding: 0.25em; /* color: #ffffff;*/
line-height: 1.75em;
} }
.cbi-value-field input, .cbi-value-field select, .modemenu a:hover,
.cbi-optionals select, .cbi-optionals input, .modemenu a:focus,
.cbi-section-remove input, .cbi-section-create input { .mainmenu a:hover,
font-size: 0.8em; .mainmenu a:focus {
margin: 0%; color: #ffff00;
font-weight: bold;
}
.mainmenu div.preactive > a {
color: #ffff00;
font-weight: bold;
}
.modemenu ul {
float: right;
/*max-width: 45%;*/
width: 45%;
margin-top: -1.8em;
background: #000000;
color: #ffffff;
list-style-type: none;
}
.modemenu li {
float: right;
}
.sidebar {
/* display: none;*/
/* float: right;*/
position: fixed;
bottom: 0.5em;
right: 0;
width: 19%;
color: #888888;
text-align: center;
font-size: 100%;
font-weight: bold;
}
.sidebar ul {
float: right;
width: 100%;
margin-top: 0.5em;
list-style-type: none;
color: #ffffff;
text-align: right;
font-size: 80%;
font-size: normal;
}
#content {
clear: both;
width: 60%;
/*margin: 2.25em 20% 0 20%;*/
margin: 0 auto;
padding: 0.5em;
background: #f5f5f5;
color: #000000;
border-width: 0 1px 1px 1px;
border-style: solid;
border-color: #444444;
font-size: 80%;
}
#content h1 {
margin: 0.25em 0 0.5em 0;
font-size: 150%;
font-weight: normal;
}
#content h2 {
margin: 0.5em 0;
font-size: 120%;
font-weight: normal;
text-decoration: underline;
}
#content p {
/* margin: 1em;*/
margin-bottom: 1em;
}
.cbi-section {
margin: 0 1em;
}
.cbi-section h2 {
margin: 0.5em 0 0.5em -0.5em !important;
} }
.cbi-section-descr { .cbi-section-descr {
padding-bottom: 1em;
}
.cbi-value-description {
display: inline;
font-style: italic;
font-size: 0.8em;
padding: 0.25em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
.cbi-form-separator { input[type=submit],
margin-top: 1em; input[type=reset],
label {
cursor: pointer;
} }
.cbi-section-node { select,
display: table; input,
padding: 0.25em; textarea {
background: #dddddd;
color: #000000;
border: 1px solid #000000; border: 1px solid #000000;
} }
.cbi-section-row { select,
display: table-row; input[type=text] {
width: 20em;
} }
.cbi-section-row-head { textarea {
display: table-cell; margin-left: -1px;
font-weight: bold;
padding: 0.25em;
}
.cbi-section-row-descr {
display: table-cell;
padding: 0.25em;
font-size: 0.8em;
}
.cbi-section-node h3 {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
.cbi-error { form > div > input[type=submit],
color: red; form > div > input[type=reset] {
font-weight: bold; float: right;
font-size: 0.8em; margin-left: 0.5em;
margin-bottom: 0.75em;
} }
.cbi-optionals { table.smalltext {
margin-top: 1em; background: #f5f5f5;
display: table-cell; border-top: 1px solid #666666;
border-right: 1px solid #666666;
border-bottom: 1px solid #666666;
} }
.cbi-optionals option { table.smalltext tr th {
font-size: 0.8em; padding: 0 0.25em;
border-left: 1px solid #666666;
} }
.error { table.smalltext tr td {
color: red; padding: 0 0.25em;
font-weight: bold; border-top: 1px solid #666666;
border-left: 1px solid #666666;
} }
.ok { .luci {
color: green; position: fixed;
font-weight: bold; bottom: 0;
} left: 0;
text-align: right;
}
.luci a {
color: #666666;
text-decoration: none;
font-size: 70%;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -1,8 +1,8 @@
<br class="clear" />
</div> </div>
<div class="clear"></div>
</div></div> </div></div>
</div> </div>
<div class="separator black whitetext bold"><a href="<%=controller%>/about"><%= luci.__appname__ .. " " .. luci.__version__%> - Lua Configuration Interface</a></div> <div class="luci separator black whitetext bold"><a href="<%=controller%>/about">Powered by <%= luci.__appname__ .. " " .. luci.__version__%></a></div>
</body> </body>
</html> </html>

View file

@ -30,19 +30,19 @@ require("luci.http").prepare_content("text/html")
</head> </head>
<body> <body>
<div id="header"> <div id="header">
<div class="whitetext smalltext bold right"> <div class="info whitetext smalltext bold right">
<%=luci.config.brand.firmware%><br /> <%=luci.config.brand.firmware%><br />
<%=luci.config.brand.distro%><br /> <%=luci.config.brand.distro%><br />
<%:load%>: <%=load1%> <%=load5%> <%=load15%><br /> <%:load%>: <%=load1%> <%=load5%> <%=load15%><br />
<%:hostname%>: <%=luci.sys.hostname()%> <%:hostname%>: <%=luci.sys.hostname()%>
</div> </div>
<div> <div class="title">
<span class="headertitle"><%=luci.config.brand.title%></span><br /> <span class="headertitle"><%=luci.config.brand.title%></span><br />
<span class="whitetext bold"><%=luci.config.brand.subtitle%></span> <span class="whitetext bold"><%=luci.config.brand.subtitle%></span>
</div> </div>
</div> </div>
<div class="separator black whitetext bold"> <div class="pathbar separator black whitetext bold">
<%:path%>: <% <%:path%>: <%
local c = tree local c = tree
local url = controller local url = controller
@ -56,9 +56,7 @@ end
%> %>
</div> </div>
<div id="page"> <div class="mainmenu">
<div id="columns"><div id="columnswrapper">
<div class="sidebar left">
<% <%
local function submenu(prefix, node) local function submenu(prefix, node)
if not node._menu_selected or not node.nodes then if not node._menu_selected or not node.nodes then
@ -80,7 +78,7 @@ local function submenu(prefix, node)
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
%> %>
<li> <li>
<span<% if nnode._menu_selected then %> class="blacktext"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span> <span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span>
<% submenu(prefix .. v.name .. "/", nnode) %> <% submenu(prefix .. v.name .. "/", nnode) %>
</li> </li>
<% end %> <% end %>
@ -101,7 +99,7 @@ if cattree and cattree.nodes then
if node.title and node.target then if node.title and node.target then
local href = controller.."/"..category.."/"..k.name local href = controller.."/"..category.."/"..k.name
href = (k.query) and href .. luci.http.build_querystring(k.query) or href %> href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
<div<% if node._menu_selected then %> class="blacktext"<%end%>><a href="<%=href%>"><%=node.title%></a> <div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=href%>"><%=node.title%></a>
<%submenu("/" .. category .. "/" .. k.name .. "/", node)%> <%submenu("/" .. category .. "/" .. k.name .. "/", node)%>
</div> </div>
<% end <% end
@ -109,16 +107,16 @@ if cattree and cattree.nodes then
end end
%> %>
</div> </div>
<div class="sidebar right"> <div class="modemenu">
<div><%:webui%> <ul><%
<ul><% for k,node in pairs(tree.nodes) do
for k,node in pairs(tree.nodes) do if node.title then %>
if node.title then %> <li<% if request[1] == k then %> class="active"<%end%>><a href="<%=controller%>/<%=k%>"><%=node.title%></a></li>
<li<% if request[1] == k then %> class="blacktext"<%end%>><a href="<%=controller%>/<%=k%>"><%=node.title%></a></li> <% end
<% end end%>
end%> </ul>
</ul> </div>
</div> <div class="sidebar">
<% <%
if "admin" == request[1] then if "admin" == request[1] then
local ucic = 0 local ucic = 0
@ -130,7 +128,7 @@ end
end end
end end
%> %>
<div><%:config%> <div>
<ul> <ul>
<% if ucic > 0 then %> <% if ucic > 0 then %>
<li><a href="<%=controller%>/admin/uci/changes"><%:changes%>: <%=ucic%></a></li> <li><a href="<%=controller%>/admin/uci/changes"><%:changes%>: <%=ucic%></a></li>