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

Side by Side Diff: static/scss/layout/_sidebar.scss

Issue 29453600: Issue 4961 - Fix card group field alignment on acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Rebase Created July 5, 2017, 9:19 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/scss/layout/_navbar.scss ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file is part of acceptableads.org. 1 // This file is part of acceptableads.org.
2 // Copyright (C) 2016 Eyeo GmbH 2 // Copyright (C) 2016 Eyeo GmbH
3 // 3 //
4 // acceptableads.org is free software: you can redistribute it and/or modify 4 // acceptableads.org is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by 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 6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version. 7 // (at your option) any later version.
8 // 8 //
9 // acceptableads.org is distributed in the hope that it will be useful, 9 // acceptableads.org is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 19 matching lines...) Expand all
30 margin: 0; 30 margin: 0;
31 padding: 0; 31 padding: 0;
32 text-align: inherit; 32 text-align: inherit;
33 } 33 }
34 34
35 li::before 35 li::before
36 { 36 {
37 @extend .unstyle-list; 37 @extend .unstyle-list;
38 } 38 }
39 39
40 a,
41 a%active
42 {
43 display: block;
44 text-decoration: none;
45 color: inherit;
46 }
47
40 // #sidebar-brank blocks 48 // #sidebar-brank blocks
41 // #sidebar-logo is visible on desktop 49 // #sidebar-logo is visible on desktop
42 // #sidebar-open, #sidebar-close, and #sidebar-tittle are visible on mobile 50 // #sidebar-open, #sidebar-close, and #sidebar-tittle are visible on mobile
43 51
44 #sidebar-brand 52 #sidebar-brand
45 { 53 {
46 height: $lg; 54 height: $lg;
47 line-height: $lg; 55 line-height: $lg;
48 } 56 }
49 57
50 #sidebar-logo 58 #sidebar-logo
51 { 59 {
52 display: block; 60 display: block;
53 padding: 0 $md; 61 padding: 0 $md;
54 text-align: inherit; 62 text-align: inherit;
55 background-color: $accent; 63 background-color: $accent;
56 64
57 img 65 img
58 { 66 {
59 width: $md; 67 width: $md;
60 height: $md; 68 height: $md;
61 vertical-align: middle; 69 vertical-align: middle;
62 } 70 }
63 } 71 }
64 72
65 #sidebar-open, 73 #sidebar-open,
66 #sidebar-close, 74 #sidebar-close,
67 .site-title 75 #sidebar-title
68 { 76 {
69 display: none; 77 display: none;
70 } 78 }
71 79
72 #sidebar-close img 80 #sidebar-close img
73 { 81 {
74 width: 20px; 82 width: 20px;
75 height: 20px; 83 height: 20px;
76 } 84 }
77 85
78 #sidebar-open img 86 #sidebar-open img
79 { 87 {
80 width: 36px; 88 width: 36px;
81 height: 18px; 89 height: 18px;
82 } 90 }
83 } 91 }
84 92
85 #sidebar-menus
86 {
87 a,
88 a%active
89 {
90 display: block;
91 text-decoration: none;
92 color: inherit;
93 }
94 }
95
96 // Positioning the sidebar on desktop 93 // Positioning the sidebar on desktop
97 @media(min-width: $sidebar-breakpoint-x) 94 @media(min-width: $sidebar-breakpoint-x)
98 { 95 {
99 // since the primary navigation collapses only when javascript is enabled 96 // since the primary navigation collapses only when javascript is enabled
100 // we must position this absolute by default so that it can scroll 97 // we must position this absolute by default so that it can scroll
101 #sidebar 98 #sidebar
102 { 99 {
103 position: absolute; 100 position: absolute;
104 top: 0; 101 top: 0;
105 width: $sidebar-width; 102 width: $sidebar-width;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 156 }
160 157
161 html[dir="rtl"].js #sidebar 158 html[dir="rtl"].js #sidebar
162 { 159 {
163 text-align: right; 160 text-align: right;
164 } 161 }
165 162
166 #sidebar 163 #sidebar
167 { 164 {
168 // show sidebar navbar title and open button by default 165 // show sidebar navbar title and open button by default
169 .site-title, 166 #sidebar-title,
170 #sidebar-open 167 #sidebar-open
171 { 168 {
172 display: block; 169 display: block;
173 } 170 }
174 171
175 // Toggle open/close buttons 172 // Toggle open/close buttons
176 &.open 173 &.open
177 { 174 {
178 #sidebar-open 175 #sidebar-open
179 { 176 {
180 display: none; 177 display: none;
181 } 178 }
182 #sidebar-close 179 #sidebar-close
183 { 180 {
184 display: block; 181 display: block;
185 } 182 }
186 } 183 }
187 184
188 // Style sidebar navbar blocks 185 // Style sidebar navbar blocks
189 186
190 #sidebar-brand 187 #sidebar-brand
191 { 188 {
192 background-color: $inverted-fg; 189 background-color: $inverted-fg;
193 } 190 }
194 191
195 #sidebar-open, 192 #sidebar-open,
196 #sidebar-close, 193 #sidebar-close,
197 #sidebar-logo, 194 #sidebar-logo,
198 .site-title 195 #sidebar-title
199 { 196 {
200 padding: 0 $sm; 197 padding: 0 $sm;
201 } 198 }
202 199
203 #sidebar-open, 200 #sidebar-open,
204 #sidebar-close, 201 #sidebar-close,
205 .site-title 202 #sidebar-title
206 { 203 {
207 height: $lg; 204 height: $lg;
208 line-height: $lg; 205 line-height: $lg;
209 } 206 }
210 207
211 #sidebar-open, 208 #sidebar-open,
212 #sidebar-close 209 #sidebar-close
213 { 210 {
214 width: $lg; 211 width: $lg;
215 min-width: $lg; 212 min-width: $lg;
216 margin: 0; 213 margin: 0;
217 color: $inverted-fg; 214 color: $inverted-fg;
218 border: none; 215 border: none;
219 background-color: $inverted-bg; 216 background-color: $inverted-bg;
220 font-size: $md; 217 font-size: $md;
221 } 218 }
219
220 #sidebar-title img
221 {
222 display: inline-block;
223 height: $sm;
224 vertical-align: middle;
225 }
222 } 226 }
223 227
224 // align blocks left/right ltr/rtl in navbar 228 // align blocks left/right ltr/rtl in navbar
225 229
226 html[dir="ltr"] #sidebar-open, 230 html[dir="ltr"] #sidebar-open,
227 html[dir="ltr"] #sidebar-close, 231 html[dir="ltr"] #sidebar-close,
228 html[dir="ltr"] #sidebar-logo, 232 html[dir="ltr"] #sidebar-logo,
229 html[dir="ltr"] #sidebar .site-title 233 html[dir="ltr"] #sidebar-title
230 { 234 {
231 float: left; 235 float: left;
232 } 236 }
233 237
234 html[dir="rtl"] #sidebar-open, 238 html[dir="rtl"] #sidebar-open,
235 html[dir="rtl"] #sidebar-close, 239 html[dir="rtl"] #sidebar-close,
236 html[dir="rtl"] #sidebar-logo, 240 html[dir="rtl"] #sidebar-logo,
237 html[dir="rtl"] #sidebar .site-title 241 html[dir="rtl"] #sidebar-title
238 { 242 {
239 float: right; 243 float: right;
240 } 244 }
241 } 245 }
242 246
243 // Primary navigation ////////////////////////////////////////////////////////// 247 // Primary navigation //////////////////////////////////////////////////////////
244 248
245 #primary-navigation 249 #primary-navigation
246 { 250 {
247 li 251 li
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 453 }
450 .js #secondary-navigation 454 .js #secondary-navigation
451 { 455 {
452 display: none; 456 display: none;
453 } 457 }
454 .js #sidebar.open #secondary-navigation 458 .js #sidebar.open #secondary-navigation
455 { 459 {
456 display: block; 460 display: block;
457 } 461 }
458 } 462 }
OLDNEW
« no previous file with comments | « static/scss/layout/_navbar.scss ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld