i18n: add RTL-hacks to cascade.css of the Openwrt.org theme
[project/luci.git] / themes / openwrt / htdocs / luci-static / openwrt.org / cascade.css
index b1c2a81270d82f5afebee6dfc9fdb7fc7fd531a4..acb44f3de5d3a6dd709a9b8180a3d9bf1f6a1206 100644 (file)
@@ -1,10 +1,16 @@
 @charset "utf-8";
 
+.lang_he {
+       direction: RTL;
+       unicode-bidi: embed;
+}
+
 @media all {
 
 html {
        min-height: 100%;
        height: auto;
+       position:relative;
 }
 
 body {
@@ -28,10 +34,6 @@ a img {
        text-decoration: none;
 }
 
-small {
-       white-space: nowrap;
-}
-
 ul.tabmenu {
        margin: 0;
        clear: both;
@@ -65,6 +67,10 @@ ul.tabmenu li {
        overflow: hidden;
 }
 
+.lang_he ul.tabmenu li {
+       float: right;
+}
+
 ul.tabmenu li a {
        text-decoration: none;
        color: #444444;
@@ -101,6 +107,10 @@ ul.l1 li.tabmenu-item-logout a {
        margin-left: 30px;
 }
 
+.lang_he ul.l1 li.tabmenu-item-logout a {
+       margin-right: 30px;
+}
+
 abbr,
 acronym {
        font-style: normal;
@@ -165,6 +175,24 @@ div.hostinfo {
        padding: 0.5em;
 }
 
+.lang_he div.hostinfo {
+       float: right;
+}
+
+#xhr_poll_status {
+       cursor: pointer;
+}
+
+#xhr_poll_status #xhr_poll_status_off {
+       font-weight: bold;
+       color: #FF0000;
+}
+
+#xhr_poll_status #xhr_poll_status_on {
+       font-weight: bold;
+       color: #00FF00;
+}
+
 #menubar {
        position: relative;
        width: 100%;
@@ -223,6 +251,8 @@ html #menubar a:visited.warning {
        color: #ffffff;
        list-style: none;
        margin-right: 1px;
+       margin-left: 2em;
+       float: right;
 }
 
 #modemenu li {
@@ -232,7 +262,10 @@ html #menubar a:visited.warning {
 
 #savemenu {
        float: right;
-       margin-right: 2em;
+}
+
+.lang_he #savemenu {
+       float: left;
 }
 
 .lang_de #submenu_admin_uci {
@@ -255,6 +288,7 @@ textarea#syslog {
        clear: both;
        width: 96%;
        margin: 0 auto;
+       height:100%;
 }
 
 #maincontent {
@@ -267,6 +301,10 @@ textarea#syslog {
        border-color: #444444;
 }
 
+.lang_he #maincontent {
+       direction: rtl;
+}
+
 #maincontent h2 {
        font-size: 150%;
        font-family: Trebuchet MS, Verdana, sans-serif;
@@ -340,7 +378,11 @@ input:-webkit-input-placeholder {
        color: #AAAAAA;
 }
 
