luci-theme-bootstrap, luci-theme-openwrt: allow dynlist .add-item to expand
[project/luci.git] / themes / luci-theme-bootstrap / htdocs / luci-static / bootstrap / cascade.css
index 4a40f6d680f1fe24492fcd82235f4ce14325e380..bb0a0987da93bd31dd4179db2f9e96009be90d87 100644 (file)
 /* Reset.less
  * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here      that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
  * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
-html {
-       margin: 0;
-       padding: 0;
-}
 
-body {
-       margin: 0;
-       padding: 5px;
-}
-
-h1, h2, h3, h4, h5, h6, p, pre, a, abbr, acronym, code, del, em, img, q, s,
-small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset,
-form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td,
-.table, .tbody, .tfoot, .thead, .tr, .th, .td {
+* {
        margin: 0;
        padding: 0;
        border: 0;
-       font-weight: normal;
-       font-style: normal;
-       font-size: 100%;
-       line-height: 1;
-       font-family: inherit;
+       box-sizing: border-box;
 }
 
 abbr[title], acronym[title] {
        border-bottom: 1px dotted;
+       font-weight: inherit;
        cursor: help;
 }
 
@@ -51,15 +36,7 @@ ol, ul {
        list-style: none;
 }
 
-q:before,
-q:after,
-blockquote:before,
-blockquote:after {
-       content: "";
-}
-
 html {
-       overflow-y: scroll;
        font-size: 100%;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
@@ -73,14 +50,8 @@ a:hover, a:active {
        outline: 0;
 }
 
-article,
-aside,
-details,
-figcaption,
-figure,
 footer,
 header,
-hgroup,
 nav,
 section {
        display: block;
@@ -102,7 +73,6 @@ sub {
 }
 
 img {
-       border: 0;
        -ms-interpolation-mode: bicubic;
 }
 
@@ -115,12 +85,7 @@ textarea {
        margin: 0;
        box-sizing: border-box;
        vertical-align: baseline;
-       *vertical-align: middle;
-}
-
-button, input {
        line-height: normal;
-       *overflow: visible;
 }
 
 button::-moz-focus-inner, input::-moz-focus-inner {
@@ -162,14 +127,13 @@ textarea {
  * Basic and global styles for generating a grid system, structural layout, and page templates
  * ------------------------------------------------------------------------------------------- */
 body {
-       background-color: #ffffff;
-       margin: 0;
+       background-color: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 13px;
        font-weight: normal;
        line-height: 18px;
        color: #404040;
-       padding-top: 58px;
+       padding: 58px 5px 5px 5px;
 }
 
 .container {
@@ -215,7 +179,8 @@ a:hover {
  * ---------------------------------------------------------------------------------------- */
 p,
 .cbi-map-descr,
-.cbi-section-descr {
+.cbi-section-descr,
+.table .tr.cbi-section-table-descr .th {
        font-size: 13px;
        font-weight: normal;
        line-height: 18px;
@@ -229,7 +194,7 @@ p small {
 
 h1,
 h2,
-h3,
+h3, legend,
 h4,
 h5,
 h6 {
@@ -265,14 +230,14 @@ h2 small {
        font-size: 14px;
 }
 
-h3,
+h3, legend,
 h4,
 h5,
 h6 {
        line-height: 36px;
 }
 
-h3 {
+h3, legend {
        font-size: 18px;
 }
 
@@ -414,11 +379,6 @@ fieldset legend {
        line-height: 1;
        color: #404040;
        padding-top: 20px;
-       *padding: 0 0 5px 0px;
-       /* IE6-7 */
-
-       *line-height: 1.5;
-       /* IE6-7 */
 
 }
 form .cbi-tab-descr {
@@ -427,20 +387,20 @@ form .cbi-tab-descr {
 }
 
 form .clearfix,
-form .cbi-value {
+.cbi-value {
        margin-bottom: 18px;
        zoom: 1;
 }
 
 form .clearfix:before, form .clearfix:after,
-form .cbi-value:before, form .cbi-value:after  {
+.cbi-value:before, .cbi-value:after  {
        display: table;
        content: "";
        zoom: 1;
 }
 
 form .clearfix:after,
-form .cbi-value:after {
+.cbi-value:after {
        clear: both;
 }
 
@@ -455,11 +415,11 @@ textarea {
 }
 
 form .input,
-form .cbi-value-field {
+.cbi-value-field {
        margin-left: 200px;
 }
 
-form .cbi-value label.cbi-value-title {
+.cbi-value label.cbi-value-title {
        padding-top: 6px;
        font-size: 13px;
        line-height: 18px;
@@ -473,6 +433,12 @@ input[type=checkbox], input[type=radio] {
        cursor: pointer;
 }
 
+label > input[type="checkbox"],
+label > input[type="radio"] {
+       vertical-align: bottom;
+       margin: 0;
+}
+
 input,
 textarea,
 select,
@@ -487,15 +453,57 @@ select,
        color: #808080;
        border: 1px solid #ccc;
        border-radius: 3px;
-       box-sizing: border-box;
 }
 
-.cbi-dropdown {
+.cbi-dropdown,
+.cbi-dynlist {
        min-width: 210px;
        max-width: 400px;
        width: auto;
 }
 
+.cbi-dynlist {
+       height: auto;
+       min-height: 30px;
+       display: inline-flex;
+       flex-direction: column;
+}
+
+.cbi-dynlist > .item {
+       margin-bottom: 4px;
+       box-shadow: 0 0 2px #ccc;
+       background: #fff;
+       padding: 2px 2em 2px 4px;
+       border: 1px solid #ccc;
+       border-radius: 3px;
+       position: relative;
+       pointer-events: none;
+}
+
+.cbi-dynlist > .item::after {
+       content: "×";
+       position: absolute;
+       display: inline-flex;
+       align-items: center;
+       top: -1px;
+       right: -1px;
+       bottom: -1px;
+       padding: 0 6px;
+       border: 1px solid #ccc;
+       border-radius: 0 3px 3px 0;
+       font-weight: bold;
+       color: #c44;
+       pointer-events: auto;
+}
+
+.cbi-dynlist > .add-item {
+       display: flex;
+}
+
+.cbi-dynlist > .add-item > input {
+       flex: 1 1 auto;
+}
+
 select {
        padding: initial;
        background: #fff;
@@ -515,7 +523,7 @@ input[type=checkbox], input[type=radio] {
 }
 
 input[type=file] {
-       background-color: #ffffff;
+       background-color: #fff;
        padding: initial;
        border: initial;
        line-height: initial;
@@ -528,23 +536,25 @@ input[type=button], input[type=reset], input[type=submit] {
        height: auto;
 }
 
-select, input[type=file] {
-       *height: auto;
-       *margin-top: 4px;
-       /* For IE7, add top margin to align select with labels */
-}
-
 select[multiple] {
        height: inherit;
-       background-color: #ffffff;
+       background-color: #fff;
 }
 
 textarea {
        height: auto;
 }
 
+.td > input[type=text],
+.td > input[type=password],
+.td > select,
+.td > .cbi-dropdown,
+.cbi-dynlist > .add-item > .cbi-dropdown {
+       width: 100%;
+}
+
 .uneditable-input {
-       background-color: #ffffff;
+       background-color: #fff;
        display: block;
        border-color: #eee;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
@@ -559,15 +569,18 @@ textarea {
        color: #bfbfbf;
 }
 
-input, textarea {
+.item::after, .btn, .cbi-button, input, 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,
 input:focus, textarea:focus {
        outline: 0;
-       border-color: rgba(82, 168, 236, 0.8);
+       border-color: rgba(82, 168, 236, 0.8) !important;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
+       text-decoration: none;
 }
 
 input[type=file]:focus, input[type=checkbox]:focus, select:focus {
@@ -575,74 +588,42 @@ input[type=file]:focus, input[type=checkbox]:focus, select:focus {
        outline: 1px dotted #666;
 }
 
-form .clearfix.error > label, form .clearfix.error .help-block, form .clearfix.error .help-inline {
-       color: #b94a48;
-}
-
-form .clearfix.error input, form .clearfix.error textarea {
-       color: #b94a48;
-       border-color: #ee5f5b;
-}
-
-form .clearfix.error input:focus, form .clearfix.error textarea:focus {
-       border-color: #e9322d;
-       box-shadow: 0 0 6px #f8b9b7;
-}
-
-form .clearfix.error .input-prepend .add-on, form .clearfix.error .input-append .add-on {
-       color: #b94a48;
-       background-color: #fce6e6;
-       border-color: #b94a48;
-}
-
-form .clearfix.warning > label, form .clearfix.warning .help-block, form .clearfix.warning .help-inline {
-       color: #c09853;
-}
-
-form .clearfix.warning input, form .clearfix.warning textarea {
-       color: #c09853;
-       border-color: #ccae64;
-}
-
-form .clearfix.warning input:focus, form .clearfix.warning textarea:focus {
-       border-color: #be9a3f;
-       box-shadow: 0 0 6px #e5d6b1;
-}
-
-form .clearfix.warning .input-prepend .add-on, form .clearfix.warning .input-append .add-on {
-       color: #c09853;
-       background-color: #d2b877;
-       border-color: #c09853;
+input[disabled],
+select[disabled],
+textarea[disabled],
+input[readonly],
+select[readonly],
+textarea[readonly] {
+       background-color: #f5f5f5;
+       border-color: #ddd;
+       pointer-events: none;
+       cursor: default;
 }
 
-form .clearfix.success > label, form .clearfix.success .help-block, form .clearfix.success .help-inline {
-       color: #468847;
+select[readonly],
+textarea[readonly] {
+       pointer-events: auto;
+       cursor: auto;
 }
 
-form .clearfix.success input, form .clearfix.success textarea {
-       color: #468847;
-       border-color: #57a957;
+.cbi-optionals,
+.cbi-section-create {
+       padding: 0 0 10px 10px;
 }
 
-form .clearfix.success input:focus, form .clearfix.success textarea:focus {
-       border-color: #458845;
-       box-shadow: 0 0 6px #9acc9a;
+.cbi-section-create {
+       margin: -3px;
+       display: inline-flex;
+       align-items: center;
 }
 
-form .clearfix.success .input-prepend .add-on, form .clearfix.success .input-append .add-on {
-       color: #468847;
-       background-color: #bcddbc;
-       border-color: #468847;
+.cbi-section-create > * {
+       margin: 3px;
+       flex: 1 1 auto;
 }
 
-input[disabled],
-select[disabled],
-textarea[disabled],
-input[readonly],
-select[readonly],
-textarea[readonly] {
-       background-color: #f5f5f5;
-       border-color: #ddd;
+.cbi-section-create > * > input {
+       width: 100%;
 }
 
 .actions,
@@ -670,6 +651,11 @@ textarea[readonly] {
        text-decoration: underline;
 }
 
+.cbi-page-actions > form {
+       display: inline;
+       margin: 0;
+}
+
 .help-inline, .help-block {
        font-size: 13px;
        line-height: 18px;
@@ -706,6 +692,7 @@ textarea[readonly] {
        padding: 0;
        font-size: 13px;
        border-collapse: collapse;
+       position: relative;
 }
 
 .table .th, .table .td {
@@ -716,20 +703,27 @@ textarea[readonly] {
        text-align: left;
 }
 
-.table .th {
+.table .tr:first-child .th {
        padding-top: 9px;
        font-weight: bold;
-       vertical-align: middle;
+       vertical-align: top;
 }
 
-.table .td {
-       vertical-align: top;
+.table .td, .table .th {
        border-top: 1px solid #ddd;
 }
 
-.table .tbody .th {
-       border-top: 1px solid #ddd;
-       vertical-align: top;
+.tr.placeholder {
+       height: calc(3em + 20px);
+}
+
+.tr.placeholder > .td {
+       position: absolute;
+       left: 0;
+       right: 0;
+       bottom: 0;
+       text-align: center;
+       line-height: 3em;
 }
 
 /* Patterns.less
@@ -741,7 +735,7 @@ header {
        top: 0;
        left: 0;
        right: 0;
-       z-index: 10000;
+       z-index: 800;
        overflow: visible;
        color: #BFBFBF;
 }
@@ -754,7 +748,7 @@ header a {
 header h3 a:hover, header .brand:hover, header ul .active > a {
        background-color: #333;
        background-color: rgba(255, 255, 255, 0.05);
-       color: #ffffff;
+       color: #fff;
        text-decoration: none;
 }
 
@@ -767,7 +761,7 @@ header h3 a, header .brand {
        display: block;
        padding: 8px 20px 12px;
        margin-left: -20px;
-       color: #ffffff;
+       color: #fff;
        font-size: 20px;
        font-weight: 200;
        line-height: 1;
@@ -808,7 +802,7 @@ header div > ul a, .nav a {
 }
 
 header div > ul a:hover, .nav a:hover {
-       color: #ffffff;
+       color: #fff;
        text-decoration: none;
 }
 
@@ -858,7 +852,7 @@ header div > ul .menu-dropdown .dropdown-toggle,
 .nav .menu-dropdown .dropdown-toggle,
 header div > ul .dropdown-menu .dropdown-toggle,
 .nav .dropdown-menu .dropdown-toggle {
-       color: #ffffff;
+       color: #fff;
 }
 
 header div > ul .menu-dropdown a.menu.open,
@@ -888,14 +882,14 @@ header div > ul .dropdown-menu li a:hover,
        background-color: #191919;
        background-repeat: repeat-x;
        background-image: linear-gradient(to bottom, #292929, #191919);
-       color: #ffffff;
+       color: #fff;
 }
 
 header div > ul .menu-dropdown .active a,
 .nav .menu-dropdown .active a,
 header div > ul .dropdown-menu .active a,
 .nav .dropdown-menu .active a {
-       color: #ffffff;
+       color: #fff;
 }
 
 header div > ul .menu-dropdown .divider,
@@ -925,12 +919,12 @@ a.menu:after, .dropdown-toggle:after {
        margin-left: 4px;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
-       border-top: 4px solid #ffffff;
+       border-top: 4px solid #fff;
        opacity: 0.5;
 }
 
 .menu-dropdown, .dropdown-menu {
-       background-color: #ffffff;
+       background-color: #fff;
        float: left;
        position: absolute;
        top: 40px;
@@ -963,7 +957,7 @@ a.menu:after, .dropdown-toggle:after {
        margin: 5px 0;
        overflow: hidden;
        background-color: #eee;
-       border-bottom: 1px solid #ffffff;
+       border-bottom: 1px solid #fff;
 }
 
 header .dropdown-menu a, .dropdown-menu a {
@@ -973,16 +967,16 @@ header .dropdown-menu a, .dropdown-menu a {
        font-weight: normal;
        line-height: 18px;
        color: #808080;
-       text-shadow: 0 1px 0 #ffffff;
+       text-shadow: 0 1px 0 #fff;
 }
 
 header .dropdown-menu a:hover,
 .dropdown-menu a:hover,
 header .dropdown-menu a.hover,
 .dropdown-menu a.hover {
-       background-color: #dddddd;
+       background-color: #ddd;
        background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #eeeeee, #dddddd);
+       background-image: linear-gradient(to bottom, #eee, #ddd);
        color: #404040;
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.025), inset 0 -1px rgba(0, 0, 0, 0.025);
@@ -992,7 +986,7 @@ header .dropdown-menu a.hover,
 .dropdown.open .menu,
 .open .dropdown-toggle,
 .dropdown.open .dropdown-toggle {
-       color: #ffffff;
+       color: #fff;
        background: #ccc;
        background: rgba(0, 0, 0, 0.3);
 }
@@ -1091,7 +1085,7 @@ header .dropdown-menu a.hover,
 .cbi-tabmenu .active > a, .cbi-tabmenu .active > a:hover,
 .cbi-tab > a:link, .cbi-tab > a:hover {
        color: #808080;
-       background-color: #ffffff;
+       background-color: #fff;
        border: 1px solid #ddd;
        border-bottom-color: transparent;
        cursor: default;
@@ -1135,15 +1129,15 @@ header .dropdown-menu a.hover,
        margin: 0 0 18px;
        background-color: #f5f5f5;
        background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #ffffff, #f5f5f5);
+       background-image: linear-gradient(to bottom, #fff, #f5f5f5);
        border: 1px solid #ddd;
        border-radius: 3px;
-       box-shadow: inset 0 1px 0 #ffffff;
+       box-shadow: inset 0 1px 0 #fff;
 }
 
 .breadcrumb li {
        display: inline;
-       text-shadow: 0 1px 0 #ffffff;
+       text-shadow: 0 1px 0 #fff;
 }
 
 .breadcrumb .divider {
@@ -1161,6 +1155,59 @@ footer {
        border-top: 1px solid #eee;
 }
 
+#modal_overlay {
+       position: fixed;
+       top: 0;
+       bottom: 0;
+       left: -10000px;
+       right: 10000px;
+       background: rgba(0, 0, 0, 0.7);
+       z-index: 900;
+       overflow-y: scroll;
+       -webkit-overflow-scrolling: touch;
+       transition: opacity .125s ease-in;
+       opacity: 0;
+}
+
+.modal {
+       width: 90%;
+       margin: 5em auto;
+       display: flex;
+       flex-wrap: wrap;
+       min-height: 32px;
+       max-width: 600px;
+       align-items: center;
+       border-radius: 3px;
+       background: #fff;
+       box-shadow: 0 0 3px #444;
+       padding: 1em 1em .5em 1em;
+       max-height: 2400px;
+       min-width: 270px;
+}
+
+.modal > * {
+       flex-basis: 100%;
+       line-height: normal;
+       margin-bottom: .5em;
+}
+
+.modal > pre,
+.modal > textarea {
+       white-space: pre-wrap;
+       overflow: auto;
+}
+
+body.modal-overlay-active {
+       overflow: hidden;
+       height: 100vh;
+}
+
+body.modal-overlay-active #modal_overlay {
+       left: 0;
+       right: 0;
+       opacity: 1;
+}
+
 .btn.danger,
 .alert-message.danger,
 .btn.danger:hover,
@@ -1176,8 +1223,9 @@ footer {
 .btn.info,
 .alert-message.info,
 .btn.info:hover,
-.alert-message.info:hover {
-       color: #ffffff;
+.alert-message.info:hover,
+.cbi-tooltip.error, .cbi-tooltip.success, .cbi-tooltip.info {
+       color: #fff;
 }
 
 .btn .close, .alert-message .close {
@@ -1188,40 +1236,37 @@ footer {
 .btn.danger,
 .alert-message.danger,
 .btn.error,
-.alert-message.error {
-       background-color: #c43c35;
-       background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #ee5f5b, #c43c35);
+.alert-message.error,
+.cbi-tooltip.error {
+       background: linear-gradient(to bottom, #ee5f5b, #c43c35) repeat-x;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-       border-color: #c43c35 #c43c35 #882a25;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
 }
 
-.btn.success, .alert-message.success {
-       background-color: #57a957;
-       background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #62c462, #57a957);
+.btn.success, .alert-message.success, .cbi-tooltip.success {
+       background: linear-gradient(to bottom, #62c462, #57a957) repeat-x;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-       border-color: #57a957 #57a957 #3d773d;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
 }
 
-.btn.info, .alert-message.info {
-       background-color: #339bb9;
-       background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #5bc0de, #339bb9);
+.btn.info, .alert-message.info, .cbi-tooltip.info {
+       background: linear-gradient(to bottom, #5bc0de, #339bb9) repeat-x;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-       border-color: #339bb9 #339bb9 #22697d;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
 }
 
+.alert-message.notice, .cbi-tooltip.notice {
+       background: linear-gradient(to bottom, #efefef, #fefefe) repeat-x;
+       text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.25);
+       border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
+}
+
+.item::after,
 .btn,
 .cbi-button {
        cursor: pointer;
        display: inline-block;
-       background-color: #e6e6e6;
-       background-repeat: no-repeat;
-       background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+       background: linear-gradient(#fff, #fff 25%, #e6e6e6) no-repeat;
        padding: 5px 14px 6px;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
        color: #333;
@@ -1233,110 +1278,90 @@ footer {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
 }
 
-.btn:hover,
-.cbi-button:hover {
-       color: #333;
-       text-decoration: none;
-}
-
 .btn:focus,
 .cbi-button:focus {
        outline: 1px dotted #666;
 }
 
-.btn.primary,
-.cbi-page-actions .cbi-button-apply,
-.cbi-page-actions .cbi-button-save,
-.cbi-page-actions .cbi-button-reset {
-       color: #ffffff;
-       padding: 5px 14px 6px;
-       background-color: #0064cd;
-       background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #049cdb, #0064cd);
-       text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-       border-color: #0064cd #0064cd #003f81;
-       border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
-}
-
 .cbi-input-invalid,
+.cbi-input-invalid.cbi-dropdown,
+.cbi-input-invalid.cbi-dropdown:not([open]) > ul > li,
 .cbi-value-error input {
-       color: #FF0000;
-       border-color: #FF0000;
-}
-
-.cbi-button-up,
-.cbi-input-up {
-       background-position: center center;
-       background-image: url('../resources/cbi/up.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+       color: #f00;
+       border-color: #f00;
 }
 
-.cbi-button-down,
-.cbi-input-down {
-       background-position: center center;
-       background-image: url('../resources/cbi/down.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-positive,
+.cbi-button-fieldadd,
+.cbi-button-add,
+.cbi-button-save {
+       border-color: #4a4;
+       color: #4a4;
 }
 
+.cbi-button-neutral,
+.cbi-button-download,
 .cbi-button-find,
-.cbi-input-find {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/find.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
-}
-
-.cbi-button-add,
-.cbi-input-add {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/add.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-link,
+.cbi-button-up,
+.cbi-button-down {
+       color: #444;
 }
 
+.btn.primary,
+.cbi-button-action,
 .cbi-button-apply,
-.cbi-input-apply {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/apply.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-reload,
+.cbi-button-edit {
+       border-color: #0069d6;
+       color: #0069d6;
 }
 
+.cbi-button-negative,
+.cbi-section-remove .cbi-button,
 .cbi-button-reset,
-.cbi-input-reset {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/reset.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-remove {
+       border-color: #c44;
+       color: #c44;
 }
 
-.cbi-button-edit,
-.cbi-input-edit {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/edit.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-page-actions::after {
+       display: table;
+       content: "";
+       clear: both;
 }
 
-.cbi-button-remove,
-.cbi-input-remove {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/remove.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-page-actions > :not([method="post"]):not(.cbi-button-apply):not(.cbi-button-save):not(.cbi-button-reset) {
+       float: left;
+       margin-right: .4em;
 }
 
-.cbi-button-reload,
-.cbi-input-reload {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/reload.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.btn.primary,
+.cbi-button-action.important,
+.cbi-page-actions .cbi-button-apply,
+.cbi-section-actions .cbi-button-edit {
+       color: #fff;
+       background: linear-gradient(to bottom, #0069d6, #0049d6) no-repeat;
+       text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
 }
 
-.cbi-button-link,
-.cbi-input-link {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/link.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-positive.important,
+.cbi-page-actions .cbi-button-save {
+       color: #fff;
+       background: linear-gradient(to bottom, #4a4, #484) no-repeat;
+       text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
 }
 
-.cbi-button-download,
-.cbi-input-download {
-       background-position: 6px center, left top;
-       padding-left: 28px;
-       background-image: url('../resources/cbi/download.gif'), linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+.cbi-button-negative.important {
+       color: #fff;
+       background: linear-gradient(to bottom, #c44, #c00) no-repeat;
+       text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+}
+
+.cbi-page-actions .cbi-button-apply + .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 {
@@ -1351,6 +1376,7 @@ footer {
        color: #404040;
 }
 
+.cbi-dynlist > .item:focus,
 .cbi-dropdown:focus {
        outline: 2px solid #4b6e9b;
 }
@@ -1387,6 +1413,7 @@ footer {
        font-weight: bold;
        text-shadow: 1px 1px 0px #fff;
        display: none;
+       justify-content: center;
 }
 
 .cbi-dropdown > ul > li {
@@ -1403,7 +1430,7 @@ footer {
        min-height: 20px;
 }
 
-.cbi-dropdown > ul > li .hide-open { display: initial; }
+.cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
 .cbi-dropdown > ul > li .hide-close { display: none; }
 
 .cbi-dropdown > ul > li[display]:not([display="0"]) {
@@ -1444,10 +1471,11 @@ footer {
        border: 1px solid #918e8c;
        box-shadow: 0 0 4px #918e8c;
        position: absolute;
-       z-index: 1000;
+       z-index: 1100;
        max-width: none;
        min-width: 100%;
        width: auto;
+       transition: max-height .125s ease-in;
 }
 
 .cbi-dropdown > ul > li[display],
@@ -1468,7 +1496,7 @@ footer {
 }
 
 .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
-.cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; }
+.cbi-dropdown[open] > ul.dropdown > li .hide-close { display: block; display: initial; }
 
 .cbi-dropdown[open] > ul.dropdown > li {
        border-bottom: 1px solid #ccc;
@@ -1487,11 +1515,132 @@ footer {
        border-bottom: none;
 }
 
+.cbi-dropdown[open] > ul.dropdown > li[unselectable] {
+       opacity: 0.7;
+}
+
+.cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
+       width: 100%;
+}
+
 .cbi-dropdown[disabled] {
        pointer-events: none;
        opacity: .6;
 }
 
+input[type="text"] + .cbi-button,
+input[type="password"] + .cbi-button,
+select + .cbi-button {
+       border-radius: 0 3px 3px 0;
+       border-color: #ccc;
+       margin-left: -2px;
+       padding: 0 6px;
+       vertical-align: top;
+       height: 30px;
+       font-size: 14px;
+       line-height: 28px;
+}
+
+select + .cbi-button {
+       border-left-color: transparent;
+}
+
+.cbi-title-ref {
+       color: #37c;
+}
+
+.cbi-title-ref::after {
+       content: "➙";
+}
+
+.cbi-tooltip-container {
+       cursor: help;
+}
+
+.cbi-tooltip {
+       position: absolute;
+       z-index: 1000;
+       left: -1000px;
+       box-shadow: 0 0 2px #ccc;
+       border-radius: 3px;
+       background: #fff;
+       white-space: pre;
+       padding: 2px 5px;
+       opacity: 0;
+       transition: opacity .25s ease-in;
+}
+
+.cbi-tooltip-container:hover .cbi-tooltip:not(:empty) {
+       left: auto;
+       opacity: 1;
+       transition: opacity .25s ease-in;
+}
+
+.cbi-progressbar {
+       border: 1px solid #ccc;
+       border-radius: 3px;
+       position: relative;
+       min-width: 170px;
+       height: 20px;
+       margin: 4px 0;
+       background: #f9f9f9;
+}
+
+.cbi-progressbar > div {
+       background: #90c0e0;
+       height: 100%;
+       transition: width .25s ease-in;
+       width: 0%;
+}
+
+.cbi-progressbar::after {
+       position: absolute;
+       bottom: 0;
+       top: 0;
+       right: 0;
+       left: 0;
+       text-align: center;
+       text-shadow: 0 0 2px #fff;
+       content: attr(title);
+       white-space: pre;
+       overflow: hidden;
+       text-overflow: ellipsis;
+}
+
+.zonebadge .cbi-tooltip {
+       padding: 1px;
+       background: inherit;
+       margin: -1.6em 0 0 -5px;
+       border-radius: 3px;
+       pointer-events: none;
+       box-shadow: 0 0 3px #444;
+}
+
+.zonebadge .cbi-tooltip > * {
+       margin: 1px;
+}
+
+.zone-forwards {
+       display: flex;
+       flex-wrap: wrap;
+}
+
+.zone-forwards > * {
+       flex: 1 1 40%;
+       padding: 1px;
+}
+
+.zone-forwards > span {
+       flex-basis: 10%;
+       text-align: center;
+}
+
+.zone-forwards .zone-src,
+.zone-forwards .zone-dest {
+       display: flex;
+       flex-direction: column;
+}
+
 .btn.active, .btn:active {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
 }
@@ -1522,46 +1671,6 @@ footer {
        font-size: 11px;
 }
 
-/* Button icons for specific pages */
-.Startup .cbi-section-table input.cbi-input-apply,
-.Startup .cbi-section-table input.cbi-button-apply {
-         background-image: url("../resources/cbi/apply.gif");
-         background-position: 7px 4px;
-         padding: 3px 9px 3px 27px;
-}
-
-.Processes .cbi-section-table input.cbi-input-reload,
-.Startup .cbi-section-table input.cbi-input-reload {
-         background-image: url("../resources/cbi/reload.gif");
-         background-position: 7px 4px;
-         padding: 3px 9px 3px 27px;
-}
-
-.Processes .cbi-section-table input.cbi-input-remove,
-.Processes .cbi-section-table div.cbi-section-remove input,
-.Startup .cbi-section-table input.cbi-input-remove,
-.Startup .cbi-section-table div.cbi-section-remove input  {
-         background-image: url("../resources/cbi/remove.gif");
-         background-position: 7px 4px;
-         padding: 3px 9px 3px 27px;
-}
-
-.Processes .cbi-section-table input.cbi-input-reset,
-.Processes .cbi-section-table input.cbi-button-reset,
-.Startup .cbi-section-table input.cbi-input-reset,
-.Startup .cbi-section-table input.cbi-button-reset  {
-         background-image: url("../resources/cbi/reset.gif");
-         background-position: 7px 4px;
-         padding: 3px 9px 3px 27px;
-}
-
-.Startup .cbi-section-table input.cbi-input-save,
-.Startup .cbi-section-table input.cbi-button-save {
-         background-image: url("../resources/cbi/save.gif");
-         background-position: 7px 4px;
-         padding: 3px 9px 3px 27px;
-}
-
 button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
        padding: 0;
        border: 0;
@@ -1569,16 +1678,16 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
 
 .close {
        float: right;
-       color: #000000;
+       color: #000;
        font-size: 20px;
        font-weight: bold;
        line-height: 13.5px;
-       text-shadow: 0 1px 0 #ffffff;
+       text-shadow: 0 1px 0 #fff;
        opacity: 0.25;
 }
 
 .close:hover {
-       color: #000000;
+       color: #000;
        text-decoration: none;
        opacity: 0.4;
 }
@@ -1588,11 +1697,8 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
        padding: 7px 15px;
        margin-bottom: 18px;
        color: #404040;
-       background-color: #eedc94;
-       background-repeat: repeat-x;
-       background-image: linear-gradient(to bottom, #fceec1, #eedc94);
+       background: linear-gradient(to bottom, #fceec1, #eedc94) repeat-x;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
-       border-color: #eedc94 #eedc94 #e4c652;
        border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
        border-width: 1px;
@@ -1615,7 +1721,7 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
 .alert-message.error p a,
 .alert-message.success p a,
 .alert-message.info p a {
-       color: #ffffff;
+       color: #fff;
 }
 
 .alert-message h5 {
@@ -1632,15 +1738,11 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
        line-height: 28px;
 }
 
-.alert-message .btn {
-       box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
-}
-
 .label {
        padding: 1px 3px 2px;
        font-size: 9.75px;
        font-weight: bold;
-       color: #ffffff !important;
+       color: #fff !important;
        text-transform: uppercase;
        white-space: nowrap;
        background-color: #bfbfbf;
@@ -1650,7 +1752,7 @@ button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
 
 a.label:link,
 a.label:visited {
-       color: #ffffff;
+       color: #fff;
 }
 
 a.label:hover {
@@ -1676,24 +1778,11 @@ a.label:hover {
 /* LuCI specific items */
 .hidden { display: none }
 
-#memtotal > div,
-#memfree > div,
-#memcache > div,
-#membuff > div,
-#conns > div  {
-         border: 1px solid #CCCCCC;
-         border-radius: 3px 3px 3px 3px;
-         color: #808080;
-         display: inline-block;
-         font-size: 13px;
-         line-height: 18px;
-}
-
 #xhr_poll_status {
          cursor: pointer;
 }
 
-form.inline { display: inline }
+form.inline { display: inline; margin-bottom: 0; }
 
 header .pull-right { padding-top: 8px; }
 
@@ -1701,23 +1790,39 @@ header .pull-right { padding-top: 8px; }
 
 #syslog {  width: 100%; }
 
-.cbi-section-table tbody tr:nth-child(odd) td, .cbi-section-table tbody tr:nth-child(odd) th {
-       background-color: #f9f9f9;
-}
-
-.cbi-section-table tbody tr:hover td, .cbi-section-table tbody tr:hover th  {
+.cbi-section-table .tr:hover .td,
+.cbi-section-table .tr:hover .th,
+.cbi-section-table .tr:hover::before {
        background-color: #f5f5f5;
 }
 
-.cbi-section-table tr.cbi-section-table-descr th {
+.cbi-section-table .tr.cbi-section-table-descr .th {
        font-weight: normal;
 }
 
-.left { text-align: left !important; }
+.cbi-section-table-titles.named::before,
+.cbi-section-table-descr.named::before,
+.cbi-section-table-row[data-title]::before {
+       content: attr(data-title) " ";
+       display: table-cell;
+       padding: 10px 10px 9px;
+       line-height: 18px;
+       font-weight: bold;
+       vertical-align: middle;
+}
 
-.right { text-align: right !important; }
+.cbi-section-table-titles.named::before,
+.cbi-section-table-descr.named::before,
+.cbi-section-table-row[data-title]::before {
+       border-top: 1px solid #ddd;
+}
 
+.left { text-align: left !important; }
+.right { text-align: right !important; }
 .center { text-align: center !important; }
+.top { vertical-align: top !important; }
+.middle { vertical-align: middle !important; }
+.bottom { vertical-align: bottom !important; }
 
 .cbi-value-field { line-height: 1.5em; }
 
@@ -1732,10 +1837,11 @@ table table td,
        border: none;
 }
 
-.table.cbi-section-table input,
+.table.cbi-section-table input[type="password"],
+.table.cbi-section-table input[type="text"],
 .table.cbi-section-table textarea,
 .table.cbi-section-table select {
-       width: auto;
+       width: 100%;
 }
 
 .table.cbi-section-table .td.cbi-section-table-cell {
@@ -1747,35 +1853,66 @@ table table td,
        width: inherit;
 }
 
+.td.cbi-section-actions {
+       text-align: right;
+       vertical-align: middle;
+}
+
+.td.cbi-section-actions > * {
+       display: flex;
+}
+
+.td.cbi-section-actions > * > *,
+.td.cbi-section-actions > * > form > * {
+       flex: 1 1 4em;
+       margin: 0 1px;
+}
+
+.td.cbi-section-actions > * > form {
+       display: inline-flex;
+       margin: 0;
+}
+
 .table.valign-middle .td {
        vertical-align: middle;
 }
 
-.cbi-value-description { display: inline; }
+.cbi-rowstyle-2,
+.tr.table-titles,
+.tr.cbi-section-table-titles {
+       background: #f9f9f9;
+}
 
-.cbi-value-description img { vertical-align: middle; }
+.cbi-value-description {
+       background-image: url(/luci-static/resources/cbi/help.gif);
+       background-position: .25em .2em;
+       background-repeat: no-repeat;
+       margin: .25em 0 0 0;
+       padding: 0 0 0 1.7em;
+}
 
 .cbi-section-error {
-       border: 1px solid #FF0000;
+       border: 1px solid #f00;
        border-radius: 3px;
-       background-color: #FCE6E6;
+       background-color: #fce6e6;
        padding: 5px;
+       margin-bottom: 18px;
 }
 
 .cbi-section-error ul { margin: 0 0 0 20px; }
 
 .cbi-section-error ul li {
-       color: #FF0000;
+       color: #f00;
        font-weight: bold;
 }
 
 .ifacebox {
-       background-color: #FFFFFF;
-       border: 1px solid #CCCCCC;
+       background-color: #fff;
+       border: 1px solid #ccc;
        margin: 0 10px;
        text-align: center;
        white-space: nowrap;
-       background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+       background-image: linear-gradient(#fff, #fff 25%, #f9f9f9);
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
        border-radius: 4px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
@@ -1786,7 +1923,7 @@ table table td,
 }
 
 .ifacebox .ifacebox-head {
-       border-bottom: 1px solid #CCCCCC;
+       border-bottom: 1px solid #ccc;
        padding: 2px;
        background: #eee;
 }
@@ -1796,17 +1933,17 @@ table table td,
 }
 
 .ifacebox .ifacebox-body {
-       padding: 6px;
+       padding: .25em;
 }
 
 .ifacebadge {
-       display: inline-flex;
+       display: inline-block;
        flex-direction: row;
        white-space: nowrap;
-       background-color: #FFFFFF;
-       border: 1px solid #CCCCCC;
+       background-color: #fff;
+       border: 1px solid #ccc;
        padding: 2px;
-       background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
+       background-image: linear-gradient(#fff, #fff 25%, #f9f9f9);
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
        border-radius: 4px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
@@ -1818,11 +1955,10 @@ table table td,
        width: 16px;
        height: 16px;
        vertical-align: middle;
-       margin-right: .25em;
 }
 
 .ifacebadge-active {
-       border-color: #000000;
+       border-color: #000;
        font-weight: bold;
 }
 
@@ -1843,20 +1979,37 @@ table table td,
        text-align: left;
 }
 
+.network-status-table .ifacebox-body > * {
+       margin: .25em;
+}
+
 .network-status-table .ifacebox-body > span {
-       flex: 10;
+       flex: 10 10 auto;
 }
 
 .network-status-table .ifacebox-body > div {
        display: flex;
        flex-wrap: wrap;
+       margin: -.125em;
 }
 
+#dsl_status_table .ifacebox-body > span > strong {
+       display: inline-block;
+       min-width: 35%;
+}
+
+.ifacebadge.large,
 .network-status-table .ifacebox-body .ifacebadge {
+       display: inline-flex;
        flex: 1;
-       margin: .5em .25em 0 .25em;
-       padding: .5em;
+       padding: .25em;
        min-width: 220px;
+       margin: .125em;
+}
+
+.ifacebadge > *,
+.ifacebadge.large > * {
+       margin: 0 .125em;
 }
 
 .zonebadge {
@@ -1864,9 +2017,8 @@ table table td,
        border-radius: 4px;
        display: inline-block;
        white-space: nowrap;
-       color: #666666;
+       color: #666;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
-       cursor: pointer;
 }
 
 .zonebadge > em,
@@ -1884,8 +2036,8 @@ table table td,
 }
 
 .zonebadge-empty {
-       border: 1px dashed #AAAAAA;
-       color: #AAAAAA;
+       border: 1px dashed #aaa;
+       color: #aaa;
        font-style: italic;
        font-size: smaller;
 }
@@ -1893,51 +2045,55 @@ table table td,
 div.cbi-value var,
 .td.cbi-value-field var {
        font-style: italic;
-       color: #0069D6;
+       color: #0069d6;
 }
 
 .uci-change-list {
-       font-family: monospace;
+       line-height: 170%;
+       white-space: pre;
 }
 
+.uci-change-list del,
 .uci-change-list ins,
-.uci-change-legend-label ins {
+.uci-change-list var,
+.uci-change-legend-label del,
+.uci-change-legend-label ins,
+.uci-change-legend-label var {
        text-decoration: none;
-       border: 1px solid #00FF00;
-       background-color: #CCFFCC;
-       display: block;
+       font-family: monospace;
+       font-style: normal;
+       border: 1px solid #ccc;
+       background: #eee;
        padding: 2px;
+       display: block;
+       line-height: 15px;
+       margin-bottom: 1px;
+}
+
+.uci-change-list ins,
+.uci-change-legend-label ins {
+       border-color: #0f0;
+       background: #cfc;
 }
 
 .uci-change-list del,
 .uci-change-legend-label del {
-       text-decoration: none;
-       border: 1px solid #FF0000;
-       background-color: #FFCCCC;
-       display: block;
-       font-style: normal;
-       padding: 2px;
+       border-color: #f00;
+       background: #fcc;
 }
 
 .uci-change-list var,
 .uci-change-legend-label var {
-       text-decoration: none;
-       border: 1px solid #CCCCCC;
-       background-color: #EEEEEE;
-       display: block;
-       font-style: normal;
-       padding: 2px;
-       line-height: 19px;
-       white-space: pre;
+       border-color: #ccc;
+       background: #eee;
 }
 
 .uci-change-list var ins,
 .uci-change-list var del {
-       display: inline;
-       /*border: none;*/
-       white-space: pre;
-       font-style: normal;
-       padding: 0px;
+       display: inline-block;
+       border: none;
+       width: 100%;
+       padding: 0;
 }
 
 .uci-change-legend {
@@ -1957,14 +2113,106 @@ div.cbi-value var,
        width: 10px;
        height: 10px;
        display: block;
+       position: relative;
 }
 
 .uci-change-legend-label var ins,
 .uci-change-legend-label var del {
-       line-height: 6px;
        border: none;
+       position: absolute;
+       top: 2px;
+       left: 2px;
+       right: 2px;
+       bottom: 2px;
+}
+
+#modal_overlay {
+       position: fixed;
+       top: 0;
+       bottom: 0;
+       left: -10000px;
+       right: 10000px;
+       background: rgba(0, 0, 0, 0.7);
+       z-index: 900;
+       overflow-y: scroll;
+       -webkit-overflow-scrolling: touch;
+       transition: opacity .125s ease-in;
+       opacity: 0;
+}
+
+#modal_overlay > .modal {
+       width: 90%;
+       margin: 5em auto;
+       display: flex;
+       flex-wrap: wrap;
+       min-height: 32px;
+       max-width: 600px;
+       align-items: center;
+       border-radius: 3px;
+       background: #fff;
+       box-shadow: 0 0 3px #444;
+       padding: 1em 1em .5em 1em;
+       max-height: 2400px;
+       min-width: 270px;
+}
+
+#modal_overlay .modal > * {
+       flex-basis: 100%;
+       line-height: normal;
+       margin-bottom: .5em;
+}
+
+#modal_overlay .modal > pre,
+#modal_overlay .modal > textarea {
+       white-space: pre-wrap;
+       overflow: auto;
+}
+
+body.modal-overlay-active {
+       overflow: hidden;
+       height: 100vh;
+}
+
+body.modal-overlay-active #modal_overlay {
+       left: 0;
+       right: 0;
+       opacity: 1;
 }
 
 html body.apply-overlay-active {
        height: calc(100vh - 63px);
 }
+
+#applyreboot-section {
+       line-height: 300%;
+}
+
+[data-page="admin-network-dhcp"] [data-name="ip"] {
+       width: 15%;
+}
+
+@keyframes flash {
+       0% { opacity: 1; }
+       50% { opacity: .5; }
+       100% { opacity: 1; }
+}
+
+.flash {
+       animation: flash .35s;
+}
+
+.spinning {
+       position: relative;
+       padding-left: 32px !important;
+}
+
+.spinning::before {
+       position: absolute;
+       top: 0;
+       left: 0;
+       bottom: 0;
+       width: 32px;
+       content: " ";
+       background: url(../resources/icons/loading.gif) no-repeat center;
+       background-size: 16px;
+}