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

Side by Side Diff: skin/new-options.css

Issue 29502647: Issue 5482 - Sidebar and about ABP dialog (Closed)
Patch Set: Created Aug. 9, 2017, 11:02 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
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 /* local("Ø") forces using no local font called Source Sans Pro */ 42 /* local("Ø") forces using no local font called Source Sans Pro */
43 src: local("Ø"), url(fonts/SourceSansPro-Semibold.woff) format("woff"); 43 src: local("Ø"), url(fonts/SourceSansPro-Semibold.woff) format("woff");
44 font-weight: 600; 44 font-weight: 600;
45 font-style: normal; 45 font-style: normal;
46 } 46 }
47 47
48 body 48 body
49 { 49 {
50 background-color: #F5F5F5; 50 background-color: #F5F5F5;
51 display: flex; 51 display: flex;
52 margin: 20px 10px; 52 margin: 1.2em 0.3em;
53 font-family: "Source Sans Pro", sans-serif; 53 font-family: "Source Sans Pro", sans-serif;
54 font-size: 14px; 54 font-size: 20px;
55 color: #494949; 55 color: #494949;
56 } 56 }
57 57
58 h1 58 h1
59 { 59 {
60 font-size: 24px; 60 font-size: 48px;
saroyanm 2017/08/10 12:04:48 I'll change font-sizes as soon they are updated in
juliandoucette 2017/08/16 23:42:31 Acknowledged. Thank you for pointing this out.
saroyanm 2017/08/18 12:44:28 Done, but still I'm not really convinced with the
juliandoucette 2017/08/21 13:06:39 Acknowledged. I agree. These sizes are huge. Perh
61 line-height: 1em;
62 font-weight: 300; 61 font-weight: 300;
63 } 62 }
64 63
65 h2 64 h2
66 { 65 {
67 font-size: 16px; 66 font-size: 22px;
68 font-weight: 600; 67 font-weight: 600;
69 } 68 }
70 69
71 p 70 p
72 { 71 {
73 font-weight: 300; 72 font-weight: 300;
74 } 73 }
75 74
76 hr
77 {
78 background-color: #CDCDCD;
79 border: 0px;
80 height: 1px;
81 margin: 0px;
82 }
83
84 [aria-hidden="true"] 75 [aria-hidden="true"]
85 { 76 {
86 display: none !important; 77 display: none !important;
87 } 78 }
88 79
89 input[type="search"]::-webkit-search-cancel-button
90 {
91 display: none;
92 }
93
94 input[type="text"], 80 input[type="text"],
95 input[type="search"],
96 textarea 81 textarea
97 { 82 {
98 -webkit-box-sizing: border-box; 83 -webkit-box-sizing: border-box;
99 -moz-box-sizing: border-box; 84 -moz-box-sizing: border-box;
100 box-sizing: border-box; 85 box-sizing: border-box;
101 } 86 }
102 87
88 /*
89 Buttons
90 */
91
92 button.primary,
juliandoucette 2017/08/16 23:42:32 NIT: I prefer adding .button to <button>s and styl
saroyanm 2017/08/18 10:23:13 No, I don't think that we should have class button
juliandoucette 2017/08/18 11:17:04 Acknowledged. A <link> can look like a <button> j
saroyanm 2017/08/18 12:44:28 I agree, I thought you proposing to have button.bu
juliandoucette 2017/08/21 13:06:39 Acknowledged. FWIW: I was originally proposing to
93 button.secondary,
94 .button.primary,
95 .button.secondary
96 {
97 padding: 0.8em 1.2em;
98 font-size: 18px;
99 font-weight: 600;
100 text-decoration: none;
101 text-transform: uppercase;
102 }
103
104 button.primary,
105 .button.primary
106 {
107 border: none;
108 color: #FFF;
109 background-color: #0A9DD1;
110 cursor: pointer;
111 }
112
113 button.primary:hover,
114 .button.primary:hover
115 {
116 box-shadow: inset 0 0 0 2px #005D80;
117 }
118
119 button.primary[disabled]
120 {
121 background-color: #5CBCE1;
122 }
123
124 button.secondary,
125 .button.secondary
126 {
127 border: 1px solid #0A9DD1;
128 color: #099CD0;
129 }
130
131 button.secondary:hover,
132 .button.secondary:hover
133 {
134 box-shadow: inset 0 0 0 1px #099CD0;
135 }
136
137 #about,
138 a
juliandoucette 2017/08/16 23:42:32 Did you mean to style all <a> here? (It doesn't l
saroyanm 2017/08/18 10:23:13 Yes, I did, though I think some of the styles are
saroyanm 2017/08/18 12:44:28 Done.
139 {
140 text-decoration: none;
141 color: #099CD0;
142 cursor: pointer;
143 font-size: 20px;
144 text-align: center;
145 }
146
103 button[role="checkbox"], 147 button[role="checkbox"],
104 #dialog-body .table button[role="checkbox"] 148 #dialog-body .table button[role="checkbox"]
105 { 149 {
106 width: 18px; 150 width: 18px;
107 height: 18px; 151 height: 18px;
108 margin-top: 0px; 152 margin-top: 0px;
109 -moz-margin-end: 20px; 153 -moz-margin-end: 20px;
110 -webkit-margin-end: 20px; 154 -webkit-margin-end: 20px;
111 padding: 0px; 155 padding: 0px;
112 border: none; 156 border: none;
113 background-color: transparent; 157 background-color: transparent;
114 background-position: -51px 0px; 158 background-position: -51px 0px;
115 } 159 }
116 160
117 button[role="checkbox"][aria-checked="true"], 161 button[role="checkbox"][aria-checked="true"],
118 #dialog-body .table button[role="checkbox"][aria-checked="true"] 162 #dialog-body .table button[role="checkbox"][aria-checked="true"]
119 { 163 {
120 background-position: -68px 0px; 164 background-position: -68px 0px;
121 } 165 }
122 166
123 #nav-sidebar 167 /*
168 Sidebar
169 */
170
171 #sidebar,
172 #sidebar .fixed,
173 [role="tablist"]
124 { 174 {
125 min-width: 198px; 175 width: 13.2em;
126 } 176 }
127 177
128 #nav-sidebar .fixed 178 #sidebar
129 { 179 {
130 top: 40px; 180 flex-shrink: 0;
131 bottom: 2px; 181 }
182
183 #sidebar .fixed
184 {
185 top: 1.2em;
186 bottom: 0;
132 height: auto; 187 height: auto;
133 position: fixed; 188 position: fixed;
134 } 189 }
135 190
136 #page-title 191 #sidebar header
137 { 192 {
138 padding: 0px 20px; 193 text-align: right;
194 margin-right: 2em;
139 } 195 }
140 196
141 #page-title p 197 html[dir="rtl"] #sidebar header
juliandoucette 2017/08/16 23:42:32 NIT: You could have just margin: 0 2em; above
saroyanm 2017/08/18 10:23:13 I did it to save space, mostly for the translation
juliandoucette 2017/08/18 11:17:04 Acknowledged.
142 { 198 {
143 margin: 0px; 199 margin-left: 2em;
144 font-size: 16px;
145 line-height: 1em;
146 } 200 }
147 201
148 #page-title h1 202 #sidebar header h1
149 { 203 {
150 margin: 0px; 204 font-size: 24px;
151 padding: 8px 0px 16px 0px; 205 margin: 0;
152 } 206 }
153 207
154 .tabs li 208 #sidebar header p
155 { 209 {
156 cursor: pointer; 210 font-size: 44px;
157 display: flex; 211 margin: 0;
juliandoucette 2017/08/16 23:42:32 NIT: I thought we'd agreed against unitless values
saroyanm 2017/08/18 10:23:13 Noted, will fix.
saroyanm 2017/08/18 12:44:28 Done.
158 } 212 }
159 213
160 .tabs li a 214 html[dir="rtl"] #sidebar header
161 { 215 {
162 flex: 1; 216 text-align: left;
163 color: inherit;
164 text-decoration: none;
165 } 217 }
166 218
167 .tabs.vertical 219 #sidebar-logo
juliandoucette 2017/08/16 23:42:32 NIT: It's kindof inconsistent that you are styling
saroyanm 2017/08/18 10:23:13 I agree, I'll change.
saroyanm 2017/08/18 12:44:28 On other hand, nav and footer are not unique eleme
juliandoucette 2017/08/21 13:06:39 Acknowledged. I agree. Good thinking.
220 {
221 width: 3em;
222 margin-bottom: 0.9em;
223 }
224
225 #sidebar nav,
226 #sidebar footer
227 {
228 margin: 1.4em 0;
229 }
230
231 [role="tablist"]
168 { 232 {
169 list-style: none; 233 list-style: none;
170 margin: 0px; 234 margin: 0px;
171 position: relative; 235 position: relative;
172 padding: 0px; 236 padding: 0px;
173 width: 198px;
174 } 237 }
175 238
176 .tabs.vertical li 239 [role="tablist"] li
177 { 240 {
178 height: 46px; 241 display: flex;
179 margin-top: -1px; 242 margin-top: -1px;
243 padding: 1em 0px;
180 -moz-margin-end: -1px; 244 -moz-margin-end: -1px;
181 -webkit-margin-end: -1px; 245 -webkit-margin-end: -1px;
182 -moz-margin-start: -1px; 246 -moz-margin-start: -1px;
183 -webkit-margin-start: -1px; 247 -webkit-margin-start: -1px;
184 border-color: #CDCDCD transparent; 248 border-color: #CDCDCD transparent;
185 border-style: solid; 249 border-style: solid;
186 border-width: 1px; 250 border-width: 1px;
187 font-size: 16px;
188 font-weight: 300; 251 font-weight: 300;
189 line-height: 1em; 252 cursor: pointer;
juliandoucette 2017/08/16 23:42:31 Is there a reason that you are using <spans> insid
saroyanm 2017/08/18 10:23:13 No this is styles updated on top of old implementa
saroyanm 2017/08/18 12:44:28 Done.
190 } 253 }
191 254
192 .tabs.vertical li a, 255 [role="tablist"] li a
193 .tabs.vertical li span,
194 .tabs.vertical li::after
195 { 256 {
196 margin: auto 20px; 257 flex: 1;
258 color: inherit;
259 text-decoration: none;
juliandoucette 2017/08/16 23:42:32 NIT/Note: You could default to none and add decora
saroyanm 2017/08/18 10:23:13 I don't think we need text-decoration specified fo
saroyanm 2017/08/18 12:44:29 Done.
197 } 260 }
198 261
199 .tabs li[role="tab"]:focus 262 [role="tablist"] li a,
263 [role="tablist"] li span,
264 [role="tablist"] li::after
265 {
266 margin: auto 0.8em;
juliandoucette 2017/08/16 23:42:32 NIT: I don't think auto does anything here. If I a
saroyanm 2017/08/18 10:23:13 It's not, well spotted.
saroyanm 2017/08/18 12:44:28 Done.
267 }
268
269 [role="tablist"] li[role="tab"]:focus
200 { 270 {
201 outline: none; 271 outline: none;
202 text-shadow: 0px 0px 1px #888; 272 text-shadow: 0px 0px 1px #888;
juliandoucette 2017/08/16 23:42:32 NIT/Note: This doesn't look so hot on [lowdpi, chr
saroyanm 2017/08/18 10:23:13 I agree, I think we should enhance this with Jeen,
juliandoucette 2017/08/18 11:17:04 Acknowledged.
203 } 273 }
204 274
205 .tabs li[role="tab"][aria-selected] 275 li[role="tab"][aria-selected]
206 { 276 {
207 border-radius: 3px 0px 0px 3px;
208 -moz-border-start-color: #CDCDCD; 277 -moz-border-start-color: #CDCDCD;
209 -webkit-border-start-color: #CDCDCD; 278 -webkit-border-start-color: #CDCDCD;
210 font-weight: 600; 279 font-weight: 600;
211 background-color: #FFF; 280 background-color: #FFF;
212 } 281 }
213 282
214 html[dir="rtl"] .tabs li[role="tab"][aria-selected] 283 footer
juliandoucette 2017/08/16 23:42:32 Did you mean to style all <footer>s here? (It doe
saroyanm 2017/08/18 10:23:13 Currently we only have 1 footer, so I did it gener
saroyanm 2017/08/18 12:44:29 Done.
215 {
216 border-radius: 0px 3px 3px 0px;
217 }
218
219 .tabs.vertical.bottom
220 { 284 {
221 bottom: 0px; 285 bottom: 0px;
222 position: absolute; 286 position: absolute;
223 }
224
225 .tabs.vertical.bottom li:first-child
226 {
227 border-top: 0px;
228 }
229
230 #tab-contribute
231 {
232 border-bottom: none;
233 }
234
235 #nav-sidebar ul li span
236 {
237 width: 100%; 287 width: 100%;
238 } 288 }
239 289
240 #nav-sidebar ul li::after 290 footer p
241 { 291 {
242 content: ""; 292 display: flex;
243 min-width: 14px; 293 justify-content: center;
244 height: 14px; 294 margin: 1.2em 0;
245 background-image: url(options-sprite.png);
246 } 295 }
247 296
248 #tab-general::after 297 #about
249 { 298 {
250 background-position: -16px -18px; 299 border:none;
251 } 300 background-color: transparent;
252 301 font-weight: 300;
253 #tab-advanced::after 302 font-family: inherit;
254 {
255 background-position: -46px -18px;
256 }
257
258 #tab-help::after
259 {
260 background-position: -1px -18px;
261 }
262
263 #tab-share::after
264 {
265 background-position: -61px -18px;
266 }
267
268 #tab-contribute::after
269 {
270 background-position: -31px -18px;
271 }
272
273 #tab-share:lang(zh),
274 #tab-share[hidden]
275 {
276 display: none;
277 }
278
279 #tab-share:lang(zh) + li,
280 #tab-share[hidden] + li
281 {
282 border-top: none;
283 } 303 }
284 304
285 #content 305 #content
286 { 306 {
287 background-color: #FFFFFF; 307 background-color: #FFFFFF;
288 border: 1px solid #CDCDCD; 308 border: 1px solid #CDCDCD;
289 border-radius: 8px; 309 border-radius: 8px;
290 width: 840px; 310 max-width: 46.3em;
juliandoucette 2017/08/16 23:42:32 I think that you (or the specifier) may have made
saroyanm 2017/08/18 10:23:12 Yes, you are right this should be "border-box"
saroyanm 2017/08/18 12:44:28 Done.
291 padding: 0px 60px 40px 60px; 311 padding: 0px 2em 1.4em 2em;
292 } 312 }
293 313
294 #content h1 314 #content h1
295 { 315 {
296 border-bottom: 1px solid #CDCDCD; 316 border-bottom: 1px solid #CDCDCD;
297 margin: 0px 0px 24px 0px; 317 margin: 0px 0px 24px 0px;
298 padding: 40px 0px 16px 0px; 318 padding: 40px 0px 16px 0px;
299 } 319 }
300 320
301 #link-version
302 {
303 display: flex;
304 margin: 12px 20px;
305 color: #3A7BA6;
306 text-decoration: none;
307 }
308
309 #abp-version
310 {
311 -moz-margin-start: 5px;
312 -webkit-margin-start: 5px;
313 }
314
315 #content-wrapper 321 #content-wrapper
316 { 322 {
317 position: relative; 323 position: relative;
318 } 324 }
319 325
320 #content-wrapper > div 326 #content-wrapper > div
321 { 327 {
322 display: none; 328 display: none;
323 } 329 }
324 330
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 } 1010 }
1005 1011
1006 #dialog h3, 1012 #dialog h3,
1007 #dialog label 1013 #dialog label
1008 { 1014 {
1009 font-size: 14px; 1015 font-size: 14px;
1010 font-weight: 600; 1016 font-weight: 600;
1011 margin: 0px; 1017 margin: 0px;
1012 } 1018 }
1013 1019
1014 #dialog input[type="text"], 1020 #dialog input[type="text"]
1015 #dialog input[type="search"]
1016 { 1021 {
1017 font-size: 16px; 1022 font-size: 16px;
1018 margin-top: 10px; 1023 margin-top: 10px;
1019 padding: 5px; 1024 padding: 5px;
1020 width: 100%; 1025 width: 100%;
1021 } 1026 }
1022 1027
1023 #dialog .table 1028 #dialog .table
1024 { 1029 {
1025 width: 100%; 1030 width: 100%;
(...skipping 11 matching lines...) Expand all
1037 flex: 1; 1042 flex: 1;
1038 font-size: 16px; 1043 font-size: 16px;
1039 color: #FFFFFF; 1044 color: #FFFFFF;
1040 } 1045 }
1041 1046
1042 #dialog-body .dialog-content-block 1047 #dialog-body .dialog-content-block
1043 { 1048 {
1044 padding: 12px 0px; 1049 padding: 12px 0px;
1045 } 1050 }
1046 1051
1047 #dialog-body button
1048 {
1049 background-color: #F5F5F5;
1050 border: none;
1051 color: #3A7BA6;
1052 cursor: pointer;
1053 display: block;
1054 font-family: inherit;
1055 margin-top: 8px;
1056 padding: 10px 16px;
1057 text-align: initial;
1058 width: 100%;
1059 }
1060
1061 #dialog .url 1052 #dialog .url
1062 { 1053 {
1063 margin-top: 10px; 1054 margin-top: 10px;
1064 margin-bottom: 20px; 1055 margin-bottom: 20px;
1065 word-wrap: break-word; 1056 word-wrap: break-word;
1066 } 1057 }
1067 1058
1059 body:not([data-dialog="about"]) #dialog-title-about,
1060 body:not([data-dialog="about"]) #dialog-content-about,
1068 body:not([data-dialog="custom"]) #dialog-title-custom, 1061 body:not([data-dialog="custom"]) #dialog-title-custom,
1069 body:not([data-dialog="custom"]) #dialog-content-custom, 1062 body:not([data-dialog="custom"]) #dialog-content-custom,
1070 body:not([data-dialog="language-add"]) #dialog-title-language-add, 1063 body:not([data-dialog="language-add"]) #dialog-title-language-add,
1071 body:not([data-dialog="language-add"]) #dialog-content-language-add, 1064 body:not([data-dialog="language-add"]) #dialog-content-language-add,
1072 body:not([data-dialog="language-change"]) #dialog-title-language-change, 1065 body:not([data-dialog="language-change"]) #dialog-title-language-change,
1073 body:not([data-dialog="language-change"]) #dialog-content-language-change, 1066 body:not([data-dialog="language-change"]) #dialog-content-language-change,
1074 body:not([data-dialog="predefined"]) #dialog-title-predefined, 1067 body:not([data-dialog="predefined"]) #dialog-title-predefined,
1075 body:not([data-dialog="predefined"]) #dialog-content-predefined, 1068 body:not([data-dialog="predefined"]) #dialog-content-predefined,
1076 body:not([data-dialog]) #dialog 1069 body:not([data-dialog]) #dialog
1077 { 1070 {
1078 display: none; 1071 display: none;
1079 } 1072 }
OLDNEW
« new-options.js ('K') | « skin/abp-logo.svg ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld