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: Use float method Created Nov. 8, 2017, 5:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « static/js/navbar.js ('k') | static/scss/_utilities.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 .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 }
46
47 /* .navbar .toggle-navbar-collapse
48 ****************************************************************************/
49
50 .toggle-navbar-collapse
51 {
52 display: none;
53 border: 0;
54 background-color: transparent;
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 }
OLDNEW
« no previous file with comments | « static/js/navbar.js ('k') | static/scss/_utilities.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld