summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus/contrib
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-04-27 20:53:32 +0000
committerSteven Barth <steven@midlink.org>2008-04-27 20:53:32 +0000
commit2724aa14f35dd5ff44dd96b8bdb17965193d700c (patch)
tree398757c77b100b6e9c63bb4729a51506e5656b10 /themes/fledermaus/contrib
parentbba585f063ccc1e483346c9b5625d4dcf84d6586 (diff)
* Reworked Theme "Fledermaus"
* Added Freifunk wizard * Added Freifunk iptables rules
Diffstat (limited to 'themes/fledermaus/contrib')
-rw-r--r--themes/fledermaus/contrib/media/cascade.css16
-rw-r--r--themes/fledermaus/contrib/media/cbi.js12
2 files changed, 21 insertions, 7 deletions
diff --git a/themes/fledermaus/contrib/media/cascade.css b/themes/fledermaus/contrib/media/cascade.css
index ad1de6f46a..a7245ae60b 100644
--- a/themes/fledermaus/contrib/media/cascade.css
+++ b/themes/fledermaus/contrib/media/cascade.css
@@ -196,14 +196,21 @@ table th, table, td {
text-align: right;
}
+.cbi-value {
+ display: table-row;
+}
+
.cbi-value-title {
+ display: table-cell;
line-height: 1.75em;
- width: 15em;
font-weight: bold;
+ padding: 0.25em;
}
.cbi-value-field {
+ display: table-cell;
text-align: left;
+ padding: 0.25em;
line-height: 1.75em;
}
@@ -219,8 +226,10 @@ table th, table, td {
}
.cbi-value-description {
+ display: inline;
font-style: italic;
font-size: 0.8em;
+ padding: 0.25em;
margin-bottom: 0.5em;
}
@@ -229,11 +238,10 @@ table th, table, td {
}
.cbi-section-node {
- display: block;
+ display: table;
+ padding: 0.25em;
background: #f7f7f7;
border: 1px solid #d7d7d7;
- overflow: auto;
- margn-bottom: 0%;
}
.cbi-section-node h3 {
diff --git a/themes/fledermaus/contrib/media/cbi.js b/themes/fledermaus/contrib/media/cbi.js
index f9e463bca1..a3a47aa45b 100644
--- a/themes/fledermaus/contrib/media/cbi.js
+++ b/themes/fledermaus/contrib/media/cbi.js
@@ -16,15 +16,21 @@ function cbi_d_update(target) {
}
for (var x in cbi_d[target]) {
- for (var i=0; i<cbi_d[target][x].length; i++) {
- document.getElementById(cbi_d[target][x][i]).style.display = "none";
+ for (var i=0; i<cbi_d[target][x].length; i++) {
+ var y = document.getElementById(cbi_d[target][x][i])
+ y.style.display = "none";
}
}
var t = document.getElementById(target);
if (t && t.value && cbi_d[target][t.value]) {
for (var i=0; i<cbi_d[target][t.value].length; i++) {
- document.getElementById(cbi_d[target][t.value][i]).style.display = "block";
+ var y = document.getElementById(cbi_d[target][t.value][i])
+ if (!y.value) {
+ y.style.display = "table-row";
+ } else {
+ y.style.display = "block";
+ }
}
}
}