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

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

Issue 29626565: Issue 6115 - Refactored icon classes (Closed)
Patch Set: Created Dec. 1, 2017, 6:40 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 | « desktop-options.js ('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 /* 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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 display: block; 137 display: block;
138 padding: 0.6rem 0.8rem; 138 padding: 0.6rem 0.8rem;
139 background-color: transparent; 139 background-color: transparent;
140 font-size: 1rem; 140 font-size: 1rem;
141 font-weight: 700; 141 font-weight: 700;
142 text-decoration: none; 142 text-decoration: none;
143 text-transform: uppercase; 143 text-transform: uppercase;
144 cursor: pointer; 144 cursor: pointer;
145 } 145 }
146 146
147 button.primary, 147 button.primary:not(.icon),
148 .button.primary 148 .button.primary:not(.icon)
149 { 149 {
150 border: 0px; 150 border: 0px;
151 color: #FFF; 151 color: #FFF;
152 background-color: #077CA6; 152 background-color: #077CA6;
153 } 153 }
154 154
155 button.primary:not([disabled]):hover, 155 button.primary:not([disabled]):not(.icon):hover,
ire 2017/12/04 13:26:12 NIT: These selectors are starting to get really lo
saroyanm 2017/12/05 13:47:57 I think the reason I did this is separation: With
ire 2017/12/07 11:28:18 I think you may have misunderstood what I was sayi
saroyanm 2017/12/11 12:23:49 I would like to avoid overriding styles if possibl
ire 2017/12/12 09:45:33 Yes this reads better now. Since this is such a
saroyanm 2017/12/12 10:56:09 I agree comments and modularization should make th
156 .button.primary:hover 156 .button.primary:not(.icon):hover
157 { 157 {
158 box-shadow: inset 0 0 0 3px #005D80; 158 box-shadow: inset 0 0 0 3px #005D80;
159 } 159 }
160 160
161 button.primary[disabled] 161 button.primary[disabled]:not(.icon)
162 { 162 {
163 background-color: #5CBCE1; 163 background-color: #5CBCE1;
164 } 164 }
165 165
166 button.secondary, 166 button.secondary:not(.icon),
167 .button.secondary 167 .button.secondary:not(.icon)
168 { 168 {
169 border: 2px solid #077CA6; 169 border: 2px solid #077CA6;
170 color: #077CA6; 170 color: #077CA6;
171 } 171 }
172 172
173 button.secondary:hover, 173 button.secondary:not(.icon):hover,
174 .button.secondary:hover 174 .button.secondary:not(.icon):hover
175 { 175 {
176 box-shadow: inset 0 0 0 1px #077CA6; 176 box-shadow: inset 0 0 0 1px #077CA6;
177 } 177 }
178 178
179 button[role="checkbox"] 179 button[role="checkbox"].icon::before
ire 2017/12/04 13:26:12 NIT: It looks like there are never any `button[rol
saroyanm 2017/12/05 13:47:57 Good point.
180 { 180 {
181 width: 1.2rem; 181 width: 1.2rem;
182 height: 1.2rem; 182 height: 1.2rem;
183 padding: 0px; 183 padding: 0px;
184 border: 0px;
185 background-color: transparent;
186 } 184 }
187 185
188 button[role="checkbox"]:not(.toggle) 186 button[role="checkbox"].icon:not(.toggle)::before
189 { 187 {
190 /* Using ?query as a workaround to chromium bug #643716 */ 188 /* Using ?query as a workaround to chromium bug #643716 */
191 background-image: url(icons/checkbox.svg?off#off); 189 background-image: url(icons/checkbox.svg?off#off);
192 display: inline-block;
193 } 190 }
194 191
195 button[role="checkbox"][aria-checked="true"]:not(.toggle) 192 button[role="checkbox"][aria-checked="true"].icon:not(.toggle)::before
196 { 193 {
197 background-image: url(icons/checkbox.svg?on#on); 194 background-image: url(icons/checkbox.svg?on#on);
198 } 195 }
199 196
200 button[role="checkbox"][disabled], 197 button[role="checkbox"][disabled]:not(.toggle)::before,
201 button[role="checkbox"][aria-disabled="true"] 198 button[role="checkbox"][aria-disabled="true"]:not(.toggle)::before
202 { 199 {
200 border: 0rem;
201 margin: 0.2rem;
203 border-radius: 2px; 202 border-radius: 2px;
204 background-color: #ccc; 203 background-color: #ccc;
205 } 204 }
206 205
207 button[role="checkbox"].toggle 206 button[role="checkbox"].icon.toggle::before
208 { 207 {
209 background-image: url(icons/toggle.svg?on#on); 208 background-image: url(icons/toggle.svg?on#on);
210 } 209 }
211 210
212 button[role="checkbox"][aria-checked="false"].toggle 211 button[role="checkbox"][aria-checked="false"].icon.toggle::before
213 { 212 {
214 background-image: url(icons/toggle.svg?off#off); 213 background-image: url(icons/toggle.svg?off#off);
215 } 214 }
216 215
217 button[role="checkbox"][aria-checked="true"].toggle 216 button[role="checkbox"].toggle::before
218 { 217 {
219 background-image: url(icons/toggle.svg?on#on); 218 width: 1.9rem;
219 height: 1rem;
220 } 220 }
221 221
222 button[role="checkbox"].toggle 222 button[role="checkbox"][disabled].toggle::before
223 {
224 background-position: initial;
225 width: 1.9rem;
226 height: 1rem;
227 vertical-align: middle;
228 }
229
230 button[role="checkbox"][disabled].toggle
231 { 223 {
232 background: none; 224 background: none;
233 } 225 }
234 226
235 button.delete::before 227 .icon.delete::before
236 { 228 {
237 background-image: url(icons/trash.svg?default#default); 229 background-image: url(icons/trash.svg?default#default);
238 } 230 }
239 231
240 button.delete:hover::before 232 .icon.delete:hover::before
241 { 233 {
242 background-image: url(icons/trash.svg?hover#hover); 234 background-image: url(icons/trash.svg?hover#hover);
243 } 235 }
244 236
245 button.gear::before 237 .icon.gear::before
246 { 238 {
247 background-image: url(icons/gear.svg?default#default); 239 background-image: url(icons/gear.svg?default#default);
248 } 240 }
249 241
250 button.gear:hover::before 242 .icon.gear:hover::before
251 { 243 {
252 background-image: url(icons/gear.svg?hover#hover); 244 background-image: url(icons/gear.svg?hover#hover);
253 } 245 }
254 246
255 button.gear, 247 .icon.gear::before,
256 button.delete 248 .icon.delete::before
257 { 249 {
258 border: 0px;
259 padding: 0px;
260 background-color: transparent;
261 }
262
263 button.gear::before,
264 button.delete::before
265 {
266 content: "";
267 display: block;
268 height: 1rem; 250 height: 1rem;
269 width: 1rem; 251 width: 1rem;
270 border: 0.2rem solid transparent;
271 background-repeat: no-repeat;
272 background-position: center;
273 } 252 }
274 253
275 button.link, 254 button.link,
276 button.list 255 button.list
277 { 256 {
278 color: #077CA6; 257 color: #077CA6;
279 } 258 }
280 259
281 button.link 260 button.link
282 { 261 {
283 border: 0px; 262 border: 0px;
284 background-color: transparent; 263 background-color: transparent;
285 font-weight: 400; 264 font-weight: 400;
286 font-family: inherit; 265 font-family: inherit;
287 text-transform: none; 266 text-transform: none;
288 text-decoration: underline; 267 text-decoration: underline;
289 padding: 0.2rem; 268 padding: 0.2rem;
290 } 269 }
291 270
292 button.link:hover 271 button.link:hover
293 { 272 {
294 color: #5CBCE1; 273 color: #5CBCE1;
295 } 274 }
296 275
297 button.list 276 button.list
298 { 277 {
299 border-style: solid;; 278 border-style: solid;;
ire 2017/12/04 13:26:12 Noticed an extra ";" at the end of this line
saroyanm 2017/12/05 13:47:57 well spotted.
300 border-color: #CDCDCD; 279 border-color: #CDCDCD;
301 border-width: 1px; 280 border-width: 1px;
302 width: 100%; 281 width: 100%;
303 background-color: #E1F2FA; 282 background-color: #E1F2FA;
304 text-align: initial; 283 text-align: initial;
305 } 284 }
306 285
307 button.list:hover 286 button.list:hover
308 { 287 {
309 box-shadow: inset 0 0 0 3px #077CA6; 288 box-shadow: inset 0 0 0 3px #077CA6;
(...skipping 15 matching lines...) Expand all
325 } 304 }
326 305
327 .side-controls.wrap button 306 .side-controls.wrap button
328 { 307 {
329 margin: 0.6rem 0rem; 308 margin: 0.6rem 0rem;
330 -moz-margin-start: auto; 309 -moz-margin-start: auto;
331 -webkit-margin-start: auto; 310 -webkit-margin-start: auto;
332 } 311 }
333 312
334 /* 313 /*
314 icons
315 */
316
317 .icon
318 {
319 border: 0px;
320 padding: 0px;
321 background-color: transparent;
322 }
323
324 .icon::before
325 {
326 content: "";
327 display: block;
328 border: 0.2rem solid transparent;
329 background-repeat: no-repeat;
330 }
saroyanm 2017/12/01 18:44:46 Maybe we can move all background images and width-
ire 2017/12/04 13:26:12 I agree
331
332 /*
335 Forms 333 Forms
336 */ 334 */
337 335
338 .floating-input 336 .floating-input
339 { 337 {
340 position: relative; 338 position: relative;
341 padding-top: 0.7rem; 339 padding-top: 0.7rem;
342 margin: 1.8rem 0rem 0.5rem 0rem; 340 margin: 1.8rem 0rem 0.5rem 0rem;
343 } 341 }
344 342
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 } 376 }
379 377
380 [data-validation] .floating-input input:focus:invalid 378 [data-validation] .floating-input input:focus:invalid
381 { 379 {
382 border-color: #C11D27; 380 border-color: #C11D27;
383 } 381 }
384 382
385 [data-validation] .floating-input input:focus:invalid ~ .attention::before, 383 [data-validation] .floating-input input:focus:invalid ~ .attention::before,
386 [data-validation] .floating-input input:valid ~ .attention::before 384 [data-validation] .floating-input input:valid ~ .attention::before
387 { 385 {
388 content: "";
389 position: absolute; 386 position: absolute;
390 display: block; 387 margin: 0.3rem;
391 margin: 0.5rem;
392 height: 1.5rem; 388 height: 1.5rem;
393 width: 1.5rem; 389 width: 1.5rem;
394 border: 0rem;
395 top: 0.3rem; 390 top: 0.3rem;
396 right: 0rem; 391 right: 0rem;
397 } 392 }
398 393
399 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti on::before, 394 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti on::before,
400 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo re 395 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo re
401 { 396 {
402 left: 0rem; 397 left: 0rem;
403 right: auto; 398 right: auto;
404 } 399 }
405 400
406 [data-validation] .floating-input input:focus:invalid ~ .attention::before 401 [data-validation] .floating-input input:focus:invalid ~ .icon.attention::before
407 { 402 {
408 background-image: url(icons/attention.svg); 403 background-image: url(icons/attention.svg);
409 } 404 }
410 405
411 [data-validation] .floating-input input:valid ~ .attention::before 406 [data-validation] .floating-input input:valid ~ .icon.attention::before
412 { 407 {
413 top: 0.5rem; 408 top: 0.5rem;
414 background-image: url(icons/checkmark.svg?approved#approved); 409 background-image: url(icons/checkmark.svg?approved#approved);
415 } 410 }
416 411
417 [data-validation] .floating-input input ~ .error-msg 412 [data-validation] .floating-input input ~ .error-msg
418 { 413 {
419 margin-top: 0.5rem; 414 margin-top: 0.5rem;
420 color: #C11D27; 415 color: #C11D27;
421 display: block; 416 display: block;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 682
688 html[dir="rtl"] #acceptable-ads ul 683 html[dir="rtl"] #acceptable-ads ul
689 { 684 {
690 padding-left: 0rem; 685 padding-left: 0rem;
691 padding-right: 2.2rem; 686 padding-right: 2.2rem;
692 } 687 }
693 688
694 #acceptable-ads ul button 689 #acceptable-ads ul button
695 { 690 {
696 position: absolute; 691 position: absolute;
697 margin-top: 0.3rem;
698 left: 0rem; 692 left: 0rem;
699 } 693 }
700 694
701 html[dir="rtl"] button 695 html[dir="rtl"] button
702 { 696 {
703 left: auto; 697 left: auto;
704 right: 0rem; 698 right: 0rem;
705 } 699 }
706 700
707 #acceptable-ads label 701 #acceptable-ads label
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 } 824 }
831 825
832 .th 826 .th
833 { 827 {
834 display: flex; 828 display: flex;
835 } 829 }
836 830
837 .col5 > * 831 .col5 > *
838 { 832 {
839 display: inline-block; 833 display: inline-block;
834 vertical-align: middle;
840 } 835 }
841 836
842 .cols .col5 837 .cols .col5
843 { 838 {
844 margin: 0rem 1rem; 839 margin: 0rem 1rem;
845 } 840 }
846 841
847 .th .col5:nth-of-type(1), 842 .th .col5:nth-of-type(1),
848 .table .col5:nth-of-type(1) 843 .table .col5:nth-of-type(1)
849 { 844 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 margin: 0rem; 878 margin: 0rem;
884 } 879 }
885 880
886 .table.cols li 881 .table.cols li
887 { 882 {
888 padding: 0.5rem 0rem; 883 padding: 0.5rem 0rem;
889 } 884 }
890 885
891 .table.cols .state 886 .table.cols .state
892 { 887 {
893 -moz-margin-start: 1.1rem; 888 -moz-margin-start: 1rem;
894 -webkit-margin-start: 1.1rem; 889 -webkit-margin-start: 1rem;
895 } 890 }
896 891
897 .table.cols .gear 892 .table.cols .gear
898 { 893 {
899 margin: 0rem 894 margin: 0rem
900 } 895 }
901 896
902 #dialog .table.list li 897 #dialog .table.list li
903 { 898 {
904 display: block; 899 display: block;
(...skipping 14 matching lines...) Expand all
919 height: auto; 914 height: auto;
920 padding: 1.1rem 1rem; 915 padding: 1.1rem 1rem;
921 } 916 }
922 917
923 #dialog .table.list li button:hover, 918 #dialog .table.list li button:hover,
924 #dialog .table.list li button:focus 919 #dialog .table.list li button:focus
925 { 920 {
926 background-color: #E1F2FA; 921 background-color: #E1F2FA;
927 } 922 }
928 923
924 #dialog .table.list li button::before
925 {
926 width: 1.3rem;
927 height: 1.3rem;
928 margin: 0rem;
929 border: 0rem;
930 }
931
929 #dialog .table.list li button[aria-checked="true"] 932 #dialog .table.list li button[aria-checked="true"]
930 { 933 {
931 color: #BBB; 934 color: #BBB;
932 } 935 }
933 936
934 #dialog .table.list li button[aria-checked="true"]::before 937 #dialog .table.list li button[aria-checked="true"].icon::before
935 { 938 {
936 content: "";
937 width: 1.3rem;
938 height: 1.3rem;
939 background-image: url(icons/checkmark.svg?default#default); 939 background-image: url(icons/checkmark.svg?default#default);
940 margin: 0rem;
941 } 940 }
942 941
943 #dialog .table.list li button .display 942 #dialog .table.list li button .display
944 { 943 {
945 flex: none; 944 flex: none;
946 margin: 0rem 0.8rem; 945 margin: 0rem 0.8rem;
947 text-transform: none; 946 text-transform: none;
948 font-weight: 400; 947 font-weight: 400;
949 } 948 }
950 949
951 /* 950 /*
952 Tooltips 951 Tooltips
953 */ 952 */
954 953
955 .tooltip 954 .tooltip
956 { 955 {
957 display: inline-block;
958 position: relative; 956 position: relative;
959 margin: 0rem; 957 margin: 0rem;
960 -moz-margin-end: 1rem; 958 -moz-margin-end: 1rem;
961 -webkit-margin-end: 1rem; 959 -webkit-margin-end: 1rem;
962 line-height: 1.5rem; 960 line-height: 1.5rem;
963 text-decoration: none; 961 text-decoration: none;
964 cursor: help; 962 cursor: help;
965 } 963 }
966 964
967 .tooltip::before 965 .tooltip::before
968 { 966 {
969 content: "";
970 width: 1.1rem; 967 width: 1.1rem;
971 height: 1.1rem; 968 height: 1.1rem;
972 display: block; 969 }
970
971 .icon.tooltip::before
972 {
973 background-image: url(icons/tooltip.svg); 973 background-image: url(icons/tooltip.svg);
974 } 974 }
975 975
976 /* 976 /*
977 Used for translatable screen reader only content. 977 Used for translatable screen reader only content.
978 e.g.: Use instead of aria-label to avoid complex attribute value translation 978 e.g.: Use instead of aria-label to avoid complex attribute value translation
979 */ 979 */
980 .sr-only 980 .sr-only
981 { 981 {
982 position: absolute; 982 position: absolute;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 Context menu 1092 Context menu
1093 */ 1093 */
1094 1094
1095 li [role="menubar"] 1095 li [role="menubar"]
1096 { 1096 {
1097 position: relative; 1097 position: relative;
1098 } 1098 }
1099 1099
1100 [role="tooltip"] 1100 [role="tooltip"]
1101 { 1101 {
1102 right: -1rem; 1102 right: -0.8rem;
1103 margin-top: 1rem; 1103 margin-top: 0.8rem;
1104 opacity: 1; 1104 opacity: 1;
1105 padding: 0.2rem 1rem; 1105 padding: 0.2rem 1rem;
1106 position: absolute; 1106 position: absolute;
1107 -webkit-transition: opacity 200ms ease-in-out 400ms, 1107 -webkit-transition: opacity 200ms ease-in-out 400ms,
1108 visibility 0ms linear 400ms; 1108 visibility 0ms linear 400ms;
1109 transition: opacity 200ms ease-in-out 400ms, 1109 transition: opacity 200ms ease-in-out 400ms,
1110 visibility 0ms linear 400ms; 1110 visibility 0ms linear 400ms;
1111 visibility: visible; 1111 visibility: visible;
1112 width: 15rem; 1112 width: 15rem;
1113 z-index: 1; 1113 z-index: 1;
1114 } 1114 }
1115 1115
1116 html[dir="rtl"] [role="tooltip"] 1116 html[dir="rtl"] [role="tooltip"]
1117 { 1117 {
1118 right: auto; 1118 right: auto;
1119 left: -1rem; 1119 left: -0.8rem;
1120 } 1120 }
1121 1121
1122 [role="tooltip"], 1122 [role="tooltip"],
1123 .context-menu .content 1123 .context-menu .content
1124 { 1124 {
1125 border: 1px solid #077CA6; 1125 border: 1px solid #077CA6;
1126 border-radius: 3px; 1126 border-radius: 3px;
1127 background-color: #FFFFFF; 1127 background-color: #FFFFFF;
1128 } 1128 }
1129 1129
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 text-decoration: none; 1226 text-decoration: none;
1227 } 1227 }
1228 1228
1229 .context-menu li[role="menuitem"] > *:hover, 1229 .context-menu li[role="menuitem"] > *:hover,
1230 .context-menu li[role="menuitem"] > *:focus 1230 .context-menu li[role="menuitem"] > *:focus
1231 { 1231 {
1232 background-color: #E1F2FA; 1232 background-color: #E1F2FA;
1233 cursor: pointer; 1233 cursor: pointer;
1234 } 1234 }
1235 1235
1236 .context-menu li[role="menuitem"] > *::before 1236 .context-menu li[role="menuitem"] .icon::before
1237 { 1237 {
1238 content: "";
1239 height: 1rem; 1238 height: 1rem;
1240 width: 1rem; 1239 width: 1rem;
1241 margin: 0rem 1.1rem; 1240 margin: 0rem 1.1rem;
1242 border: 0rem; 1241 border: 0rem;
1243 } 1242 }
1244 1243
1245 .context-menu .update-subscription::before 1244 .context-menu .icon.update-subscription::before
1246 { 1245 {
1247 background-image: url(icons/reload.svg); 1246 background-image: url(icons/reload.svg);
1248 } 1247 }
1249 1248
1250 .context-menu .website::before 1249 .context-menu .icon.website::before
1251 { 1250 {
1252 background-image: url(icons/globe.svg); 1251 background-image: url(icons/globe.svg);
1253 } 1252 }
1254 1253
1255 .context-menu .source::before 1254 .context-menu .icon.source::before
1256 { 1255 {
1257 background-image: url(icons/code.svg); 1256 background-image: url(icons/code.svg);
1258 } 1257 }
1259 1258
1260 .context-menu .delete::before 1259 .context-menu .icon.delete::before
1261 { 1260 {
1262 background-image: url(icons/trash.svg?default#default); 1261 background-image: url(icons/trash.svg?default#default);
1263 } 1262 }
1264 1263
1265 /* 1264 /*
1266 Help tab content 1265 Help tab content
1267 */ 1266 */
1268 1267
1269 html:not([lang="zh"]) #social-chinese, 1268 html:not([lang="zh"]) #social-chinese,
1270 html[lang="zh"] #social-general 1269 html[lang="zh"] #social-general
(...skipping 14 matching lines...) Expand all
1285 -webkit-margin-end: 1rem; 1284 -webkit-margin-end: 1rem;
1286 } 1285 }
1287 1286
1288 #social ul li a 1287 #social ul li a
1289 { 1288 {
1290 display: block; 1289 display: block;
1291 text-align: center; 1290 text-align: center;
1292 text-decoration: none; 1291 text-decoration: none;
1293 } 1292 }
1294 1293
1295 #social ul li a::before 1294 #social ul li .icon::before
1296 { 1295 {
1297 display: block;
1298 margin: 0em auto; 1296 margin: 0em auto;
1299 width: 2.5rem; 1297 width: 2.5rem;
1300 height: 2.5rem; 1298 height: 2.5rem;
1301 content: "";
1302 } 1299 }
1303 1300
1304 #twitter::before 1301 .icon#twitter::before
1305 { 1302 {
1306 background-image: url("social/twitter.svg"); 1303 background-image: url("social/twitter.svg");
1307 } 1304 }
1308 1305
1309 #facebook::before 1306 .icon#facebook::before
1310 { 1307 {
1311 background-image: url("social/facebook.svg"); 1308 background-image: url("social/facebook.svg");
1312 } 1309 }
1313 1310
1314 #google-plus::before 1311 .icon#google-plus::before
1315 { 1312 {
1316 background-image: url("social/googleplus.svg"); 1313 background-image: url("social/googleplus.svg");
1317 } 1314 }
1318 1315
1319 /* 1316 /*
1320 Dialog 1317 Dialog
1321 */ 1318 */
1322 1319
1323 #dialog-background 1320 #dialog-background
1324 { 1321 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 background-color: #077CA6; 1355 background-color: #077CA6;
1359 } 1356 }
1360 1357
1361 #dialog header h3 1358 #dialog header h3
1362 { 1359 {
1363 margin: 0rem; 1360 margin: 0rem;
1364 font-size: 1rem; 1361 font-size: 1rem;
1365 font-weight: 700; 1362 font-weight: 700;
1366 } 1363 }
1367 1364
1368 #dialog-close, 1365 .close
1369 #hide-notification,
1370 #hide-tracking-warning
1371 { 1366 {
1372 border: 0rem;
1373 padding: 0rem;
1374 margin: 0rem; 1367 margin: 0rem;
1375 background-color: transparent;
1376 cursor: pointer; 1368 cursor: pointer;
1377 } 1369 }
1378 1370
1379 #dialog-close::before, 1371 .close.icon::before
1380 #hide-notification::after,
1381 #hide-tracking-warning::after
1382 { 1372 {
1383 content: "";
1384 display: block;
1385 height: 1rem; 1373 height: 1rem;
1386 width: 1rem; 1374 width: 1rem;
1387 border: 0rem; 1375 }
1376
1377 .icon.close.primary::before
1378 {
1388 background-image: url(icons/delete.svg?primary#primary); 1379 background-image: url(icons/delete.svg?primary#primary);
1389 } 1380 }
1390 1381
1391 #dialog-close:hover::before 1382 .icon.close.primary:hover::before
1392 { 1383 {
1393 background-image: url(icons/delete.svg?primary-hover#primary-hover); 1384 background-image: url(icons/delete.svg?primary-hover#primary-hover);
1394 } 1385 }
1395 1386
1396 #dialog #dialog-body 1387 #dialog #dialog-body
1397 { 1388 {
1398 max-height: 60vh; 1389 max-height: 60vh;
1399 overflow: auto; 1390 overflow: auto;
1400 } 1391 }
1401 1392
1402 .dialog-content 1393 .dialog-content
1403 { 1394 {
1404 margin: 1rem 1.8rem; 1395 margin: 1rem 1.8rem;
1405 } 1396 }
1406 1397
1407 [data-dialog="language-change"] .dialog-content, 1398 [data-dialog="language-change"] .dialog-content,
1408 [data-dialog="language-add"] .dialog-content 1399 [data-dialog="language-add"] .dialog-content
1409 { 1400 {
1410 margin: 0rem; 1401 margin: 0rem;
1411 } 1402 }
1412 1403
1413 [data-dialog="about"] .dialog-content 1404 [data-dialog="about"] .dialog-content
1414 { 1405 {
1415 text-align: center; 1406 text-align: center;
1416 } 1407 }
1417 1408
1418 [data-dialog="about"] button 1409 [data-dialog="about"] .content button
1419 { 1410 {
1420 margin: 1.5rem auto 1.8rem auto; 1411 margin: 1.5rem auto 1.8rem auto;
1421 } 1412 }
1422 1413
1423 [data-dialog="about"] p 1414 [data-dialog="about"] p
1424 { 1415 {
1425 margin: 0.5rem 0rem; 1416 margin: 0.5rem 0rem;
1426 } 1417 }
1427 1418
1428 [data-dialog="import"] .side-controls 1419 [data-dialog="import"] .side-controls
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 color: #077CA6; 1484 color: #077CA6;
1494 background-color: #E1F2FA; 1485 background-color: #E1F2FA;
1495 } 1486 }
1496 1487
1497 #notification strong 1488 #notification strong
1498 { 1489 {
1499 flex: 1; 1490 flex: 1;
1500 text-align: center; 1491 text-align: center;
1501 } 1492 }
1502 1493
1503 #hide-notification 1494 .icon.close.secondary::before
1504 {
1505 margin: 0rem 1rem;
1506 }
1507
1508 #hide-notification::after
1509 { 1495 {
1510 background-image: url(icons/delete.svg?secondary#secondary); 1496 background-image: url(icons/delete.svg?secondary#secondary);
1511 } 1497 }
1512 1498
1513 #hide-tracking-warning::after 1499 .icon.close.tertiary::before
1514 { 1500 {
1515 background-image: url(icons/delete.svg?tertiary#tertiary); 1501 background-image: url(icons/delete.svg?tertiary#tertiary);
1516 } 1502 }
1517 1503
1518 #hide-notification:hover::after 1504 .icon.close.secondary:hover::before
1519 { 1505 {
1520 background-image: url(icons/delete.svg?secondary-hover#secondary-hover); 1506 background-image: url(icons/delete.svg?secondary-hover#secondary-hover);
1521 } 1507 }
1522 1508
1523 #hide-tracking-warning:hover::after 1509 .icon.close.tertiary:hover::before
1524 { 1510 {
1525 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover); 1511 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover);
1526 } 1512 }
OLDNEW
« no previous file with comments | « desktop-options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld