luci-theme-material: fix some style bugs
[project/luci.git] / themes / luci-theme-material / htdocs / luci-static / material / css / style.css
index 347a97b..d4feb36 100755 (executable)
@@ -85,9 +85,9 @@ select {
 select,
 input {
     background-color: transparent;
-    color: rgba(0,0,0,.87);
+    color: rgba(0, 0, 0, .87);
     border: none;
-    border-bottom: 1px solid rgba(0,0,0,.26);
+    border-bottom: 1px solid rgba(0, 0, 0, .26);
     outline: 0;
     padding: 0;
     box-shadow: none;
@@ -106,7 +106,7 @@ input:focus {
     border-width: 2px;
 }
 
-select[multiple="multiple"]{
+select[multiple="multiple"] {
     height: auto;
 }
 
@@ -115,11 +115,17 @@ code {
 }
 
 abbr {
-    color: #0099CC;
+    color: #005470;
     text-decoration: underline;
     cursor: help;
 }
 
+hr{
+    margin: 1rem 0;
+    border-color: #EEE;
+    opacity: 0.1;
+}
+
 header, .main {
     width: 100%;
     position: absolute;
@@ -134,7 +140,7 @@ header {
     z-index: 101;
 }
 
-footer{
+footer {
     text-align: right;
     padding: 1rem;
     color: #aaa;
@@ -142,7 +148,7 @@ footer{
     text-shadow: 0px 0px 2px #BBB;
 }
 
-footer > a{
+footer > a {
     color: #aaa;
     text-decoration: none;
 }
@@ -150,9 +156,12 @@ footer > a{
 .main {
     top: 4rem;
     bottom: 0rem;
+    position: relative;
+    height: 100%;
+    height: calc(100% - 4rem);
 }
 
-.main > .loading{
+.main > .loading {
     position: fixed;
     width: 100%;
     height: 100%;
@@ -162,7 +171,7 @@ footer > a{
     top: 0;
 }
 
-.main > .loading > span{
+.main > .loading > span {
     display: block;
     text-align: center;
     margin-top: 2rem;
@@ -170,11 +179,11 @@ footer > a{
     font-size: 1.3rem;
 }
 
-.main > .loading > span > .loading-img:before{
+.main > .loading > span > .loading-img:before {
     content: "\e603";
 }
 
-.main > .loading > span > .loading-img{
+.main > .loading > span > .loading-img {
     animation: anim-rotate 2s infinite linear;
     margin-right: 0.2rem;
     display: inline-block;
@@ -182,35 +191,42 @@ footer > a{
 
 @keyframes anim-rotate {
     0% {
-        -webkit-transform:rotate(0);
-        -ms-transform:rotate(0);
-        transform:rotate(0);
+        -webkit-transform: rotate(0);
+        -ms-transform: rotate(0);
+        transform: rotate(0);
     }
     100% {
-        -webkit-transform:rotate(360deg);
-        -ms-transform:rotate(360deg);
-        transform:rotate(360deg)
+        -webkit-transform: rotate(360deg);
+        -ms-transform: rotate(360deg);
+        transform: rotate(360deg)
     }
 }
 
 .main-left {
     float: left;
+    top: 4rem;
     width: 15%;
     width: calc(0% + 17rem);
     height: 100%;
-    overflow-y: auto;
+    height: calc(100% - 4rem);
     background-color: white;
+
+    overflow-x: auto;
+    position: fixed;
 }
 
 .main-right {
     width: 85%;
     width: calc(100% - 17rem);
     float: right;
-    overflow-y: auto;
     height: 100%;
     background-color: #EEE;
 }
 
+.main-right > #maincontent {
+    background-color: #EEE;
+}
+
 .pull-right {
     float: right;
 }
@@ -264,7 +280,7 @@ header > .container > .brand {
     border-color: #eea236;
 }
 
-.error{
+.error {
     color: red;
 }
 
@@ -414,7 +430,7 @@ fieldset {
     background-color: #FFF;
     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
 
-    -webkit-overflow-scrolling:touch;
+    -webkit-overflow-scrolling: touch;
 }
 
 fieldset > legend {
@@ -466,6 +482,8 @@ fieldset > table > tbody > tr:nth-of-type(odd) {
 }
 
 /* fix progress bar */
+#swaptotal > div,
+#swapfree > div,
 #memfree > div,
 #membuff > div,
 #conns > div,
@@ -474,6 +492,8 @@ fieldset > table > tbody > tr:nth-of-type(odd) {
     height: 1.4rem !important;
 }
 
+#swaptotal > div > div,
+#swapfree > div > div,
 #memfree > div > div,
 #membuff > div > div,
 #conns > div > div,
@@ -552,6 +572,7 @@ td > table > tbody > tr > td {
     box-shadow: none;
 }
 
+form.inline + form.inline,
 .cbi-button + .cbi-button {
     margin-left: 0.6rem;
 }
@@ -590,7 +611,7 @@ td > table > tbody > tr > td {
     border-color: #d43f3a !important;
 }
 
-.a-to-btn{
+.a-to-btn {
     text-decoration: none;
 }
 
@@ -705,6 +726,11 @@ td > table > tbody > tr > td {
     background-color: #eee;
 }
 
+.cbi-rowstyle-2 .cbi-button-up,
+.cbi-rowstyle-2 .cbi-button-down{
+    background-color: #FFF !important;
+}
+
 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
     width: auto !important;
 }
@@ -732,7 +758,7 @@ td > table > tbody > tr > td {
 }
 
 .inline {
-    display: inline-block;
+    display: inline;
 }
 
 .cbi-page-actions {
@@ -781,7 +807,7 @@ td > table > tbody > tr > td {
     width: 100%;
     min-height: 15rem;
     padding: 1rem;
-    font-size: smaller;
+    font-size: small;
     color: #5F5F5F;
 
     margin-bottom: 20px;
@@ -919,7 +945,7 @@ div.cbi-value var, td.cbi-value-field var {
 }
 
 small {
-    font-size: smaller;
+    font-size: small;
     white-space: normal;
 }
 
@@ -1039,20 +1065,20 @@ header > .container > .pull-right > * {
     float: right;
 }
 
-.node-main-login > .main .cbi-value{
+.node-main-login > .main .cbi-value {
     display: block;
 }
 
-.node-main-login > .main .cbi-value > *{
+.node-main-login > .main .cbi-value > * {
     display: inline-block !important;
 }
 
 .node-main-login > .main .cbi-input-user,
-.node-main-login > .main .cbi-input-password{
+.node-main-login > .main .cbi-input-password {
     min-width: 15rem;
 }
 
-.node-main-login footer{
+.node-main-login footer {
     bottom: 0;
     position: absolute;
     width: 100%;
@@ -1060,22 +1086,20 @@ header > .container > .pull-right > * {
 
 /* fix status overview */
 
-.node-status-overview > .main fieldset:nth-child(4) td:nth-child(2){
+.node-status-overview > .main fieldset:nth-child(4) td:nth-child(2) {
     white-space: normal;
 }
 
-
 /* fix status processes */
 
 .node-status-processes > .main table tr td:nth-child(3) {
     white-space: normal;
 }
 
-.node-status-firewall > .main fieldset li {
-    display: inline-block;
+.node-status-iptables > .main div > .cbi-map > form {
+    margin: 2rem 2rem 0 0;
 }
 
-
 /* fix system reboot */
 
 .node-system-reboot > .main > .main-right p,
@@ -1084,30 +1108,34 @@ header > .container > .pull-right > * {
 }
 
 /* fix Services  Network Shares*/
-.node-services-network_shares > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
+.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
     margin-bottom: 1rem;
 }
 
-.node-services-network_shares > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
+.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
     display: list-item;
 }
 
-.node-services-network_shares > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
+.node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
     padding-top: 1rem;
 }
 
 /* fix System Software*/
-.node-system-software > .main table tr td:nth-child(4) {
+.node-system-packages > .main table tr td:nth-child(1) {
+    width: auto !important;
+}
+
+.node-system-packages > .main table tr td:nth-last-child(1) {
     white-space: normal;
     font-size: small;
     color: #404040;
 }
 
-.node-system-software > .main .cbi-tabmenu > li > a, .tabs > li > a {
+.node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
     padding: 0.5rem 1rem;
 }
 
-.node-system-software > .main .cbi-value > pre {
+.node-system-packages > .main .cbi-value > pre {
     background-color: #eee;
     padding: 0.5rem;
     overflow: auto;
@@ -1118,23 +1146,42 @@ header > .container > .pull-right > * {
 }
 
 /* fix network firewall*/
-.node-network-firewall > .main .cbi-section-table-row > .cbi-value-field .cbi-input-select{
+.node-network-firewall > .main .cbi-section-table-row > .cbi-value-field .cbi-input-select {
     min-width: 4rem;
 }
 
-.node-status-firewall fieldset,
-.node-system-software fieldset,
-.node-system-backup_flash_firmware fieldset {
+.node-status-iptables fieldset,
+.node-system-packages fieldset,
+.node-system-flashops fieldset {
     margin-top: 0;
 }
 
-.node-status-firewall .cbi-tabmenu,
-.node-system-software .cbi-tabmenu,
-.node-system-backup_flash_firmware .cbi-tabmenu {
+.node-status-iptables .cbi-tabmenu,
+.node-system-packages .cbi-tabmenu,
+.node-system-flashops .cbi-tabmenu {
     border: none;
     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
 }
 
+#cbi-firewall-redirect table *,
+#cbi-network-switch_vlan table *,
+#cbi-firewall-zone table *{
+    font-size: small;
+}
+
+#cbi-firewall-redirect table input[type="text"],
+#cbi-network-switch_vlan table input[type="text"],
+#cbi-firewall-zone table input[type="text"]{
+    width: 5rem;
+}
+
+#cbi-firewall-redirect table select,
+#cbi-network-switch_vlan table select,
+#cbi-firewall-zone table select{
+    min-width: 3.5rem;
+}
+
+
 /* language fix */
 body.lang_pl.node-main-login .cbi-value-title {
     width: 12rem;
@@ -1165,6 +1212,7 @@ body.lang_pl.node-main-login .cbi-value-title {
 
     .cbi-value-title {
         width: 15rem;
+        padding-right: 0.6rem;
     }
 
     fieldset {
@@ -1172,10 +1220,10 @@ body.lang_pl.node-main-login .cbi-value-title {
     }
 
     .cbi-input-textarea {
-        font-size: smaller;
+        font-size: small;
     }
 
-    .node-status-firewall > .main fieldset li > a {
+    .node-status-iptables > .main fieldset li > a {
         padding: 0.3rem 0.6rem;
     }
 }
@@ -1191,10 +1239,13 @@ body.lang_pl.node-main-login .cbi-value-title {
 
     .main {
         top: 3.5rem;
+        height: calc(100% - 3.5rem);
     }
 
     .main-left {
         width: calc(0% + 13rem);
+        top: 3.5rem;
+        height: calc(100% - 3.5rem);
     }
 
     .main-right {
@@ -1212,6 +1263,7 @@ body.lang_pl.node-main-login .cbi-value-title {
 
     table {
         font-size: 0.8rem !important;
+        width: 100% !important;
     }
 
     .main > .main-left > .nav > li,
@@ -1382,13 +1434,40 @@ body.lang_pl.node-main-login .cbi-value-title {
         padding-bottom: 1rem;
     }
 
-    .node-system-software > .main .cbi-value.cbi-value-last > div {
+    .node-system-packages > .main .cbi-value.cbi-value-last > div {
         width: 100% !important;
     }
 
-    .node-system-software > .main .cbi-value .cbi-value-field input {
+    .node-system-packages > .main .cbi-value .cbi-value-field input {
         width: 100%;
     }
+
+    .node-status-iptables > .main div > .cbi-map > form {
+        position: static !important;
+        margin: 0 0 2rem 0;
+        padding: 2rem;
+        border: 0;
+        font-weight: normal;
+        font-style: normal;
+        line-height: 1;
+        font-family: inherit;
+        min-width: inherit;
+        overflow-x: auto;
+        overflow-y: hidden;
+        border-radius: 0;
+        background-color: #FFF;
+        box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
+        -webkit-overflow-scrolling: touch;
+    }
+
+    .node-status-iptables > .main div > .cbi-map > form input[type="submit"]{
+        width: 100% !important;
+        margin: 0;
+    }
+
+    .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"]{
+        margin-top: 1rem;
+    }
 }
 
 @media screen and (min-width: 992px) {