]> BookStack Code Mirror - bookstack/blob - resources/assets/sass/_header.scss
Update/fix german translation
[bookstack] / resources / assets / sass / _header.scss
1 /**
2  * Includes the main navigation header and the faded toolbar.
3  */
4
5 header {
6   display: block;
7   z-index: 2;
8   top: 0;
9   background-color: $primary-dark;
10   color: #fff;
11   .padded {
12     padding: $-m;
13   }
14   border-bottom: 1px solid #DDD;
15   //margin-bottom: $-l;
16   .links {
17     display: inline-block;
18     vertical-align: top;
19     margin-right: $-xl;
20     @include smaller-than($screen-md) {
21       margin-right: $-m;
22     }
23   }
24   .links a {
25     display: inline-block;
26     padding: $-l;
27     color: #FFF;
28     &:last-child {
29       padding-right: 0;
30     }
31     @include smaller-than($screen-md) {
32       padding: $-l $-s;
33     }
34   }
35   .avatar, .user-name {
36     display: inline-block;
37   }
38   .avatar {
39     //margin-top: (45px/2);
40     width: 30px;
41     height: 30px;
42   }
43   .user-name {
44     vertical-align: top;
45     padding-top: $-l;
46     display: inline-block;
47     cursor: pointer;
48     > * {
49       vertical-align: top;
50     }
51     > span, > i {
52       padding-left: $-xs;
53       display: inline-block;
54     }
55     > span {
56       padding-top: $-xxs;
57     }
58     > i {
59       padding-top: 4px;
60       font-size: 18px;
61     }
62     @include smaller-than($screen-md) {
63       padding-left: $-xs;
64       .name {
65         display: none;
66       }
67     }
68   }
69   @include smaller-than($screen-md) {
70     text-align: center;
71     .float.right {
72       float: none;
73     }
74   }
75   @include smaller-than($screen-sm) {
76     .links a {
77       padding: $-s;
78     }
79     form.search-box {
80       margin-top: 0;
81     }
82     .user-name {
83       padding-top: $-s;
84     }
85   }
86   .dropdown-container {
87     font-size: 0.9em;
88   }
89 }
90
91 form.search-box {
92   margin-top: $-l *0.9;
93   display: inline-block;
94   position: relative;
95   text-align: left;
96   input {
97     background-color: transparent;
98     border-radius: 24px;
99     border: 2px solid #EEE;
100     color: #EEE;
101     padding-left: $-m;
102     padding-right: $-l;
103     outline: 0;
104   }
105   button {
106     vertical-align: top;
107     margin-left: -$-l;
108     color: #FFF;
109     top: 6px;
110     right: 4px;
111     display: inline-block;
112     position: absolute;
113     &:hover {
114       color: #FFF;
115     }
116   }
117 }
118
119 .logo {
120   display: inline-block;
121   &:hover {
122     color: #FFF;
123     text-decoration: none;
124   }
125 }
126 .logo-text {
127   display: inline-block;
128   font-size: 1.8em;
129   color: #fff;
130   font-weight: 400;
131   padding: $-l $-l $-l 0;
132   vertical-align: top;
133   line-height: 1;
134 }
135 .logo-image {
136   margin: $-m $-s $-m 0;
137   vertical-align: top;
138   height: 43px;
139 }
140
141 .breadcrumbs span.sep {
142   color: #aaa;
143   padding: 0 $-xs;
144 }
145 .faded {
146   a, button, span, span > div {
147     color: #666;
148   }
149   .text-button {
150     opacity: 0.5;
151     transition: all ease-in-out 120ms;
152     &:hover {
153       opacity: 1;
154       text-decoration: none;
155     }
156   }
157 }
158
159 .faded span.faded-text {
160   display: inline-block;
161   padding: $-s;
162 }
163
164 .faded-small {
165   color: #000;
166   font-size: 0.9em;
167   background-color: $primary-faded;
168 }
169
170 .breadcrumbs .text-button, .action-buttons .text-button {
171   display: inline-block;
172   padding: $-s;
173   &:last-child {
174     padding-right: 0;
175   }
176   &:first-child {
177     padding-left: 0;
178   }
179 }
180
181
182 .action-buttons .dropdown-container:last-child a {
183   padding-right: 0;
184   padding-left: $-s;
185 }
186 .action-buttons {
187   text-align: right;
188   &.text-left {
189     text-align: left;
190     .text-button {
191       padding-right: $-m;
192       padding-left: 0;
193     }
194   }
195   &.text-center {
196     text-align: center;
197   }
198 }
199
200 @include smaller-than($m) {
201   .breadcrumbs .text-button, .action-buttons .text-button {
202     padding: $-s $-xs;
203   }
204   .action-buttons .dropdown-container:last-child a {
205     padding-left: $-xs;
206   }
207   .breadcrumbs .text-button {
208     font-size: 0;
209   }
210   .breadcrumbs a i {
211     font-size: $fs-m;
212     padding-right: 0;
213   }
214   .breadcrumbs span.sep {
215     padding: 0 $-xxs;
216   }
217 }
218
219 .nav-tabs {
220   text-align: center;
221   a, .tab-item {
222     padding: $-m;
223     display: inline-block;
224     color: #666;
225     cursor: pointer;
226     &.selected {
227       border-bottom: 2px solid $primary;
228     }
229   }
230 }