From 2623e2880c69e5e19891ad06759dcbb8ad62f91b Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 31 May 2008 08:04:49 +0000 Subject: * Core translation part 1 * Introduced new default theme "OpenWRT.org" * Minor tweaks --- themes/openwrt.org/Makefile | 2 + .../luasrc/view/themes/openwrt.org/footer.htm | 8 + .../luasrc/view/themes/openwrt.org/header.htm | 136 ++++++++++ .../root/www/luci-static/openwrt.org/cascade.css | 298 +++++++++++++++++++++ 4 files changed, 444 insertions(+) create mode 100644 themes/openwrt.org/Makefile create mode 100644 themes/openwrt.org/luasrc/view/themes/openwrt.org/footer.htm create mode 100644 themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm create mode 100644 themes/openwrt.org/root/www/luci-static/openwrt.org/cascade.css (limited to 'themes/openwrt.org') diff --git a/themes/openwrt.org/Makefile b/themes/openwrt.org/Makefile new file mode 100644 index 0000000000..81a96f6a83 --- /dev/null +++ b/themes/openwrt.org/Makefile @@ -0,0 +1,2 @@ +include ../../build/config.mk +include ../../build/module.mk \ No newline at end of file diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/footer.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/footer.htm new file mode 100644 index 0000000000..6fc2f6089e --- /dev/null +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/footer.htm @@ -0,0 +1,8 @@ + +
+ + + +
<%=require("luci").__appname__ .. " " .. luci.__version__%> - Lua Configuration Interface
+ + \ No newline at end of file diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm new file mode 100644 index 0000000000..2ab67ecf49 --- /dev/null +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -0,0 +1,136 @@ +<% +require("luci.sys") +local load1, load5, load15 = luci.sys.loadavg() +local request = require("luci.dispatcher").request +local category = request[1] +local tree = luci.dispatcher.node() +local cattree = category and luci.dispatcher.node(category) +local node = luci.dispatcher.dispatched + +local c = tree +for i,r in ipairs(request) do + if c.nodes and c.nodes[r] then + c = c.nodes[r] + c._menu_selected = true + end +end + +require("luci.i18n").loadc("default") + +require("luci.http").prepare_content("text/html") +%> + + + + + <% if node and node.css then %><% end %> + + + LuCI - Lua Configuration Interface - <%=node.title%> + + + + +
+<%:path Pfad%>: <% +local c = tree +local url = controller +for k,v in pairs(request) do + if c.nodes and c.nodes[v] then + c = c.nodes[v] + url = url .. "/" .. v + %><%=c.title or v%> <% if k ~= #request then %>» <% end + end +end +%> +
+ +
+
+ +<% end + end +end +%> +
+ +
\ No newline at end of file diff --git a/themes/openwrt.org/root/www/luci-static/openwrt.org/cascade.css b/themes/openwrt.org/root/www/luci-static/openwrt.org/cascade.css new file mode 100644 index 0000000000..6469b8f235 --- /dev/null +++ b/themes/openwrt.org/root/www/luci-static/openwrt.org/cascade.css @@ -0,0 +1,298 @@ +@charset "utf-8"; + +body { + font-family: Verdana, Arial, sans-serif; + background-color: #557788; +} + +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.8em; + 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: both; +} + +.hidden { + display: none; +} + +.inline { + display: inline; +} + +.code { + background: #f7f7f7; + 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; +} + +.cbi-value { + display: table-row; +} + +.cbi-value-title { + display: table-cell; + line-height: 1.75em; + font-weight: bold; + padding: 0.25em; +} + +.cbi-value-field { + display: table-cell; + text-align: left; + padding: 0.25em; + line-height: 1.75em; +} + +.cbi-value-field input, .cbi-value-field select, +.cbi-optionals select, .cbi-optionals input, +.cbi-section-remove input, .cbi-section-create input { + font-size: 0.8em; + margin: 0%; +} + +.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; +} + +.cbi-form-separator { + margin-top: 1em; +} + +.cbi-section-node { + display: table; + padding: 0.25em; + border: 1px solid #000000; +} + +.cbi-section-row { + display: table-row; +} + +.cbi-section-row-head { + display: table-cell; + 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; +} + +.cbi-error { + color: red; + font-weight: bold; + font-size: 0.8em; + margin-bottom: 0.75em; +} + +.cbi-optionals { + margin-top: 1em; + display: table-cell; +} + +.cbi-optionals option { + font-size: 0.8em; +} + +.error { + color: red; + font-weight: bold; +} + +.ok { + color: green; + font-weight: bold; +} \ No newline at end of file -- cgit v1.2.3