X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2Fmaterial%2Fcss%2Fnav.scss;h=147f163fd27674b126a25e34b61516a56b98c194;hb=2831e77cce6eae213c0cec8f5a90a6a00c383633;hp=1a25a5beb4f405bdcc9711536bd91d882bee8f06;hpb=54c2d164a362e64a320438b439bf9dd6d2c02424;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss index 1a25a5be..147f163f 100644 --- a/app/Resources/static/themes/material/css/nav.scss +++ b/app/Resources/static/themes/material/css/nav.scss @@ -2,10 +2,12 @@ /* ========================================================================== Nav ========================================================================== */ - nav { height: auto; + line-height: initial; +} +nav { input { color: #aaa; } @@ -15,15 +17,27 @@ nav { } } -.nav-wrapper { +.nav-panel-item .button-collapse { + margin-left: 0; + margin-right: 0.5rem; + padding: 0 0.5rem; + height: auto; + line-height: 1; + background-color: transparent; + border: none; +} + +.nav-panel-item { display: flex; + padding: 0.6rem 0.4rem 0.6rem 0.75rem; flex-wrap: wrap; justify-content: space-between; - min-height: 64px; + align-items: center; +} - .button-collapse { - padding: 0 15px; - } +.nav-panel-item .material-icons { + height: 46px; + line-height: 46px; } .nav-input { @@ -34,14 +48,10 @@ nav { display: flex; flex-grow: 1; justify-content: flex-end; - - li { - max-height: 64px; - } } -.nav-panel-add .add, -.nav-panel-search .search, +.nav-panel-item .add, +.nav-panel-item .search, .nav-panels .close { color: #444 !important; } @@ -50,17 +60,14 @@ nav { transition: background 0.2s ease; .action { - padding-left: 0.75rem; + margin: 0; font-size: 2.1rem; - white-space: nowrap; } .input-field input { display: block; line-height: inherit; - padding-left: 4rem !important; - width: calc(100% - 8rem); - height: 4.1rem; + height: 3rem; } .input-field input:focus { @@ -71,32 +78,51 @@ nav { } } +.nav-panel-top { + display: flex; + align-items: center; +} + .input-field { - &.nav-panel-add label, - &.nav-panel-search label { + &.nav-panel-item label { left: 1rem; } - &.nav-panel-add .close, - &.nav-panel-search .close { - position: absolute; - top: 0; - right: 1rem; + &.nav-panel-item .close { color: transparent; cursor: pointer; font-size: 2rem; transition: 0.3s color; } - &.nav-panel-add, - &.nav-panel-add form, - &.nav-panel-search, - &.nav-panel-search form { + &.nav-panel-item { display: flex; flex: 1; + flex-wrap: nowrap; + align-items: center; + } + + &.nav-panel-add.disabled, + &.nav-panel-add.disabled input { + background-color: whitesmoke; + } +} + +.nav-form-button { + padding: 0; + background-color: transparent; + border: none; + + &:focus { + background-color: inherit; } } +.nav-form-button, +.nav-panel-item .close { + margin: 0 1%; +} + #button_filters { display: none; } @@ -104,3 +130,9 @@ nav { #button_export { display: none; } + +@media (min-width: 993px) { + .button-collapse { + display: none; + } +}