luci-theme-material: fix Polish text longer bug
authorLutty Yang <lutty@wcan.in>
Fri, 18 Sep 2015 05:51:15 +0000 (13:51 +0800)
committerLutty Yang <lutty@wcan.in>
Fri, 18 Sep 2015 05:51:15 +0000 (13:51 +0800)
Signed-off-by: Lutty Yang <lutty@wcan.in>
themes/luci-theme-material/htdocs/luci-static/material/css/style.css

index 6cd78d2..58f6f32 100755 (executable)
@@ -572,12 +572,13 @@ td > table > tbody > tr > td {
 }
 
 .cbi-value-title {
 }
 
 .cbi-value-title {
+    word-wrap: break-word;
     padding-top: 0.6rem;
     padding-top: 0.6rem;
-    min-width: 23rem;
-    display: inline-block;
+    width: 23rem;
     float: left;
     text-align: right;
     padding-right: 2rem;
     float: left;
     text-align: right;
     padding-right: 2rem;
+    display: table-cell;
 }
 
 .cbi-value {
 }
 
 .cbi-value {
@@ -915,8 +916,8 @@ header > .container > .pull-right > *{
 }
 
 .node-main-login > .main fieldset {
 }
 
 .node-main-login > .main fieldset {
-    margin-bottom: 2rem;
-    margin-bottom: 2rem;
+    padding: 0;
+    margin-bottom: 1rem;
     display: inline;
     background: none;
     border: none;
     display: inline;
     background: none;
     border: none;
@@ -924,7 +925,7 @@ header > .container > .pull-right > *{
 }
 
 .node-main-login > .main .cbi-value-title {
 }
 
 .node-main-login > .main .cbi-value-title {
-    min-width: 6rem;
+    width: 7rem;
 }
 
 .node-main-login > .main #maincontent {
 }
 
 .node-main-login > .main #maincontent {
@@ -1047,6 +1048,12 @@ header > .container > .pull-right > *{
     padding: 0.5rem 1rem;
 }
 
     padding: 0.5rem 1rem;
 }
 
+.node-system-software > .main .cbi-value > pre{
+    background-color: #eee;
+    padding: 0.5rem;
+    overflow: auto;
+}
+
 .node-status-firewall fieldset,
 .node-system-software fieldset,
 .node-system-backup_flash_firmware fieldset {
 .node-status-firewall fieldset,
 .node-system-software fieldset,
 .node-system-backup_flash_firmware fieldset {
@@ -1060,6 +1067,11 @@ header > .container > .pull-right > *{
     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
 }
 
     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
 }
 
+/* language fix */
+body.lang_pl.node-main-login .cbi-value-title{
+    width: 12rem;
+}
+
 @media screen and (max-width: 1600px) {
     .main-left {
         width: calc(0% + 15rem);
 @media screen and (max-width: 1600px) {
     .main-left {
         width: calc(0% + 15rem);
@@ -1084,7 +1096,7 @@ header > .container > .pull-right > *{
     }
 
     .cbi-value-title {
     }
 
     .cbi-value-title {
-        min-width: 15rem;
+        width: 15rem;
     }
 
     fieldset {
     }
 
     fieldset {
@@ -1129,7 +1141,8 @@ header > .container > .pull-right > *{
     }
 
     .cbi-value-title {
     }
 
     .cbi-value-title {
-        min-width: 6rem;
+        width: 9rem;
+        padding-right: 1rem;
     }
 
 
     }
 
 
@@ -1158,6 +1171,10 @@ header > .container > .pull-right > *{
     #diag-rc-output > pre {
         font-size: 1.2rem;
     }
     #diag-rc-output > pre {
         font-size: 1.2rem;
     }
+
+    .node-main-login > .main .cbi-value-title{
+        text-align: left;
+    }
 }
 
 @media screen and (max-width: 480px) {
 }
 
 @media screen and (max-width: 480px) {
@@ -1187,10 +1204,12 @@ header > .container > .pull-right > *{
     }
 
     .cbi-value-title {
     }
 
     .cbi-value-title {
+        width: 100%;
         min-width: 0rem !important;
         display: block;
         margin-top: 1rem;
         margin-bottom: 0.5rem;
         min-width: 0rem !important;
         display: block;
         margin-top: 1rem;
         margin-bottom: 0.5rem;
+        text-align: left;
     }
 
     .cbi-value-field, .cbi-value-description {
     }
 
     .cbi-value-field, .cbi-value-description {
@@ -1227,11 +1246,13 @@ header > .container > .pull-right > *{
     }
 
     .node-main-login > .main .cbi-value-title {
     }
 
     .node-main-login > .main .cbi-value-title {
+        width: 100% !important;
         font-size: 1.2rem;
     }
 
     .node-main-login > .main fieldset {
         margin: 0;
         font-size: 1.2rem;
     }
 
     .node-main-login > .main fieldset {
         margin: 0;
+        padding: 0.5rem;
     }
 
     h2 {
     }
 
     h2 {
@@ -1258,8 +1279,21 @@ header > .container > .pull-right > *{
     input {
         font-size: 1.2rem;
     }
     input {
         font-size: 1.2rem;
     }
-    
+
     .mobile-hide{
         display: none;
     }
     .mobile-hide{
         display: none;
     }
+
+    .panel-title{
+        font-size: 1.4rem;
+        padding-bottom: 1rem;
+    }
+
+    .node-system-software > .main .cbi-value.cbi-value-last > div{
+        width: 100% !important;
+    }
+
+    .node-system-software > .main .cbi-value .cbi-value-field input{
+        width: 100%;
+    }
 }
 }