luci-theme-material: standardize menu and drop jquery
[project/luci.git] / themes / luci-theme-material / htdocs / luci-static / material / cascade.css
index 40ff001b9501c3b42ce890333bfcd46d8329ebe1..c41afc5b6a096cb47415ca82f4b943058c44f531 100644 (file)
@@ -189,7 +189,7 @@ button,
 select,
 input,
 .cbi-dropdown {
-       height: 1.8rem;
+       min-height: 1.8rem;
        padding: 0;
        color: rgba(0, 0, 0, .87);
        border: 0;
@@ -293,11 +293,13 @@ small {
        position: fixed;
        z-index: 1000;
        top: 0;
-       display: block;
+       opacity: 1;
+       visibility: visible;
        width: 100%;
        height: 100%;
        pointer-events: none;
        background-color: rgb(240, 240, 240);
+       transition: visibility 400ms, opacity 400ms;
 }
 
 .main > .loading > span {
@@ -347,6 +349,7 @@ small {
        height: calc(100% - 4rem);
        background-color: #fff;
        background-color: var(--menu-bg-color);
+       transition: visibility 400ms, width 400ms;
 }
 
 .main-right {
@@ -443,7 +446,8 @@ header > .fill > .container > .status > * {
        background-color: #5cb85c !important;
 }
 
-.notice {
+.notice,
+[data-indicator]:not([data-style="inactive"]) {
        background-color: #5bc0de !important;
 }
 
@@ -515,6 +519,10 @@ header > .fill > .container > .status > * {
        display: none;
 }
 
+.main > .main-left > .nav > .slide.active > ul {
+       display: block;
+}
+
 .main > .main-left > .nav > .slide > .menu,
 .main > .main-left > .nav > li > [data-title="Logout"] {
        font-size: 1.15rem;
@@ -571,10 +579,6 @@ body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before
        background: none;
 }
 
-.main > .main-left > .nav > .slide > .slide-menu > li {
-       padding: .4rem 2rem;
-}
-
 .main > .main-left > .nav > .slide > .slide-menu > .active {
        background-color: #09c;
        background-color: var(--submenu-bg-hover-active);
@@ -583,6 +587,7 @@ body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before
 .main > .main-left > .nav > .slide > .slide-menu > li > a {
        white-space: nowrap;
        text-decoration: none;
+       padding: .4rem 2rem;
 }
 
 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
@@ -753,7 +758,6 @@ fieldset > fieldset,
        border-bottom: thin solid #eee;
 }
 
-.cbi-section > h3:first-child,
 .cbi-section > h4:first-child,
 .cbi-section > p:first-child,
 [data-tab-title] > h3:first-child,
@@ -1414,6 +1418,23 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
        outline: 0;
 }
 
+.cbi-dropdown.btn {
+       min-height: 1.8rem;
+       padding-top: 0px;
+       padding-bottom: 0px;
+       padding-right: 0px;
+}
+
+.cbi-dropdown.btn > .open {
+       font-size: 0.8rem;
+       padding: 0px;
+       margin: 0 5px;
+}
+
+.cbi-dropdown.btn > div {
+       margin: 0px;
+}
+
 .cbi-dropdown > .more,
 .cbi-dropdown > ul > li[placeholder] {
        font-weight: bold;
@@ -1483,6 +1504,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
        border: thin solid #918e8c;
        background: #f6f6f6;
        box-shadow: 0 0 4px #918e8c;
+       color: var(--main-menu-color);
 }
 
 .cbi-dropdown > ul > li[display],
@@ -1643,6 +1665,7 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
 
 .modal ul {
        margin-left: 2.2em;
+       word-break: break-word;
 }
 
 .modal li {
@@ -1655,27 +1678,20 @@ body:not(.Interfaces) .cbi-rowstyle-2:first-child {
        word-break: break-word;
 }
 
-.modal .label {
-       font-size: .6rem;
-       font-weight: normal;
-       padding: .1rem .3rem;
-       padding-bottom: 0;
-       cursor: default;
-       border-radius: 0;
+.modal label.btn {
+       display: flex;
+       align-items: center;
+       white-space: normal;
+       text-align: left;
+       text-transform: none;
+       padding-bottom: 0.2rem;
+       padding-top: 0.2rem;
 }
 
-.modal .label.warning {
+.modal label.warning {
        background-color: #f0ad4e !important;
 }
 
-.modal .btn {
-       padding: .3rem .6rem;
-}
-
-.modal .spinning {
-       margin-bottom: 2em;
-}
-
 .modal.cbi-modal {
        max-width: 90%;
        max-height: none;
@@ -2094,7 +2110,8 @@ span[data-tooltip] .label {
        flex-direction: column;
 }
 
-.label {
+.label,
+[data-indicator] {
        font-size: .8rem;
        font-weight: bold;
        padding: .3rem .8rem;
@@ -2109,11 +2126,7 @@ span[data-tooltip] .label {
 
 label > input[type="checkbox"],
 label > input[type="radio"] {
-       position: relative;
-       top: .4rem;
-       right: .2rem;
-       margin: 0;
-       vertical-align: bottom;
+       margin-right: 0.8rem;
 }
 
 label[data-index][data-depends] {
@@ -2127,11 +2140,13 @@ label[data-index][data-depends] {
 .darkMask {
        position: fixed;
        z-index: 99;
-       display: none;
        width: 100%;
        height: 100%;
        content: "";
        background-color: rgba(0, 0, 0, .56);
+       transition: opacity 400ms, visibility 400ms;
+       visibility: hidden;
+       opacity: 0;
 }
 
 /* diagnostics */
@@ -2483,7 +2498,8 @@ input[name="nslookup"] {
                padding: .3rem .6rem;
        }
 
-       .label {
+       .label,
+       [data-indicator] {
                padding: .2rem .6rem;
        }
 
@@ -2547,6 +2563,7 @@ input[name="nslookup"] {
                padding: .2rem .5rem;
        }
 
+       .cbi-section > h3:first-child,
        .panel-title {
                font-size: 1.1rem;
                padding-bottom: 1rem;
@@ -2624,7 +2641,7 @@ input[name="nslookup"] {
        .main-left {
                position: fixed;
                z-index: 100;
-               width: 0;
+               visibility: hidden;
        }
 
        .main-right {
@@ -2951,6 +2968,7 @@ input[name="nslookup"] {
                display: none;
        }
 
+       .cbi-section > h3:first-child,
        .panel-title {
                font-size: 1.4rem;
                padding-bottom: 1rem;