OLD | NEW |
1 // This file is part of help.eyeo.com. | 1 // This file is part of help.eyeo.com. |
2 // Copyright (C) 2017 Eyeo GmbH | 2 // Copyright (C) 2017 Eyeo GmbH |
3 // | 3 // |
4 // help.eyeo.com is free software: you can redistribute it and/or modify | 4 // help.eyeo.com is free software: you can redistribute it and/or modify |
5 // it under the terms of the GNU General Public License as published by | 5 // it under the terms of the GNU General Public License as published by |
6 // the Free Software Foundation, either version 3 of the License, or | 6 // the Free Software Foundation, either version 3 of the License, or |
7 // (at your option) any later version. | 7 // (at your option) any later version. |
8 // | 8 // |
9 // help.eyeo.com is distributed in the hope that it will be useful, | 9 // help.eyeo.com is distributed in the hope that it will be useful, |
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 // GNU General Public License for more details. | 12 // GNU General Public License for more details. |
13 // | 13 // |
14 // You should have received a copy of the GNU General Public License | 14 // You should have received a copy of the GNU General Public License |
15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. | 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 /******************************************************************************* | 17 /******************************************************************************* |
18 * Site Header | 18 * Site Header |
19 ******************************************************************************/ | 19 ******************************************************************************/ |
20 | 20 |
21 #site-header | 21 #site-header |
22 { | 22 { |
23 min-height: $site-header-height; | 23 /* .toggle-navbar-collapse img |
24 font-size: $small-font; | 24 *****************************************************************************
*/ |
25 line-height: $site-header-content-line-height; | 25 |
26 } | 26 .toggle-navbar-collapse img { width: $small-space; } |
27 | 27 |
28 #site-title | 28 /* .navbar-collapse |
29 { | 29 *****************************************************************************
*/ |
30 float: left; | |
31 margin-right: $large-space; | |
32 } | |
33 | 30 |
34 html[dir="rtl"] #site-title | 31 .navbar-collapse |
35 { | 32 { |
36 float: right; | 33 padding-top: $navbar-padding; |
37 margin-right: 0; | 34 padding-bottom: $navbar-padding; |
38 margin-left: $large-space; | |
39 } | |
40 | 35 |
41 #site-title img | 36 @media (min-width: $tablet-breakpoint) |
42 { | 37 { |
43 height: $medium-space; | 38 float: none; |
44 vertical-align: middle; | 39 } |
45 } | 40 } |
46 | 41 |
47 .toggle-navbar-collapse | 42 /* #search-form |
48 { | 43 *****************************************************************************
*/ |
49 width: $site-header-content-line-height; | |
50 float: right; | |
51 line-height: $site-header-content-line-height; | |
52 text-align: right; | |
53 cursor: pointer; | |
54 | 44 |
55 img | 45 #search-form |
56 { | 46 { |
57 width: $small-space; | 47 @media (min-width: $tablet-breakpoint) |
58 vertical-align: middle; | 48 { |
| 49 margin: 0 $navbar-padding * 2; |
| 50 } |
59 } | 51 } |
60 } | 52 } |
61 | 53 |
62 html[dir="rtl"] .toggle-navbar-collapse | 54 /* #product-website-link |
| 55 ******************************************************************************/ |
| 56 |
| 57 #product-website-link a { line-height: $navbar-padding * 3; } |
| 58 |
| 59 #product-website-link img { margin-left: $x-small-space; } |
| 60 |
| 61 html[dir="rtl"] #product-website-link img { margin-right: $x-small-space; } |
| 62 |
| 63 .no-js #product-website-link |
63 { | 64 { |
64 float: left; | 65 @media (min-width: $phablet-breakpoint) |
65 } | 66 { |
| 67 margin-top: $navbar-padding; |
| 68 } |
66 | 69 |
67 .no-js .toggle-navbar-collapse | 70 @media (min-width: $tablet-breakpoint) |
68 { | 71 { |
69 display: none; | 72 margin-top: 0; |
| 73 } |
70 } | 74 } |
71 | 75 |
72 /* Minimal header for non-product pages | 76 /* Minimal header for non-product pages |
73 ******************************************************************************/ | 77 ******************************************************************************/ |
74 | 78 |
75 @media (min-width: $tablet-breakpoint) | 79 @media (min-width: $tablet-breakpoint) |
76 { | 80 { |
77 .site-header-minimal .navbar-collapse | 81 #site-header.site-header-minimal #search-form { margin: 0; } |
78 { | 82 |
79 text-align: right; | 83 .site-header-minimal .navbar-collapse { text-align: right; } |
80 } | |
81 | 84 |
82 [dir="rtl"] .site-header-minimal .navbar-collapse | 85 [dir="rtl"] .site-header-minimal .navbar-collapse { text-align: left; } |
83 { | |
84 text-align: left; | |
85 } | |
86 } | 86 } |
OLD | NEW |