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: Demo - Use table layout Created Nov. 2, 2017, 11:08 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 .container
22 {
23 display: table;
24 width: 100%;
ire 2017/11/02 11:15:28 For some reason this didn't work when it was the o
juliandoucette 2017/11/02 13:31:23 Acknowledged.
25 max-width: $large-desktop-width;
26 }
27
28 .navbar button
29 {
30 color: inherit;
31 }
32
33 .navbar-branding,
34 .toggle-navbar-collapse,
35 .navbar-collapse
36 {
37 display: table-cell;
38 padding-top: $small-space;
39 padding-bottom: $small-space;
40 vertical-align: middle;
41 }
42
43 /* .navbar .toggle-navbar-collapse
44 ****************************************************************************/
45
46 .toggle-navbar-collapse
47 {
48 display: none;
49 }
50
51 .js .toggle-navbar-collapse
52 {
53 display: table-cell;
54
55 @media (min-width: $tablet-breakpoint)
56 {
57 display: none;
58 }
59 }
60
61 .toggle-navbar-collapse button
62 {
63 min-width: 100px;
64 border: 0;
65 background-color: transparent;
66 cursor: pointer;
67 }
68
69 .js .toggle-navbar-collapse .close-label
70 {
71 display: none;
72 }
73
74 .expanded .toggle-navbar-collapse .open-label
75 {
76 display: none;
77 }
78
79 .expanded .toggle-navbar-collapse .close-label
80 {
81 display: inline;
82 }
83
84 /* .navbar .navbar-collapse
85 ****************************************************************************/
86
87 .navbar-collapse
88 {
89 display: table-row;
90 text-align: left;
91
92 @media (min-width: $tablet-breakpoint)
93 {
94 display: table-cell;
95 text-align: right;
96 }
97 }
98
99 [dir="rtl"] .navbar-collapse
100 {
101 text-align: right;
102
103 @media (min-width: $tablet-breakpoint)
104 {
105 text-align: left;
106 }
107 }
108
109 .js .navbar-collapse
110 {
111 display: none;
112
113 @media (min-width: $tablet-breakpoint)
114 {
115 display: table-cell;
116 }
117 }
118
119 .expanded .navbar-collapse
120 {
121 display: table-row;
122 }
123
124 .no-js .navbar-collapse:after,
125 .expanded .navbar-collapse:after
ire 2017/11/02 11:15:28 This is the only way I could think of to add botto
juliandoucette 2017/11/02 13:31:23 You could add padding to the nav within instead.
126 {
127 @media (max-width: $tablet-breakpoint + 1px)
128 {
129 display: block;
130 height: $small-space;
131 content: "";
132 }
133 }
134
OLDNEW

Powered by Google App Engine
This is Rietveld