Merge pull request #1735 from sumpfralle/olsr-jsoninfo-parser-handle-empty-result
[oweals/luci.git] / themes / luci-theme-bootstrap / htdocs / luci-static / bootstrap / cascade.css
index 2322a738574eb81fa6e25688036aa66ed7fb9b00..7e9c8eb32459ea208914ceb9f43a50245bf6e32c 100644 (file)
@@ -99,6 +99,7 @@ input[type="reset"],
 input[type="submit"] {
        cursor: pointer;
        -webkit-appearance: button;
+       word-break: break-all;
 }
 
 button[disabled],
@@ -174,6 +175,10 @@ a:hover {
        float: left;
 }
 
+.nowrap {
+       white-space: nowrap;
+}
+
 /* Typography.less
  * Headings, body text, lists, code, and more for a versatile and durable typography system
  * ---------------------------------------------------------------------------------------- */
@@ -406,6 +411,7 @@ form .clearfix:after,
 
 label,
 input,
+button,
 select,
 textarea {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -450,11 +456,14 @@ select,
        padding: 4px;
        font-size: 13px;
        line-height: 18px;
-       color: #808080;
        border: 1px solid #ccc;
        border-radius: 3px;
 }
 
+.uneditable-input {
+       color: #808080;
+}
+
 .cbi-dropdown,
 .cbi-dynlist {
        min-width: 210px;
@@ -500,8 +509,12 @@ select,
        display: flex;
 }
 