-input:-moz-input-placeholder {
+input:-moz-placeholder {
+       color: #AAAAAA;
+}
+
+input:-ms-input-placeholder {
        color: #AAAAAA;
 }
 
@@ -367,9 +409,7 @@ input[type=image] {
 input:focus,
 input:hover,
 select:focus,
-select:hover,
-textarea:focus,
-textarea:hover {
+select:hover {
        background-color: #ffffff;
        color: #000000;
 }
@@ -392,38 +432,58 @@ img.cbi-image-button {
        vertical-align: middle;
 }
 
+input.cbi-button {
+       background-color: #EEEEEE;
+       background-repeat: no-repeat;
+       background-position: 1px center;
+       border: 1px solid #CCCCCC;
+       border-radius: 3px;
+}
+
+input.cbi-button:hover {
+       border-color: #4A6B7C;
+       background-color: #FFFFFF;
+}
+
+input.cbi-button[disabled] {
+       color: #CCCCCC;
+       border-color: #CCCCCC;
+       background-color: #EEEEEE;
+       cursor: default;
+}
+
 input.cbi-input-user {
-       background: url('../resources/cbi/user.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/user.gif');
+       background-repeat: no-repeat;
+       background-position: 1px center;
        color: #000000;
        text-indent: 17px;
 }
 
 input.cbi-input-password {
-       background: url('../resources/cbi/key.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/key.gif');
+       background-repeat: no-repeat;
+       background-position: 1px center;
        color: #000000;
        text-indent: 17px;
 }
 
-input.cbi-input-find {
-       background: url('../resources/cbi/find.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+input.cbi-input-find,
+input.cbi-button-find {
+       background-image: url('../resources/cbi/find.gif');
        color: #000000;
        padding-left: 17px;
 }
 
 input.cbi-input-reload {
-       background: url('../resources/cbi/reload.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/reload.gif');
        color: #000000;
        padding-left: 17px;
 }
 
 input.cbi-input-add,
 input.cbi-button-add {
-       background: url('../resources/cbi/add.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/add.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -431,8 +491,7 @@ input.cbi-button-add {
 
 input.cbi-input-fieldadd,
 input.cbi-button-fieldadd {
-       background: url(../resources/cbi/fieldadd.gif) no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url(../resources/cbi/fieldadd.gif);
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -440,8 +499,7 @@ input.cbi-button-fieldadd {
 
 input.cbi-input-reset,
 input.cbi-button-reset {
-       background: url('../resources/cbi/reset.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/reset.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -449,8 +507,7 @@ input.cbi-button-reset {
 
 input.cbi-input-save,
 input.cbi-button-save {
-       background: url('../resources/cbi/save.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/save.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -458,8 +515,7 @@ input.cbi-button-save {
 
 input.cbi-input-apply,
 input.cbi-button-apply {
-       background: url('../resources/cbi/apply.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/apply.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -467,8 +523,7 @@ input.cbi-button-apply {
 
 input.cbi-input-link,
 input.cbi-button-link {
-       background: url('../resources/cbi/link.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/link.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -476,8 +531,47 @@ input.cbi-button-link {
 
 input.cbi-input-remove,
 div.cbi-section-remove input {
-       background: url('../resources/cbi/remove.gif') no-repeat scroll 1px center;
-       background-color: inherit;
+       background-image: url('../resources/cbi/remove.gif');
+       color: #000000;
+       padding-left: 17px;
+       padding-right: 1px;
+}
+
+input.cbi-button-up {
+       background-image: url('../resources/cbi/up.gif');
+       padding-left: 11px;
+       padding-right: 1px;
+}
+
+input.cbi-button-down {
+       background-image: url('../resources/cbi/down.gif');
+       padding-left: 11px;
+       padding-right: 1px;
+}
+
+input.cbi-button-edit {
+       background-image: url('../resources/cbi/edit.gif');
+       color: #000000;
+       padding-left: 17px;
+       padding-right: 1px;
+}
+
+input.cbi-button-reload {
+       background-image: url('../resources/cbi/reload.gif');
+       color: #000000;
+       padding-left: 17px;
+       padding-right: 1px;
+}
+
+input.cbi-button-reset {
+       background-image: url('../resources/cbi/reset.gif');
+       color: #000000;
+       padding-left: 17px;
+       padding-right: 1px;
+}
+
+input.cbi-button-remove {
+       background-image: url('../resources/cbi/remove.gif');
        color: #000000;
        padding-left: 17px;
        padding-right: 1px;
@@ -552,6 +646,11 @@ table.cbi-section-table .cbi-rowstyle-2:hover {
        color: #000000;
 }
 
+table.cbi-section-table .cbi-section-table-cell {
+       padding: 3px;
+       white-space: nowrap;
+}
+
 .cbi-section .cbi-rowstyle-1 h3 {
        background-color: #eeeeff;
        color: #555555;
@@ -564,7 +663,7 @@ table.cbi-section-table .cbi-rowstyle-2:hover {
 div.cbi-value {
        clear: left;
        vertical-align: middle;
-       padding: 0.25em;
+       padding: 0.25em 0.6em;
        border-bottom: 1px dotted #bbbbbb;
 }
 
@@ -596,10 +695,6 @@ div.cbi-section-create {
        vertical-align: top;
 }
 
-div.cbi-tblsection-create {
-       border-bottom: 1px dotted #bbbbbb;
-}
-
 div.cbi-section-create .cbi-button {
        margin: 0.25em;
 }
@@ -623,11 +718,18 @@ div.cbi-section-remove {
 
 .cbi-section-node {
        clear: both;
-       border-top: 1px dotted #bbbbbb;
-       border-left: 1px dotted #bbbbbb;
-       border-right: 1px dotted #bbbbbb;
-       border-bottom: none;
+       border: 1px solid #BBBBBB;
+       border-radius: 3px;
        padding-bottom: 0;
+       position: relative;
+}
+
+.cbi-section-node-tabbed {
+       border-top-left-radius: 0;
+}
+
+.cbi-section-node .cbi-value-last {
+       border-bottom: none;
 }
 
 .cbi-section-node table div {
@@ -652,6 +754,7 @@ table.cbi-section-table td {
 tr.cbi-section-table-descr th {
        font-weight: normal;
        font-size: 90%;
+       vertical-align: top;
 }
 
 td.cbi-section-table-optionals {
@@ -689,11 +792,18 @@ td.cbi-value-error {
        padding: 3px;
 }
 
+.cbi-value-field var {
+       color: #2222FF;
+}
+
 ul.cbi-tabmenu {
        padding: 3px 0;
        margin-left: 0 !important;
-       margin-bottom: -1px;
        list-style-type: none;
+       position: relative;
+       z-index: 10;
+       top: 4px;
+       line-height: 20px;
 }
 
 ul.cbi-tabmenu li.cbi-tab,
@@ -707,8 +817,9 @@ ul.cbi-tabmenu li.cbi-tab-disabled a {
        text-decoration: none;
        padding: 3px 7px;
        margin-right: 3px;
-       border: 1px outset #000000;
+       border: 1px solid #BBBBBB;
        border-bottom: none;
+       border-radius: 3px 3px 0 0;
        background-color: #EEEEEE;
        color: #BBBBBB;
 }
@@ -723,8 +834,6 @@ ul.cbi-tabmenu li a:hover {
 }
 
 ul.cbi-tabmenu li.cbi-tab a {
-       position: relative;
-       top: 1px;
        padding-top: 4px;
        color: #000000;
        background-color: #FFFFFF;
@@ -739,15 +848,20 @@ div.cbi-tab-descr {
        padding: 0.5em 0.5em 0.5em 2em;
 }
 
+.left {
+       text-align: left !important;
+}
+
 .right {
-       text-align: right;
+       text-align: right !important;
 }
 
 .luci {
-       position: fixed;
+       position: absolute;
        bottom: 0;
-       left: 0;
-       text-align: right;
+       left: 1em;
+       height: 1.5em;
+       font-size: 80%;
 }
 
 .luci a:link,
@@ -777,6 +891,69 @@ div.cbi-tab-descr {
        margin-bottom: 5px;
 }
 
+.errorbox a {
+       color: #000000 !important;
+}
+
+
+.ifacebox {
+       background-color: #FFFFFF;
+       border: 1px solid #CCCCCC;
+       margin: 0 10px;
+       text-align: center;
+       white-space: nowrap;
+}
+
+.ifacebox .ifacebox-head {
+       border-bottom: 1px solid #CCCCCC;
+       padding: 2px;
+}
+
+.ifacebox .ifacebox-body {
+       padding: 2px;
+}
+
+
+.ifacebadge {
+       background-color: #FFFFFF;
+       border: 1px solid #CCCCCC;
+       padding: 2px;
+       margin-left: 2px;
+       display: inline-block;
+}
+
+.ifacebadge-active {
+       border-color: #000000;
+       font-weight: bold;
+}
+
+
+.zonebadge {
+       padding: 2px;
+       display: inline-block;
+       white-space: nowrap;
+       cursor: pointer;
+}
+
+.zonebadge em,
+.zonebadge strong {
+       margin: 3px;
+       display: inline-block;
+}
+
+.zonebadge input {
+       width: 6em;
+       height: 1.5em;
+}
+
+.zonebadge-empty {
+       border: 1px dashed #AAAAAA;
+       color: #AAAAAA;
+       font-style: italic;
+       font-size: smaller;
+}
+
+
 .uci-change-list {
        font-family: monospace;
 }