luci-theme-bootstrap: fix overview wireless display quirks
[oweals/luci.git] / themes / luci-theme-bootstrap / htdocs / luci-static / bootstrap / cascade.css
index f8f1c11105dc17c49e287f102913e4cfce99c0d0..ffb9c09ed11fa7c1cbd09024d2bfb1bf2bf6b94d 100644 (file)
@@ -99,6 +99,7 @@ input[type="reset"],
 input[type="submit"] {
        cursor: pointer;
        -webkit-appearance: button;
+       word-break: break-all;
 }
 
 button[disabled],
@@ -447,11 +448,10 @@ 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;
@@ -459,11 +459,18 @@ select,
        border-radius: 3px;
 }
 
+input,
+select,
+.cbi-dropdown:not(.btn):not(.cbi-button),
+.uneditable-input {
+       height: 30px;
+}
+
 .uneditable-input {
        color: #808080;
 }
 
-.cbi-dropdown,
+.cbi-dropdown:not(.btn):not(.cbi-button),
 .cbi-dynlist {
        min-width: 210px;
        max-width: 400px;
@@ -553,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%;
 }
@@ -1193,7 +1196,6 @@ footer {
        background: #fff;
        box-shadow: 0 0 3px #444;
        padding: 1em 1em .5em 1em;
-       max-height: 2400px;
        min-width: 270px;
 }
 
@@ -1201,6 +1203,7 @@ footer {
        flex-basis: 100%;
        line-height: normal;
        margin-bottom: .5em;
+       max-width: 100%;
 }
 
 .modal > pre,
@@ -1297,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;
@@ -1344,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;
 }
@@ -1371,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;
 }
 
@@ -1404,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;
 }
@@ -1420,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;
@@ -1431,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;
@@ -1439,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; }
@@ -1499,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; }
@@ -1573,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;
@@ -1660,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;
 }
@@ -1707,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);
@@ -1725,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 {
@@ -2002,9 +2021,9 @@ table table td,
 }
 
 .network-status-table .ifacebox-body > div {
+       margin: -.125em;
        display: flex;
        flex-wrap: wrap;
-       margin: -.125em;
 }
 
 #dsl_status_table .ifacebox-body span > strong {
@@ -2014,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;
@@ -2062,6 +2090,21 @@ 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;
@@ -2171,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;
 }
 
@@ -2248,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;
+}