luci-theme-bootstrap: fix overview wireless display quirks
[oweals/luci.git] / themes / luci-theme-bootstrap / htdocs / luci-static / bootstrap / cascade.css
index ab4e08a9e9659f99c27299b9dd324113fbdccca9..ffb9c09ed11fa7c1cbd09024d2bfb1bf2bf6b94d 100644 (file)
@@ -99,6 +99,7 @@ input[type="reset"],
 input[type="submit"] {
        cursor: pointer;
        -webkit-appearance: button;
+       word-break: break-all;
 }
 
 button[disabled],
@@ -410,6 +411,7 @@ form .clearfix:after,
 
 label,
 input,
+button,
 select,
 textarea {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -446,20 +448,29 @@ label > input[type="radio"] {
 input,
 textarea,
 select,
-.cbi-dropdown,
+.cbi-dropdown:not(.btn):not(.cbi-button),
 .uneditable-input {
        display: inline-block;
        width: 210px;
-       height: 30px;
        padding: 4px;
        font-size: 13px;
        line-height: 18px;
-       color: #808080;
        border: 1px solid #ccc;
        border-radius: 3px;
 }
 
-.cbi-dropdown,
+input,
+select,
+.cbi-dropdown:not(.btn):not(.cbi-button),
+.uneditable-input {
+       height: 30px;
+}
+
+.uneditable-input {
+       color: #808080;
+}
+
+.cbi-dropdown:not(.btn):not(.cbi-button),
 .cbi-dynlist {
        min-width: 210px;
        max-width: 400px;
@@ -549,14 +560,10 @@ select[multiple] {
        background-color: #fff;
 }
 
-textarea {
-       height: auto !important;
-}
-
 .td > input[type=text],
 .td > input[type=password],
 .td > select,
-.td > .cbi-dropdown,
+.td > .cbi-dropdown:not(.btn):not(.cbi-button),
 .cbi-dynlist > .add-item > .cbi-dropdown {
        width: 100%;
 }
@@ -577,13 +584,13 @@ textarea {
        color: #bfbfbf;
 }
 
-.item::after, .btn, .cbi-button, input, textarea {
+.item::after, .btn, .cbi-button, input, button, textarea {
        transition: border linear 0.2s, box-shadow linear 0.2s;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
 }
 
 .item:hover::after,
-.btn:hover, .cbi-button:hover,
+.btn:hover, .cbi-button:hover, button:hover,
 input:focus, textarea:focus {
        outline: 0;
        border-color: rgba(82, 168, 236, 0.8) !important;
@@ -597,9 +604,11 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
 }
 
 input[disabled],
+button[disabled],
 select[disabled],
 textarea[disabled],
 input[readonly],
+button[readonly],
 select[readonly],
 textarea[readonly] {
        background-color: #f5f5f5;
@@ -734,6 +743,16 @@ textarea[readonly] {
        line-height: 3em;
 }
 
+.tr.drag-over-above,
+.tr.drag-over-below {
+       border: 2px solid #0069d6;
+       border-width: 2px 0 0 0;
+}
+
+.tr.drag-over-below {
+       border-width: 0 0 2px 0;
+}
+
 /* Patterns.less
  * Repeatable UI elements outside the base styles provided from the scaffolding
  * ---------------------------------------------------------------------------- */
@@ -1177,7 +1196,6 @@ footer {
        background: #fff;
        box-shadow: 0 0 3px #444;
        padding: 1em 1em .5em 1em;
-       max-height: 2400px;
        min-width: 270px;
 }
 
@@ -1185,6 +1203,7 @@ footer {
        flex-basis: 100%;
        line-height: normal;
        margin-bottom: .5em;
+       max-width: 100%;
 }
 
 .modal > pre,
@@ -1281,7 +1300,7 @@ body.modal-overlay-active #modal_overlay {
 }
 
 .cbi-input-invalid,
-.cbi-input-invalid.cbi-dropdown,
+.cbi-input-invalid.cbi-dropdown:not(.btn):not(.cbi-button),
 .cbi-input-invalid.cbi-dropdown:not([open]) > ul > li,
 .cbi-value-error input {
        color: #f00;
@@ -1328,7 +1347,7 @@ body.modal-overlay-active #modal_overlay {
        clear: both;
 }
 
-.cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-save):not(.cbi-button-reset) {
+.cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-negative):not(.cbi-button-save):not(.cbi-button-reset) {
        float: left;
        margin-right: .4em;
 }
@@ -1355,21 +1374,25 @@ body.modal-overlay-active #modal_overlay {
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
 }
 
-.cbi-page-actions .cbi-button-apply + .cbi-button-save {
+.cbi-page-actions .cbi-button-apply + .cbi-button-save,
+.cbi-page-actions .cbi-button-negative + .cbi-button-save {
        background: linear-gradient(#fff, #fff 25%, #e6e6e6);
        text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.75);
        color: #4a4;
 }
 
 .cbi-dropdown {
-       border: 1px solid #ccc;
-       border-radius: 3px;
-       display: inline-flex;
-       padding: 0;
+       display: inline-flex !important;
        cursor: pointer;
        height: auto;
-       background: linear-gradient(#fff 0%, #e9e8e6 100%);
        position: relative;
+       padding: 0 !important;
+}
+
+.cbi-dropdown:not(.btn):not(.cbi-button) {
+       background: linear-gradient(#fff 0%, #e9e8e6 100%);
+       border: 1px solid #ccc;
+       border-radius: 3px;
        color: #404040;
 }
 
@@ -1388,6 +1411,16 @@ body.modal-overlay-active #modal_overlay {
        width: 100%;
 }
 
+.cbi-dropdown.btn > ul:not(.dropdown),
+.cbi-dropdown.cbi-button > ul:not(.dropdown) {
+       margin: 0 0 0 13px !important;
+}
+
+.cbi-dropdown.btn.spinning > ul:not(.dropdown),
+.cbi-dropdown.cbi-button.spinning > ul:not(.dropdown) {
+       margin: 0 !important;
+}
+
 .cbi-dropdown > ul.preview {
        display: none;
 }
@@ -1404,8 +1437,15 @@ body.modal-overlay-active #modal_overlay {
        padding: 0 .25em;
 }
 
+.cbi-dropdown.btn > .open,
+.cbi-dropdown.cbi-button > .open {
+       padding: 0 .5em;
+       margin-left: .5em;
+       border-left: 1px solid;
+}
+
 .cbi-dropdown > .more,
-.cbi-dropdown > ul > li[placeholder] {
+.cbi-dropdown:not(.btn):not(.cbi-button) > ul > li[placeholder] {
        color: #777;
        font-weight: bold;
        text-shadow: 1px 1px 0px #fff;
@@ -1415,7 +1455,6 @@ body.modal-overlay-active #modal_overlay {
 
 .cbi-dropdown > ul > li {
        display: none;
-       padding: .25em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
@@ -1423,8 +1462,14 @@ body.modal-overlay-active #modal_overlay {
        flex-grow: 1;
        align-items: center;
        align-self: center;
-       color: #404040;
+       color: inherit;
+}
+
+.cbi-dropdown > ul.dropdown > li,
+.cbi-dropdown:not(.btn):not(.cbi-button) > ul > li {
        min-height: 20px;
+       padding: .25em;
+       color: #404040;
 }
 
 .cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
@@ -1483,13 +1528,13 @@ body.modal-overlay-active #modal_overlay {
 .cbi-dropdown[multiple][more] > .more,
 .cbi-dropdown[multiple][empty] > .more {
        flex-grow: 1;
-       display: flex;
+       display: flex !important;
 }
 
 .cbi-dropdown[empty] > ul > li,
 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
-       display: block;
+       display: block !important;
 }
 
 .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
@@ -1557,7 +1602,7 @@ select + .cbi-button {
 .cbi-tooltip {
        position: absolute;
        z-index: 1000;
-       left: -1000px;
+       left: -10000px;
        box-shadow: 0 0 2px #ccc;
        border-radius: 3px;
        background: #fff;
@@ -1644,14 +1689,12 @@ select + .cbi-button {
 
 .btn.disabled {
        cursor: default;
-       background-image: none;
        opacity: 0.65;
        box-shadow: none;
 }
 
 .btn[disabled] {
        cursor: default;
-       background-image: none;
        opacity: 0.65;
        box-shadow: none;
 }
@@ -1691,8 +1734,8 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
 
 .alert-message {
        position: relative;
-       padding: 7px 15px;
-       margin-bottom: 18px;
+       padding: .5em .5em .25em .5em;
+       margin-bottom: .5em;
        color: #404040;
        background: linear-gradient(to bottom, #fceec1, #eedc94) repeat-x;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
@@ -1709,30 +1752,22 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
        *margin-top: 0;
 }
 
-.alert-message a {
-       font-weight: bold;
-       color: #404040;
-}
-
-.alert-message.danger p a,
-.alert-message.error p a,
-.alert-message.success p a,
-.alert-message.info p a {
-       color: #fff;
-}
-
-.alert-message h5 {
-       line-height: 18px;
-}
-
+.alert-message h4,
+.alert-message h5,
+.alert-message pre,
+.alert-message ul,
+.alert-message li,
 .alert-message p {
-       margin-bottom: 0;
+       color: inherit;
+       border: none;
+       line-height: inherit;
+       background: transparent;
+       padding: 0;
+       margin: .25em 0;
 }
 
-.alert-message div {
-       margin-top: 5px;
-       margin-bottom: 2px;
-       line-height: 28px;
+.alert-message button {
+       margin: .25em 0;
 }
 
 .label {
@@ -1982,12 +2017,13 @@ table table td,
 
 .network-status-table .ifacebox-body > span {
        flex: 10 10 auto;
+       height: 100%;
 }
 
 .network-status-table .ifacebox-body > div {
+       margin: -.125em;
        display: flex;
        flex-wrap: wrap;
-       margin: -.125em;
 }
 
 #dsl_status_table .ifacebox-body span > strong {
@@ -1997,13 +2033,22 @@ table table td,
 
 .ifacebadge.large,
 .network-status-table .ifacebox-body .ifacebadge {
-       display: inline-flex;
+       display: flex;
        flex: 1;
        padding: .25em;
        min-width: 220px;
        margin: .125em;
 }
 
+.ifacebadge.large {
+       display: inline-flex;
+}
+
+.network-status-table .ifacebox-body .ifacebadge > span {
+       overflow: hidden;
+       text-overflow: ellipsis;
+}
+
 .ifacebadge > *,
 .ifacebadge.large > * {
        margin: 0 .125em;
@@ -2045,6 +2090,26 @@ div.cbi-value var,
        color: #0069d6;
 }
 
+div.cbi-value var[data-tooltip],
+.td.cbi-value-field var[data-tooltip],
+div.cbi-value var.cbi-tooltip-container,
+.td.cbi-value-field var.cbi-tooltip-container {
+       cursor: help;
+       border-bottom: 1px dotted #0069d6;
+}
+
+div.cbi-value var.cbi-tooltip-container,
+.td.cbi-value-field var.cbi-tooltip-container .cbi-tooltip {
+       font-style: normal;
+       white-space: normal;
+       color: #444;
+}
+
+#modal_overlay > .modal.uci-dialog,
+#modal_overlay > .modal.cbi-modal {
+       max-width: 900px;
+}
+
 .uci-change-list {
        line-height: 170%;
        white-space: pre;
@@ -2107,8 +2172,8 @@ div.cbi-value var,
 .uci-change-legend-label > var {
        float: left;
        margin-right: 4px;
-       width: 10px;
-       height: 10px;
+       width: 16px;
+       height: 16px;
        display: block;
        position: relative;
 }
@@ -2149,7 +2214,6 @@ div.cbi-value var,
        background: #fff;
        box-shadow: 0 0 3px #444;
        padding: 1em 1em .5em 1em;
-       max-height: 2400px;
        min-width: 270px;
 }
 
@@ -2226,3 +2290,110 @@ html body.apply-overlay-active {
        overflow: visible;
        transition: opacity .25s ease-in;
 }
+
+.cbi-filebrowser {
+       min-width: 210px;
+       max-width: 100%;
+       border: 1px solid #ccc;
+       border-radius: 3px;
+       display: flex;
+       flex-direction: column;
+       opacity: 0;
+       height: 0;
+       overflow: hidden;
+}
+
+.cbi-filebrowser.open {
+       opacity: 1;
+       height: auto;
+       overflow: visible;
+       transition: opacity .25s ease-in;
+}
+
+.cbi-filebrowser > * {
+       max-width: 100%;
+       overflow: hidden;
+       text-overflow: ellipsis;
+       padding: 0 0 .25em 0;
+       margin: .25em .25em 0px .25em;
+       white-space: nowrap;
+       border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .cbi-button-positive {
+       margin-right: .25em;
+}
+
+.cbi-filebrowser > div {
+       border-bottom: none;
+}
+
+.cbi-filebrowser > ul > li {
+       display: flex;
+       flex-direction: row;
+}
+
+.cbi-filebrowser > ul > li:hover {
+       background: #f5f5f5;
+}
+
+.cbi-filebrowser > ul > li > div:first-child {
+       flex: 10;
+       overflow: hidden;
+       text-overflow: ellipsis;
+}
+
+.cbi-filebrowser > ul > li > div:last-child {
+       flex: 3;
+       text-align: right;
+}
+
+.cbi-filebrowser > ul > li > div:last-child > button {
+       padding: .125em .25em;
+       margin: 1px 0 1px .25em;
+}
+
+.cbi-filebrowser .upload {
+       display: flex;
+       flex-direction: row;
+       flex-wrap: wrap;
+       margin: 0 -.125em .25em -.125em;
+       padding: 0 0 .125em 0px;
+       border-bottom: 1px solid #ccc;
+}
+
+.cbi-filebrowser .upload > * {
+       margin: .125em;
+       flex: 1;
+}
+
+.cbi-filebrowser .upload > .btn {
+       flex-basis: 60px;
+}
+
+.cbi-filebrowser .upload > div {
+       flex: 10;
+       min-width: 150px;
+}
+
+.cbi-filebrowser .upload > div > input {
+       width: 100%;
+}
+
+@keyframes fade-in {
+       0% { opacity: 0; }
+       100% { opacity: 1; }
+}
+
+@keyframes fade-out {
+       0% { opacity: 1; }
+       100% { opacity: 0; }
+}
+
+.fade-in {
+       animation: fade-in .4s ease;
+}
+
+.fade-out {
+       animation: fade-out .4s ease;
+}