]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/material/css/nav.scss
Label replaced by a button on the nav new entry form
[github/wallabag/wallabag.git] / app / Resources / static / themes / material / css / nav.scss
index 1a25a5beb4f405bdcc9711536bd91d882bee8f06..7191a71a4db115f0763806987abdb8b23e17e5e3 100644 (file)
@@ -2,10 +2,13 @@
 /* ==========================================================================
    Nav
    ========================================================================== */
-
-nav {
+nav,
+.nav-wrapper {
   height: auto;
+  line-height: initial;
+}
 
+nav {
   input {
     color: #aaa;
   }
@@ -17,15 +20,27 @@ nav {
 
 .nav-wrapper {
   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;
+    margin-left: 0;
+    margin-right: 0.5rem;
+    padding: 0 0.5rem;
+    height: auto;
+    line-height: 1;
+    background-color: transparent;
+    border: none;
   }
 }
 
+nav .nav-wrapper i {
+  height: 46px;
+  line-height: 46px;
+}
+
 .nav-input {
   display: none;
 }
@@ -34,10 +49,6 @@ nav {
   display: flex;
   flex-grow: 1;
   justify-content: flex-end;
-
-  li {
-    max-height: 64px;
-  }
 }
 
 .nav-panel-add .add,
@@ -50,15 +61,13 @@ 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;
   }
@@ -71,6 +80,11 @@ nav {
   }
 }
 
+.nav-panel-top {
+  display: flex;
+  align-items: center;
+}
+
 .input-field {
   &.nav-panel-add label,
   &.nav-panel-search label {
@@ -95,6 +109,11 @@ nav {
     display: flex;
     flex: 1;
   }
+
+  &.nav-panel-add form.disabled,
+  &.nav-panel-add form.disabled input {
+    background-color: whitesmoke;
+  }
 }
 
 #button_filters {
@@ -104,3 +123,9 @@ nav {
 #button_export {
   display: none;
 }
+
+@media (min-width: 993px) {
+  .button-collapse {
+    display: none;
+  }
+}