Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: static/scss/_navbar.scss

Issue 29587584: Issue 5635 - Implement website-default navbar component (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Remove separate open/close states Created Dec. 8, 2017, 10:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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 /* .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
juliandoucette 2017/12/08 15:24:06 @extend .link? (Maybe separately) (border, backg
ire 2017/12/11 15:11:57 Done.
45 {
46 display: none;
47 margin: 0;
48 padding-top: $navbar-padding-v + ($navbar-padding-v / 2);
49 padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2);
50 border: none;
51 background: none;
52 cursor: pointer;
53 }
54
55 .js .toggle-navbar-collapse
56 {
57 display: block;
58
59 @media (min-width: $tablet-breakpoint)
60 {
61 display: none;
62 }
63 }
64
65 /* .navbar .navbar-collapse
66 ****************************************************************************/
67
68 .navbar-collapse
69 {
70 clear: both;
juliandoucette 2017/12/08 15:24:07 NIT: @extend .clearfix?
ire 2017/12/11 15:11:57 I don't think more than `clear: both` is needed he
71 padding-top: 0;
72
73 @media (min-width: $tablet-breakpoint)
74 {
75 float: right;
76 clear: none;
77 }
78 }
79
80 [dir="rtl"] .navbar-collapse
81 {
82 float: left;
83 }
84
85 .js .navbar-collapse
86 {
87 display: none;
88
89 @media (min-width: $tablet-breakpoint)
90 {
91 display: block;
92 }
93 }
94
95 .expanded .navbar-collapse
96 {
97 display: block;
98 width: 100%;
99
100 @media (min-width: $tablet-breakpoint)
101 {
102 width: auto;
103 }
104 }
105
106 /* .navbar .navbar-nav
107 ****************************************************************************/
108
109 .navbar .navbar-nav
110 {
111 padding-bottom: $navbar-padding-v / 2;
112
113 @media (min-width: $tablet-breakpoint)
114 {
115 margin-right: -($navbar-padding-v / 2);
116 margin-left: -($navbar-padding-v / 2);
117 padding-bottom: 0;
118 }
119 }
120
121 .navbar .navbar-nav li
122 {
123 @media (min-width: $tablet-breakpoint)
124 {
125 display: inline-block;
126 }
127 }
128
129 .navbar .navbar-nav a
130 {
131 display: block;
132 padding-top: $navbar-padding-v / 2;
133 padding-bottom: $navbar-padding-v / 2;
134
135 @media (min-width: $tablet-breakpoint)
136 {
137 padding-top: $navbar-padding-v + ($navbar-padding-v / 2);
138 padding-right: $navbar-padding-v / 2;
139 padding-bottom: $navbar-padding-v + ($navbar-padding-v / 2);
140 padding-left: $navbar-padding-v / 2;
141 }
142 }
OLDNEW
« static/js/navbar.js ('K') | « static/js/navbar.js ('k') | static/scss/_variables.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld