Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 // This file is part of help.eyeo.com. | |
2 // Copyright (C) 2017 Eyeo GmbH | |
3 // | |
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 | |
6 // the Free Software Foundation, either version 3 of the License, or | |
7 // (at your option) any later version. | |
8 // | |
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 | |
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 // GNU General Public License for more details. | |
13 // | |
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/>. | |
16 | |
17 /******************************************************************************* | |
18 * Navbar component | |
juliandoucette
2017/12/01 16:30:43
I think that all paddings in this file should be s
ire
2017/12/08 10:42:22
(When you're free let's discuss how this would wor
| |
19 ******************************************************************************/ | |
20 | |
21 .navbar | |
22 { | |
23 @extend .clearfix; | |
24 } | |
25 | |
26 /* .navbar .navbar-branding | |
27 ****************************************************************************/ | |
28 | |
29 .navbar-branding | |
30 { | |
31 padding-top: $navbar-padding-v; | |
32 padding-bottom: $navbar-padding-v; | |
33 } | |
34 | |
35 .navbar-branding img | |
36 { | |
37 height: $navbar-branding-height; | |
38 vertical-align: text-top; | |
39 } | |
40 | |
41 /* .navbar .toggle-navbar-collapse | |
42 ****************************************************************************/ | |
43 | |
44 .toggle-navbar-collapse | |
45 { | |
46 @extend .unstyled; | |
47 display: none; | |
48 padding-top: $navbar-padding-v + ($navbar-padding-v / 2); | |
49 padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2); | |
50 cursor: pointer; | |
51 } | |
52 | |
53 .js .toggle-navbar-collapse | |
54 { | |
55 display: block; | |
56 | |
57 @media (min-width: $tablet-breakpoint) | |
58 { | |
59 display: none; | |
60 } | |
61 } | |
62 | |
63 .js .toggle-navbar-collapse .close-label | |
64 { | |
65 display: none; | |
66 } | |
67 | |
68 .expanded .toggle-navbar-collapse .open-label | |
69 { | |
70 display: none; | |
71 } | |
72 | |
73 .expanded .toggle-navbar-collapse .close-label | |
74 { | |
75 display: inline; | |
76 } | |
77 | |
78 /* .navbar .navbar-collapse | |
79 ****************************************************************************/ | |
80 | |
81 .navbar-collapse | |
82 { | |
83 clear: both; | |
84 padding-top: 0; | |
85 | |
86 @media (min-width: $tablet-breakpoint) | |
87 { | |
88 float: right; | |
89 clear: none; | |
90 } | |
91 } | |
92 | |
93 [dir="rtl"] .navbar-collapse | |
94 { | |
95 float: left; | |
96 } | |
97 | |
98 .js .navbar-collapse | |
99 { | |
100 display: none; | |
101 | |
102 @media (min-width: $tablet-breakpoint) | |
103 { | |
104 display: block; | |
105 } | |
106 } | |
107 | |
108 .expanded .navbar-collapse | |
109 { | |
110 display: block; | |
111 width: 100%; | |
112 | |
113 @media (min-width: $tablet-breakpoint) | |
114 { | |
115 width: auto; | |
116 } | |
117 } | |
118 | |
119 /* .navbar .navbar-nav | |
120 ****************************************************************************/ | |
121 | |
122 .navbar .navbar-nav | |
123 { | |
124 padding-bottom: $navbar-padding-v / 2; | |
125 | |
126 @media (min-width: $tablet-breakpoint) | |
127 { | |
128 margin-right: -($navbar-padding-v / 2); | |
129 margin-left: -($navbar-padding-v / 2); | |
130 padding-bottom: 0; | |
131 } | |
132 } | |
133 | |
134 .navbar .navbar-nav li | |
135 { | |
136 @media (min-width: $tablet-breakpoint) | |
137 { | |
138 display: inline-block; | |
139 } | |
140 } | |
141 | |
142 .navbar .navbar-nav a | |
143 { | |
144 display: block; | |
145 padding-top: $navbar-padding-v / 2; | |
146 padding-bottom: $navbar-padding-v / 2; | |
147 | |
148 @media (min-width: $tablet-breakpoint) | |
149 { | |
150 padding-top: $navbar-padding-v + ($navbar-padding-v / 2); | |
151 padding-right: $navbar-padding-v / 2; | |
152 padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2); | |
153 padding-left: $navbar-padding-v / 2; | |
154 } | |
155 } | |
OLD | NEW |