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 | |
19 ******************************************************************************/ | |
20 | |
21 .navbar | |
22 { | |
23 @extend .clearfix; | |
24 } | |
25 | |
26 .toggle-navbar-collapse, | |
27 .navbar-collapse | |
28 { | |
29 padding-top: $navbar-padding-v + ($navbar-padding-v / 2); | |
30 padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2); | |
31 } | |
32 | |
33 /* .navbar .navbar-branding | |
34 ****************************************************************************/ | |
35 | |
36 .navbar-branding | |
37 { | |
38 padding-top: $navbar-padding-v; | |
39 padding-bottom: $navbar-padding-v; | |
40 } | |
41 | |
42 .navbar-branding img | |
43 { | |
44 height: $navbar-branding-height; | |
45 vertical-align: text-top; | |
46 } | |
47 | |
48 /* .navbar .toggle-navbar-collapse | |
49 ****************************************************************************/ | |
50 | |
51 .toggle-navbar-collapse | |
52 { | |
53 @extend .unstyled; | |
54 display: none; | |
55 cursor: pointer; | |
56 } | |
57 | |
58 .js .toggle-navbar-collapse | |
59 { | |
60 display: block; | |
61 | |
62 @media (min-width: $tablet-breakpoint) | |
63 { | |
64 display: none; | |
65 } | |
66 } | |
67 | |
68 .js .toggle-navbar-collapse .close-label | |
69 { | |
70 display: none; | |
71 } | |
72 | |
73 .expanded .toggle-navbar-collapse .open-label | |
74 { | |
75 display: none; | |
76 } | |
77 | |
78 .expanded .toggle-navbar-collapse .close-label | |
79 { | |
80 display: inline; | |
81 } | |
82 | |
83 /* .navbar .navbar-collapse | |
84 ****************************************************************************/ | |
85 | |
86 .navbar-collapse | |
87 { | |
88 clear: both; | |
89 padding-top: 0; | |
90 | |
91 @media (min-width: $tablet-breakpoint) | |
92 { | |
93 float: right; | |
94 clear: none; | |
95 padding-top: $navbar-padding-v + ($navbar-padding-v / 2); | |
96 } | |
97 } | |
98 | |
99 [dir="rtl"] .navbar-collapse | |
100 { | |
101 float: left; | |
102 } | |
103 | |
104 .js .navbar-collapse | |
105 { | |
106 display: none; | |
107 | |
108 @media (min-width: $tablet-breakpoint) | |
109 { | |
110 display: block; | |
111 } | |
112 } | |
113 | |
114 .expanded .navbar-collapse | |
115 { | |
116 display: block; | |
117 width: 100%; | |
118 } | |
119 | |
120 /* .navbar .nav | |
121 ****************************************************************************/ | |
122 | |
123 .navbar .navbar-nav li | |
124 { | |
125 margin-bottom: $navbar-padding-v; | |
juliandoucette
2017/11/15 12:56:42
It's inconvenient that you chose to use margin-bot
ire
2017/11/30 14:01:18
Done.
| |
126 | |
127 @media (min-width: $tablet-breakpoint) | |
128 { | |
129 display: inline-block; | |
130 margin: 0 0 0 $navbar-padding-v; | |
131 } | |
132 } | |
133 | |
134 [dir="rtl"] .navbar .navbar-nav li | |
135 { | |
136 @media (min-width: $tablet-breakpoint) | |
137 { | |
138 display: inline-block; | |
139 margin: 0 $navbar-padding-v 0 0; | |
140 } | |
141 } | |
142 | |
143 .navbar .navbar-nav li:last-child | |
juliandoucette
2017/11/15 12:56:42
Why use the paren't padding instead of the child's
ire
2017/11/30 14:01:19
Done.
| |
144 { | |
145 margin-bottom: 0; | |
146 } | |
147 | |
148 .navbar .navbar-nav a | |
149 { | |
150 display: block; | |
151 } | |
OLD | NEW |