-.cbi-dynlist > .add-item > input {
+.cbi-dynlist > .add-item > input,
+.cbi-dynlist > .add-item > button {
        flex: 1 1 auto;
+       overflow: hidden;
+       text-overflow: ellipsis;
+       white-space: nowrap;
 }
 
 select {
@@ -542,7 +555,7 @@ select[multiple] {
 }
 
 textarea {
-       height: auto;
+       height: auto !important;
 }
 
 .td > input[type=text],
@@ -569,13 +582,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;
@@ -589,9 +602,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;
@@ -726,6 +741,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
  * ---------------------------------------------------------------------------- */
@@ -1012,44 +1037,61 @@ header .dropdown-menu a.hover,
 }
 
 .tabs, .cbi-tabmenu {
-       margin: 0 0 18px;
-       padding: 0;
+       margin: 0 -5px 18px;
+       padding: 0 2px;
        list-style: none;
-       zoom: 1;
-}
-
-.tabs:before,
-.cbi-tabmenu:before,
-.tabs:after,
-.cbi-tabmenu:after {
-       display: table;
-       content: "";
-       zoom: 1;
-}
-
-.tabs:after, .cbi-tabmenu:after {
-       clear: both;
+       display: flex;
+       flex-wrap: wrap;
+       background: linear-gradient(#fff 28px, #ddd 28px);
+       background-size: 1px 29px;
+       background-position: left bottom;
 }
 
 .tabs > li, .cbi-tabmenu > li {
-       float: left;
+       flex: 0 1 auto;
+       display: flex;
+       align-items: center;
+       height: 25px;
+       max-width: 48%;
+       margin: 4px 2px 0 2px;
+       background: #fff;
+       border: 1px solid #ddd;
+       border-bottom: none;
+       border-radius: 4px 4px 0 0;
+       color: #0069d6;
 }
 
 .tabs > li > a, .cbi-tabmenu > li > a {
-       display: block;
+       padding: 4px 6px;
+       white-space: nowrap;
+       overflow: hidden;
+       text-overflow: ellipsis;
+       color: inherit;
+       text-decoration: none;
+       border-radius: 4px 4px 0 0;
+       line-height: 25px;
+       outline: none;
 }
 
-.tabs,
-.cbi-tabmenu {
-       border-color: #ddd;
-       border-style: solid;
-       border-width: 0 0 1px;
+.tabs > li:not(.active):hover, .cbi-tabmenu > .cbi-tab-disabled:hover {
+       background: linear-gradient(#fff 90%, #ddd 100%);
 }
 
-.tabs > li,
-.cbi-tabmenu > li {
-       position: relative;
-       margin-bottom: -1px;
+.tabs > li:not(.active), .cbi-tabmenu > .cbi-tab-disabled {
+       color: #999;
+       background: linear-gradient(#eee 90%, #ddd 100%);
+}
+
+.cbi-tab-disabled[data-errors]::after {
+       content: attr(data-errors);
+       background: #c43c35;
+       color: #fff;
+       min-width: 12px;
+       line-height: 14px;
+       border-radius: 7px;
+       text-align: center;
+       margin: 0 5px 0 0;
+       padding: 1px 2px;
 }
 
 .cbi-tabmenu.map {
@@ -1065,53 +1107,23 @@ header .dropdown-menu a.hover,
        display: none;
 }
 
-.tabs > li > a,
-.cbi-tabmenu > li > a {
-       padding: 0 15px;
-       margin-right: 2px;
-       line-height: 34px;
-       border: 1px solid transparent;
-       border-radius: 4px 4px 0 0;
-}
-
-.tabs > li > a:hover,
-.cbi-tabmenu > li > a:hover {
-       text-decoration: none;
-       background-color: #eee;
-       border-color: #eee #eee #ddd;
-}
-
-.tabs .active > a, .tabs .active > a:hover,
-.cbi-tabmenu .active > a, .cbi-tabmenu .active > a:hover,
-.cbi-tab > a:link, .cbi-tab > a:hover {
-       color: #808080;
-       background-color: #fff;
-       border: 1px solid #ddd;
-       border-bottom-color: transparent;
-       cursor: default;
-}
-
-.tabs .menu-dropdown, .tabs .dropdown-menu,
-.cbi-tabmenu .menu-dropdown, .cbi-tabmenu .dropdown-menu {
+.tabs .menu-dropdown, .tabs .dropdown-menu {
        top: 35px;
        border-width: 1px;
        border-radius: 0 6px 6px 6px;
 }
 
-.tabs a.menu:after, .tabs .dropdown-toggle:after,
-.cbi-tabmenu a.menu:after, .cbi-tabmenu .dropdown-toggle:after {
+.tabs a.menu:after, .tabs .dropdown-toggle:after {
        border-top-color: #999;
        margin-top: 15px;
        margin-left: 5px;
 }
 
-.tabs li.open.menu .menu, .tabs .open.dropdown .dropdown-toggle,
-.cbi-tabmenu li.open.menu .menu, .cbi-tabmenu .open.dropdown .dropdown-toggle {
+.tabs li.open.menu .menu, .tabs .open.dropdown .dropdown-toggle {
        border-color: #999;
 }
 
-.tabs li.open a.menu:after, .tabs .dropdown.open .dropdown-toggle:after,
-.cbi-tabmenu li.open a.menu:after, .cbi-tabmenu .dropdown.open .dropdown-toggle:after {
+.tabs li.open a.menu:after, .tabs .dropdown.open .dropdown-toggle:after {
        border-top-color: #555;
 }
 
@@ -1167,6 +1179,7 @@ footer {
        -webkit-overflow-scrolling: touch;
        transition: opacity .125s ease-in;
        opacity: 0;
+       visibility: hidden;
 }
 
 .modal {
@@ -1189,6 +1202,7 @@ footer {
        flex-basis: 100%;
        line-height: normal;
        margin-bottom: .5em;
+       max-width: 100%;
 }
 
 .modal > pre,
@@ -1206,6 +1220,7 @@ body.modal-overlay-active #modal_overlay {
        left: 0;
        right: 0;
        opacity: 1;
+       visibility: visible;
 }
 
 .btn.danger,
@@ -1694,8 +1709,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);
@@ -1712,30 +1727,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 {
@@ -1985,6 +1992,7 @@ table table td,
 
 .network-status-table .ifacebox-body > span {
        flex: 10 10 auto;
+       height: 100%;
 }
 
 .network-status-table .ifacebox-body > div {
@@ -2048,6 +2056,11 @@ div.cbi-value var,
        color: #0069d6;
 }
 
+#modal_overlay > .modal.uci-dialog,
+#modal_overlay > .modal.cbi-modal {
+       max-width: 900px;
+}
+
 .uci-change-list {
        line-height: 170%;
        white-space: pre;
@@ -2110,8 +2123,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;
 }
@@ -2216,3 +2229,123 @@ html body.apply-overlay-active {
        background: url(../resources/icons/loading.gif) no-repeat center;
        background-size: 16px;
 }
+
+[data-tab-title] {
+       height: 0;
+       opacity: 0;
+       overflow: hidden;
+}
+
+[data-tab-active="true"] {
+       opacity: 1;
+       height: auto;
+       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;
+}