]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/sass/_header.scss
Update Italian translation
[bookstack] / resources / assets / sass / _header.scss
index 14a9626ed1de08c9ea71eeff4927351442bb9ec0..a3c59495e8de355cea3fe3cf0f3d1e8ec18ad2e0 100644 (file)
@@ -8,135 +8,149 @@ header {
   top: 0;
   background-color: $primary-dark;
   color: #fff;
+  fill: #fff;
   .padded {
     padding: $-m;
   }
   border-bottom: 1px solid #DDD;
-  //margin-bottom: $-l;
   .links {
     display: inline-block;
     vertical-align: top;
     margin-right: $-xl;
+    @include smaller-than($screen-md) {
+      margin-right: $-m;
+    }
   }
   .links a {
     display: inline-block;
-    padding: $-l;
+    padding: $-m $-l;
     color: #FFF;
+    fill: #FFF;
     &:last-child {
       padding-right: 0;
     }
+    @include smaller-than($screen-md) {
+      padding: $-m $-s;
+    }
   }
   .avatar, .user-name {
     display: inline-block;
   }
   .avatar {
-    margin-top: (45px/2);
     width: 30px;
     height: 30px;
   }
   .user-name {
     vertical-align: top;
-    padding-top: 25.5px;
-    padding-left: $-m;
+    padding-top: $-m;
+    position: relative;
+    top: -3px;
     display: inline-block;
     cursor: pointer;
-    i {
+    > * {
+      vertical-align: top;
+    }
+    > span {
+      padding-left: $-xs;
+      display: inline-block;
+      padding-top: $-xxs;
+    }
+    > svg {
+      padding-top: 4px;
+      font-size: 18px;
+    }
+    @include smaller-than($screen-md) {
       padding-left: $-xs;
+      .name {
+        display: none;
+      }
+    }
+  }
+  @include smaller-than($screen-sm) {
+    text-align: center;
+    .float.right {
+      float: none;
+    }
+    .links a {
+      padding: $-s;
+    }
+    .user-name {
+      padding-top: $-s;
     }
   }
 }
 
-form.search-box {
-  margin-top: $-l *0.9;
+.header-search {
+  display: inline-block;
+}
+header .search-box {
   display: inline-block;
-  position: relative;
-  text-align: left;
+  margin-top: 10px;
   input {
-    background-color: transparent;
-    border-radius: 0;
-    border: none;
-    border-bottom: 2px solid #EEE;
+    background-color: rgba(0, 0, 0, 0.2);
+    border: 1px solid rgba(255, 255, 255, 0.3);
     color: #EEE;
-    padding-right: $-l;
-    outline: 0;
   }
   button {
-    vertical-align: top;
-    margin-left: -$-l;
-    color: #FFF;
-    top: 0;
-    right: 0;
-    display: inline-block;
-    position: absolute;
-    &:hover {
-      color: #FFF;
-    }
+    color: #EEE;
+    fill: #EEE;
+  }
+  ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
+    color: #DDD;
+  }
+  ::-moz-placeholder { /* Firefox 19+ */
+    color: #DDD;
+  }
+  :-ms-input-placeholder { /* IE 10+ */
+    color: #DDD;
+  }
+  :-moz-placeholder { /* Firefox 18- */
+    color: #DDD;
+  }
+  @include smaller-than($screen-lg) {
+    max-width: 250px;
+  }
+  @include smaller-than($l) {
+    max-width: 200px;
+  }
+}
+
+@include smaller-than($s) {
+  .header-search {
+    display: block;
   }
 }
 
 .logo {
   display: inline-block;
-  font-size: 1.8em;
-  color: #fff;
-  font-weight: 400;
-  padding: $-l $-l $-l 0;
-  vertical-align: top;
-  line-height: 1;
   &:hover {
     color: #FFF;
     text-decoration: none;
   }
 }
-
-.dropdown-container {
+.logo-text {
   display: inline-block;
+  font-size: 1.8em;
+  color: #fff;
+  font-weight: 400;
+  padding: 14px $-l 14px 0;
   vertical-align: top;
-  position: relative;
+  line-height: 1;
 }
-
-.dropdown-container ul {
-  display: none;
-  position: absolute;
-  z-index: 999;
-  top: 0;
-  left: 0;
-  margin: $-m 0;
-  background-color: #FFFFFF;
-  list-style: none;
-  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
-  border-radius: 1px;
-  border: 1px solid #EEE;
-  min-width: 180px;
-  padding: $-xs 0;
-  color: #555;
-  a {
-    display: block;
-    padding: $-xs $-m;
-    color: #555;
-    &:hover {
-      text-decoration: none;
-      background-color: #EEE;
-    }
-    i {
-      margin-right: $-m;
-      padding-right: 0;
-      display: inline;
-      width: 22px;
-    }
-  }
-  li.border-bottom {
-    border-bottom: 1px solid #DDD;
-  }
+.logo-image {
+  margin: $-xs $-s $-xs 0;
+  vertical-align: top;
+  height: 43px;
 }
 
 .breadcrumbs span.sep {
   color: #aaa;
   padding: 0 $-xs;
 }
-
 .faded {
-  a, button, span {
+  a, button, span, span > div {
     color: #666;
+    fill: #666;
   }
   .text-button {
     opacity: 0.5;
@@ -148,10 +162,20 @@ form.search-box {
   }
 }
 
+.faded span.faded-text {
+  display: inline-block;
+  padding: $-s;
+}
+
 .faded-small {
   color: #000;
+  fill: #000;
   font-size: 0.9em;
-  background-color: rgba(21, 101, 192, 0.15);
+  background-color: $primary-faded;
+}
+
+.toolbar-container {
+  background-color: #FFF;
 }
 
 .breadcrumbs .text-button, .action-buttons .text-button {
@@ -160,6 +184,15 @@ form.search-box {
   &:last-child {
     padding-right: 0;
   }
+  &:first-child {
+    padding-left: 0;
+  }
+}
+
+
+.action-buttons .dropdown-container:last-child a {
+  padding-right: 0;
+  padding-left: $-s;
 }
 .action-buttons {
   text-align: right;
@@ -170,16 +203,43 @@ form.search-box {
       padding-left: 0;
     }
   }
+  &.text-center {
+    text-align: center;
+  }
+}
+
+@include smaller-than($m) {
+  .breadcrumbs .text-button, .action-buttons .text-button {
+    padding: $-s $-xs;
+  }
+  .action-buttons .dropdown-container:last-child a {
+    padding-left: $-xs;
+  }
+  .breadcrumbs .text-button {
+    font-size: 0;
+  }
+  .breadcrumbs a i {
+    font-size: $fs-m;
+    padding-right: 0;
+  }
+  .breadcrumbs span.sep {
+    padding: 0 $-xxs;
+  }
 }
 
-.setting-nav {
+.nav-tabs {
   text-align: center;
-  a {
+  a, .tab-item {
     padding: $-m;
     display: inline-block;
     color: #666;
+    fill: #666;
+    cursor: pointer;
     &.selected {
       border-bottom: 2px solid $primary;
     }
   }
+}
+.faded-small .nav-tabs a {
+  padding: $-s $-m;
 }
\ No newline at end of file