Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 display: none; | 85 display: none; |
86 } | 86 } |
87 | 87 |
88 input[type="text"], input[type="search"] | 88 input[type="text"], input[type="search"] |
89 { | 89 { |
90 -webkit-box-sizing: border-box; | 90 -webkit-box-sizing: border-box; |
91 -moz-box-sizing: border-box; | 91 -moz-box-sizing: border-box; |
92 box-sizing: border-box; | 92 box-sizing: border-box; |
93 } | 93 } |
94 | 94 |
95 button[role="checkbox"] | |
96 { | |
97 vertical-align: top; | |
98 width: 18px; | |
99 height: 18px; | |
100 margin-top: 0px; | |
101 -moz-margin-end: 20px; | |
102 -webkit-margin-end: 20px; | |
103 padding: 0px; | |
104 border: none; | |
105 background-color: transparent; | |
106 background-position: -51px 0px; | |
107 } | |
108 | |
109 button[role="checkbox"][aria-checked="true"] | |
110 { | |
111 background-position: -68px 0px; | |
112 } | |
113 | |
95 .option-name | 114 .option-name |
96 { | 115 { |
97 display: flex; | 116 display: flex; |
98 margin-bottom: 16px; | 117 margin-bottom: 16px; |
99 margin-top: 24px; | 118 margin-top: 24px; |
100 } | 119 } |
101 | 120 |
102 .option-name > :first-child | 121 .option-name > :first-child |
103 { | 122 { |
104 flex: 1; | 123 flex: 1; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 } | 158 } |
140 | 159 |
141 .hbox | 160 .hbox |
142 { | 161 { |
143 display: flex; | 162 display: flex; |
144 flex-direction: row; | 163 flex-direction: row; |
145 } | 164 } |
146 | 165 |
147 .hbox > div | 166 .hbox > div |
148 { | 167 { |
149 flex: 1; | 168 width: 400px; |
150 } | 169 } |
151 | 170 |
152 .tabs li | 171 .tabs li |
153 { | 172 { |
154 cursor: pointer; | 173 cursor: pointer; |
155 display: flex; | 174 display: flex; |
156 } | 175 } |
157 | 176 |
158 .tabs li a | 177 .tabs li a |
159 { | 178 { |
(...skipping 16 matching lines...) Expand all Loading... | |
176 border-color: #CDCDCD transparent; | 195 border-color: #CDCDCD transparent; |
177 border-style: solid; | 196 border-style: solid; |
178 border-width: 1px; | 197 border-width: 1px; |
179 font-size: 16px; | 198 font-size: 16px; |
180 font-weight: 300; | 199 font-weight: 300; |
181 line-height: 1em; | 200 line-height: 1em; |
182 margin-top: -1px; | 201 margin-top: -1px; |
183 padding: 14px 20px; | 202 padding: 14px 20px; |
184 } | 203 } |
185 | 204 |
186 body[data-tab*="general"] #tab-general, | 205 body[data-tab|="general"] #tab-general, |
187 body[data-tab*="advanced"] #tab-advanced, | 206 body[data-tab|="advanced"] #tab-advanced, |
188 body[data-tab*="help"] #tab-help | 207 body[data-tab|="help"] #tab-help |
189 { | 208 { |
190 background-color: #FFFFFF; | 209 background-color: #FFFFFF; |
191 border-radius: 3px 0px 0px 3px; | 210 border-radius: 3px 0px 0px 3px; |
192 border-width: 1px; | 211 border-width: 1px; |
193 font-weight: 600; | 212 font-weight: 600; |
194 -moz-border-start-color: #CDCDCD; | 213 -moz-border-start-color: #CDCDCD; |
195 -webkit-border-start-color: #CDCDCD; | 214 -webkit-border-start-color: #CDCDCD; |
196 -moz-margin-end: -1px; | 215 -moz-margin-end: -1px; |
197 -webkit-margin-end: -1px; | 216 -webkit-margin-end: -1px; |
198 -moz-margin-start: -1px; | 217 -moz-margin-start: -1px; |
199 -webkit-margin-start: -1px; | 218 -webkit-margin-start: -1px; |
200 -moz-padding-end: 21px; | 219 -moz-padding-end: 21px; |
201 -webkit-padding-end: 21px; | 220 -webkit-padding-end: 21px; |
202 -moz-padding-start: 21px; | 221 -moz-padding-start: 21px; |
203 -webkit-padding-start: 21px; | 222 -webkit-padding-start: 21px; |
204 } | 223 } |
205 | 224 |
206 html[dir="rtl"] body[data-tab*="general"] #tab-general, | 225 html[dir="rtl"] body[data-tab|="general"] #tab-general, |
207 html[dir="rtl"] body[data-tab*="advanced"] #tab-advanced, | 226 html[dir="rtl"] body[data-tab|="advanced"] #tab-advanced, |
208 html[dir="rtl"] body[data-tab*="help"] #tab-help | 227 html[dir="rtl"] body[data-tab|="help"] #tab-help |
209 { | 228 { |
210 border-radius: 0px 3px 3px 0px; | 229 border-radius: 0px 3px 3px 0px; |
211 } | 230 } |
212 | 231 |
213 .tabs.vertical.bottom | 232 .tabs.vertical.bottom |
214 { | 233 { |
215 bottom: 0px; | 234 bottom: 0px; |
216 position: absolute; | 235 position: absolute; |
217 } | 236 } |
218 | 237 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
262 { | 281 { |
263 display: none; | 282 display: none; |
264 } | 283 } |
265 | 284 |
266 #tab-share:lang(zh) + li, | 285 #tab-share:lang(zh) + li, |
267 #tab-share[hidden] + li | 286 #tab-share[hidden] + li |
268 { | 287 { |
269 border-top: none; | 288 border-top: none; |
270 } | 289 } |
271 | 290 |
272 #tab-content | 291 #content |
273 { | 292 { |
274 background-color: #FFFFFF; | 293 background-color: #FFFFFF; |
275 border: 1px solid #CDCDCD; | 294 border: 1px solid #CDCDCD; |
276 border-radius: 8px; | 295 border-radius: 8px; |
277 box-sizing: border-box; | 296 box-sizing: border-box; |
278 min-width: 960px; | 297 min-width: 960px; |
279 padding: 0px 60px 40px 60px; | 298 padding: 0px 60px 40px 60px; |
280 } | 299 } |
281 | 300 |
282 #tab-content h1 | 301 #content h1 |
283 { | 302 { |
284 border-bottom: 1px solid #CDCDCD; | 303 border-bottom: 1px solid #CDCDCD; |
285 margin: 0px; | 304 margin: 0px; |
286 padding: 40px 0px 16px 0px; | 305 padding: 40px 0px 16px 0px; |
287 } | 306 } |
288 | 307 |
289 #link-version | 308 #link-version |
290 { | 309 { |
291 display: flex; | 310 display: flex; |
292 margin: 12px 20px; | 311 margin: 12px 20px; |
(...skipping 10 matching lines...) Expand all Loading... | |
303 #content-wrapper | 322 #content-wrapper |
304 { | 323 { |
305 position: relative; | 324 position: relative; |
306 } | 325 } |
307 | 326 |
308 #content-wrapper > div | 327 #content-wrapper > div |
309 { | 328 { |
310 display: none; | 329 display: none; |
311 } | 330 } |
312 | 331 |
313 body[data-tab*="general"] #content-general, | 332 body[data-tab|="general"] #content-general, |
314 body[data-tab*="advanced"] #content-advanced, | 333 body[data-tab|="advanced"] #content-advanced, |
315 body[data-tab*="help"] #content-help | 334 body[data-tab|="help"] #content-help |
316 { | 335 { |
317 display: block; | 336 display: block; |
318 } | 337 } |
319 | 338 |
320 div.button | 339 div.button |
321 { | 340 { |
322 cursor: pointer; | 341 cursor: pointer; |
323 display: flex; | 342 display: flex; |
324 } | 343 } |
325 | 344 |
326 .table | 345 .table |
327 { | 346 { |
328 list-style: none; | 347 list-style: none; |
329 margin: 0px; | 348 margin: 0px; |
330 padding: 0px; | 349 padding: 0px; |
331 position: relative; | 350 position: relative; |
332 } | 351 } |
333 | 352 |
334 .table li | 353 .table li |
335 { | 354 { |
336 display: flex; | 355 display: flex; |
337 padding: 14px 0px; | 356 padding: 12px 0px; |
338 -webkit-padding-start: 16px; | 357 -webkit-padding-start: 16px; |
339 -moz-padding-start: 16px; | 358 -moz-padding-start: 16px; |
359 border-radius: 3px; | |
340 } | 360 } |
341 | 361 |
342 .table.list li .display | 362 .table.list li .display |
343 { | 363 { |
344 flex: 1; | 364 flex: 1; |
345 } | 365 line-height: 16px; |
346 | 366 overflow: hidden; |
347 .table.list li:nth-child(odd), | 367 text-overflow: ellipsis; |
Thomas Greiner
2016/01/25 15:40:38
I guess you'd also want to do change it here.
saroyanm
2016/01/26 18:36:20
Done.
| |
368 white-space: nowrap; | |
369 } | |
370 | |
371 .table.list li:nth-of-type(odd), | |
348 .table.cols li:nth-of-type(odd), | 372 .table.cols li:nth-of-type(odd), |
349 .table li.empty-placeholder | 373 .table li.empty-placeholder |
350 { | 374 { |
351 background-color: #F5F5F5; | 375 background-color: #F5F5F5; |
352 } | 376 } |
353 | 377 |
354 .table label | 378 .table label |
355 { | 379 { |
356 vertical-align: top; | 380 vertical-align: top; |
357 } | 381 } |
358 | 382 |
359 .table.cols | 383 .table.cols |
360 { | 384 { |
361 border-bottom: 1px solid #CDCDCD; | 385 border-bottom: 1px solid #CDCDCD; |
362 border-top: 1px solid #CDCDCD; | 386 border-top: 1px solid #CDCDCD; |
363 } | 387 } |
364 | 388 |
365 .table::-webkit-scrollbar, | 389 button[disabled="true"] |
366 #custom-wrapper::-webkit-scrollbar | 390 { |
367 { | 391 border-radius: 2px; |
368 -webkit-padding-end: 10px; | |
369 width: 5px; | |
370 } | |
371 | |
372 .table::-webkit-scrollbar-thumb, | |
373 #custom-wrapper::-webkit-scrollbar-thumb | |
374 { | |
375 background-color: #CDCDCD; | |
376 border-radius: 5px; | |
377 padding: 0px 40px; | |
378 } | |
379 | |
380 .table::-webkit-scrollbar-thumb:hover, | |
381 #custom-wrapper::-webkit-scrollbar-thumb:hover | |
382 { | |
383 background-color: #A1A1A1; | |
384 } | |
385 | |
386 .table input[type="checkbox"] | |
387 { | |
388 margin-top: 0px; | |
389 -moz-margin-end: 20px; | |
390 -webkit-margin-end: 20px; | |
391 padding: 0px 0px 0px 0px; | |
392 visibility: hidden; | |
393 } | |
394 | |
395 .table input[type="checkbox"]::before | |
396 { | |
397 content: ""; | |
398 background-position: -51px 0px; | |
399 height: 18px; | |
400 width: 18px; | |
401 visibility: visible; | |
402 } | |
403 | |
404 .table input[type="checkbox"]:checked::before | |
405 { | |
406 content: ""; | |
407 background-position: -68px 0px; | |
408 height: 18px; | |
409 padding: 0px; | |
410 width: 18px; | |
411 visibility: visible; | |
412 } | |
413 | |
414 input[disabled="true"]::before | |
415 { | |
416 background-color: #ccc; | 392 background-color: #ccc; |
417 border-radius: 2px; | |
418 } | 393 } |
419 | 394 |
420 .table button.delete | 395 .table button.delete |
421 { | 396 { |
422 background-color: transparent; | 397 background-color: transparent; |
423 background-position: -9px -32px; | 398 background-position: -9px -32px; |
424 border: 0px; | 399 border: 0px; |
425 height: 10px; | 400 height: 10px; |
426 margin-top: 5px; | 401 margin-top: 5px; |
427 -moz-margin-end: 20px; | 402 -moz-margin-end: 20px; |
(...skipping 15 matching lines...) Expand all Loading... | |
443 { | 418 { |
444 display: flex; | 419 display: flex; |
445 margin-bottom: 0px; | 420 margin-bottom: 0px; |
446 padding: 0px; | 421 padding: 0px; |
447 } | 422 } |
448 | 423 |
449 .tabs.horizontal li | 424 .tabs.horizontal li |
450 { | 425 { |
451 display: inline-block; | 426 display: inline-block; |
452 border-bottom: 1px solid #A1A1A1; | 427 border-bottom: 1px solid #A1A1A1; |
428 padding: 10px 46px; | |
453 color: #3A7BA6; | 429 color: #3A7BA6; |
454 padding: 10px 46px; | |
455 text-align: center; | 430 text-align: center; |
456 } | 431 } |
457 | 432 |
458 .icon, | 433 .icon, |
459 .table input[type="checkbox"]::before, | 434 button[role="checkbox"], |
460 .table button.delete, | 435 .table button.delete, |
461 #content-help a::before, | 436 #content-help a::before, |
462 #dialog-close::before, | 437 #dialog-close::before, |
463 #custom-filters-add button::after, | 438 #custom-filters-add button::after, |
464 #dialog-body button::before, | 439 #dialog-body button::before, |
465 .date::before, | 440 .date::before, |
466 .time::before, | 441 .time::before, |
467 #filter-lists .arrow, | 442 #all-filter-lists .arrow, |
468 .context-menu .content a::before | 443 .context-menu .content a::before |
469 { | 444 { |
470 background-image: url(options-sprite.png); | 445 background-image: url(options-sprite.png); |
471 display: inline-block; | 446 display: inline-block; |
472 } | 447 } |
473 | 448 |
474 .icon-add | 449 .icon-add |
475 { | 450 { |
476 background-position: -0px -0px; | 451 background-position: -0px -0px; |
477 cursor: pointer; | 452 cursor: pointer; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
542 vertical-align: top; | 517 vertical-align: top; |
543 } | 518 } |
544 | 519 |
545 /* | 520 /* |
546 General tab content | 521 General tab content |
547 */ | 522 */ |
548 | 523 |
549 #blocking-languages, | 524 #blocking-languages, |
550 #acceptable-ads | 525 #acceptable-ads |
551 { | 526 { |
552 -moz-padding-end: 40px; | 527 -moz-margin-end: 40px; |
553 -webkit-padding-end: 40px; | 528 -webkit-margin-end: 40px; |
554 } | 529 } |
555 | 530 |
556 #custom-wrapper | 531 #custom-wrapper |
557 { | 532 { |
558 height: 290px; | 533 height: 290px; |
559 overflow: auto; | 534 overflow: auto; |
560 } | 535 } |
561 | 536 |
562 #custom-wrapper .table | 537 #custom-wrapper .table |
563 { | 538 { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
624 background-color: transparent; | 599 background-color: transparent; |
625 border: 0px; | 600 border: 0px; |
626 color: #3A7BA6; | 601 color: #3A7BA6; |
627 cursor: pointer; | 602 cursor: pointer; |
628 } | 603 } |
629 | 604 |
630 /* | 605 /* |
631 Advanced tab content | 606 Advanced tab content |
632 */ | 607 */ |
633 | 608 |
634 #blocking-lists > div | 609 #filter-lists > div |
635 { | 610 { |
636 display: none; | 611 display: none; |
637 } | 612 } |
638 | 613 |
639 body[data-tab*="filter-lists"] #filter-lists, | 614 body[data-tab="advanced-allFilterLists"] #all-filter-lists, |
640 body[data-tab*="custom-filters"] #custom-filters | 615 body[data-tab="advanced-customFilters"] #custom-filters |
641 { | 616 { |
642 display: block; | 617 display: block; |
643 } | 618 } |
644 | 619 |
645 body[data-tab*="filter-lists"] #content-advanced [data-tab="advanced,filter-list s"], | 620 body[data-tab="advanced-allFilterLists"] #content-advanced [data-tab="advanced-a llFilterLists"], |
646 body[data-tab*="custom-filters"] #content-advanced [data-tab="advanced,custom-fi lters"] | 621 body[data-tab="advanced-customFilters"] #content-advanced [data-tab="advanced-cu stomFilters"] |
647 { | 622 { |
648 border-bottom: 2px solid #1E8728; | 623 border-bottom: 2px solid #1E8728; |
649 padding-bottom: 10px; | 624 padding-bottom: 10px; |
650 color: black; | 625 color: black; |
651 font-weight: 600; | 626 font-weight: 600; |
652 } | 627 } |
653 | 628 |
654 #filter-lists .table | 629 #all-filter-lists .table |
655 { | 630 { |
656 display: inline-block; | 631 display: inline-block; |
657 } | 632 } |
658 | 633 |
659 #filter-lists .table li | 634 #all-filter-lists .table li |
660 { | 635 { |
661 padding-left: 16px; | 636 padding-left: 16px; |
662 padding-right: 16px; | 637 padding-right: 16px; |
663 } | 638 } |
664 | 639 |
665 #filter-lists .table li > span:first-of-type | 640 #all-filter-lists .table li > div |
666 { | 641 { |
667 display: inline-block; | 642 display: flex; |
668 width: 330px; | 643 width: 330px; |
669 } | 644 } |
670 | 645 |
671 .table-header | 646 .table-header |
672 { | 647 { |
673 display: flex; | 648 display: flex; |
674 } | 649 } |
675 | 650 |
676 .table-header h3 | 651 #filter-lists h3 |
677 { | 652 { |
678 display: inline-block; | 653 display: inline-block; |
679 margin-bottom: 7px; | 654 margin-bottom: 7px; |
680 font-size: 14px; | 655 font-size: 14px; |
681 } | 656 } |
682 | 657 |
683 .table-header h3:first-child | 658 .table-header h3:first-child |
684 { | 659 { |
685 width: 330px; | 660 width: 330px; |
686 -webkit-padding-start: 54px; | 661 -webkit-padding-start: 54px; |
687 -moz-padding-start: 54px; | 662 -moz-padding-start: 54px; |
688 } | 663 } |
689 | 664 |
690 #filter-lists .table li span.display | 665 #all-filter-lists .table li span.display |
691 { | 666 { |
692 cursor: pointer; | 667 cursor: pointer; |
693 } | 668 } |
694 | 669 |
695 #filter-lists .table .head span:first-child | 670 #all-filter-lists .table .head span:first-child |
696 { | 671 { |
697 -webkit-padding-start: 38px; | 672 -webkit-padding-start: 38px; |
698 -moz-padding-start: 38px; | 673 -moz-padding-start: 38px; |
699 } | 674 } |
700 | 675 |
701 #filter-lists .controls | 676 #all-filter-lists .controls |
702 { | 677 { |
703 padding-top: 0px; | 678 padding-top: 0px; |
704 border-top: none; | 679 border-top: none; |
705 } | 680 } |
706 | 681 |
707 #filter-lists .controls button | 682 #all-filter-lists .controls button |
708 { | 683 { |
709 margin-top: 14px; | 684 margin-top: 14px; |
710 } | 685 } |
711 | 686 |
712 #filter-lists .arrow | 687 #all-filter-lists .arrow |
713 { | 688 { |
689 position: relative; | |
690 margin: auto 6px; | |
714 border-style: none; | 691 border-style: none; |
715 padding: 0px; | 692 padding: 0px; |
716 width: 6px; | 693 width: 6px; |
717 height: 4px; | 694 height: 4px; |
718 margin: 0px; | |
719 background-color: transparent; | |
720 background-position: -1px -54px; | 695 background-position: -1px -54px; |
721 } | 696 cursor: pointer; |
722 | 697 } |
723 #filter-lists .table li:last-of-type a | 698 |
699 #all-filter-lists .table li:last-of-type a | |
724 { | 700 { |
725 color: #3A7BA6; | 701 color: #3A7BA6; |
726 text-decoration: none; | 702 text-decoration: none; |
727 } | 703 cursor: pointer; |
728 | 704 } |
729 #filter-lists .table li:last-of-type span:last-child | 705 |
706 #all-filter-lists .table li:last-of-type > span:last-child | |
730 { | 707 { |
731 -webkit-margin-start: auto; | 708 -webkit-margin-start: auto; |
732 -moz-margin-start: auto; | 709 -moz-margin-start: auto; |
710 } | |
711 | |
712 #all-filter-lists li.show-message .date, | |
713 #all-filter-lists li.show-message .time, | |
714 #all-filter-lists li:not(.show-message) .message | |
715 { | |
716 display: none; | |
733 } | 717 } |
734 | 718 |
735 .date::before | 719 .date::before |
736 { | 720 { |
737 content: ""; | 721 content: ""; |
738 -webkit-margin-end: 6px; | 722 -webkit-margin-end: 6px; |
739 -moz-margin-end: 6px; | 723 -moz-margin-end: 6px; |
740 height: 12px; | 724 height: 12px; |
741 width: 12px; | 725 width: 12px; |
742 background-position: -7px -49px; | 726 background-position: -7px -49px; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
894 color: #3A7BA6; | 878 color: #3A7BA6; |
895 cursor: default; | 879 cursor: default; |
896 font-size: 12px; | 880 font-size: 12px; |
897 height: 15px; | 881 height: 15px; |
898 line-height: 19px; | 882 line-height: 19px; |
899 margin: 0px 4px; | 883 margin: 0px 4px; |
900 position: relative; | 884 position: relative; |
901 text-decoration: none; | 885 text-decoration: none; |
902 } | 886 } |
903 | 887 |
904 .context-menu | 888 .context-menu |
Thomas Greiner
2016/01/27 17:16:58
According to the style guide there should be 6px b
saroyanm
2016/01/28 17:00:12
Sorry, from some point I missed the style-guide an
Thomas Greiner
2016/01/29 17:48:08
There's still no 6px between the title and the arr
saroyanm
2016/01/29 18:56:17
my fault, were thinking about the 6px vertically b
| |
905 { | 889 { |
906 display: inline-block; | 890 display: inline-block; |
907 position: relative; | 891 position: relative; |
908 border-bottom: none; | 892 border-bottom: none; |
909 } | 893 } |
910 | 894 |
911 .context-menu a | 895 .context-menu a |
912 { | 896 { |
913 vertical-align: middle; | 897 vertical-align: middle; |
914 white-space: nowrap; | 898 white-space: nowrap; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
962 .tooltip:not(:hover) > div[role="tooltip"], | 946 .tooltip:not(:hover) > div[role="tooltip"], |
963 div[role="tooltip"]:hover | 947 div[role="tooltip"]:hover |
964 { | 948 { |
965 visibility: hidden; | 949 visibility: hidden; |
966 opacity: 0; | 950 opacity: 0; |
967 -webkit-transition-delay: 0ms; | 951 -webkit-transition-delay: 0ms; |
968 transition-delay: 0ms; | 952 transition-delay: 0ms; |
969 } | 953 } |
970 | 954 |
971 div[role="tooltip"]::before, | 955 div[role="tooltip"]::before, |
972 div.container::before | 956 div.context-menu::before |
Thomas Greiner
2016/01/25 15:40:38
Was it intentional to call the class "container" e
saroyanm
2016/01/26 18:36:20
Not sure why I named it so, but I agree with you t
| |
973 { | 957 { |
974 background-image: url(options-sprite.png); | 958 background-image: url(options-sprite.png); |
975 background-position: -8px -42px; | 959 background-position: -8px -42px; |
976 content: ""; | 960 content: ""; |
977 height: 6px; | 961 height: 6px; |
978 position: absolute; | 962 position: absolute; |
979 top: -6px; | 963 top: -6px; |
980 width: 14px; | 964 width: 14px; |
981 left: 30px; | 965 left: 30px; |
982 } | 966 } |
983 | 967 |
984 div.container | 968 div.context-menu |
985 { | 969 { |
986 position: absolute; | 970 position: absolute; |
987 top: 21px; | 971 top: 16px; |
988 z-index: 1; | 972 z-index: 1; |
989 visibility: hidden; | 973 visibility: hidden; |
990 } | 974 } |
991 | 975 |
992 li.context div.container | 976 div.context-menu::before |
993 { | |
994 visibility: visible; | |
995 } | |
996 | |
997 div.container::before | |
998 { | 977 { |
999 left: -4px; | 978 left: -4px; |
1000 } | 979 } |
1001 | 980 |
1002 html[dir="rtl"] div.container::before | 981 html[dir="rtl"] div.context-menu::before |
1003 { | 982 { |
1004 left: inherit; | 983 left: inherit; |
1005 right: -4px; | 984 right: -4px; |
1006 } | 985 } |
1007 | 986 |
1008 .context-menu div.container > div | 987 div.context-menu .content |
1009 { | 988 { |
1010 position: relative; | 989 position: relative; |
1011 left: calc(-50% + 2px); | 990 left: calc(-50% + 2px); |
991 border-radius: 3px; | |
992 padding: 4px 10px; | |
1012 background-color: rgba(45, 45, 45, 0.95); | 993 background-color: rgba(45, 45, 45, 0.95); |
1013 padding: 0px 10px; | 994 cursor: default; |
1014 border-radius: 3px; | 995 } |
1015 } | 996 |
1016 | 997 html[dir="rtl"] div.context-menu .content |
1017 html[dir="rtl"] div.container > div | |
1018 { | 998 { |
1019 left: inherit; | 999 left: inherit; |
1020 right: -50%; | 1000 right: -50%; |
1021 } | 1001 } |
1022 | 1002 |
1023 div.container > div a::before | 1003 li.show-context-menu div.context-menu |
1004 { | |
1005 visibility: visible; | |
1006 } | |
1007 | |
1008 div.context-menu > div a::before | |
1024 { | 1009 { |
1025 content: ""; | 1010 content: ""; |
1026 -moz-margin-end: 8px; | 1011 -moz-margin-end: 8px; |
1027 -webkit-margin-end: 8px; | 1012 -webkit-margin-end: 8px; |
1028 } | 1013 } |
1029 | 1014 |
1030 div.container > div a | 1015 div.context-menu > div a |
1031 { | 1016 { |
1032 display: block; | 1017 display: block; |
1018 padding: 7px 4px; | |
1019 border-bottom: 1px solid #CDCDCD; | |
1033 text-decoration: none; | 1020 text-decoration: none; |
1034 padding: 6px 0px; | |
1035 border-bottom: 1px solid #CDCDCD; | |
1036 cursor: pointer; | 1021 cursor: pointer; |
1037 vertical-align: middle; | 1022 vertical-align: middle; |
1038 } | 1023 } |
1039 | 1024 |
1040 div.container > div a:before | 1025 div.context-menu > div a::before |
1041 { | 1026 { |
1042 vertical-align: middle; | 1027 vertical-align: middle; |
1043 height: 16px; | 1028 height: 16px; |
1044 width: 16px; | 1029 width: 16px; |
1045 } | 1030 } |
1046 | 1031 |
1047 div.container > div a:last-child | 1032 div.context-menu > div a:last-child |
1048 { | 1033 { |
1049 border: none; | 1034 border: none; |
1050 } | 1035 } |
1051 | 1036 |
1052 div.container [data-action="update-now"]::before | 1037 .context-menu .update-subscription::before |
1053 { | 1038 { |
1054 background-position: -38px -31px; | 1039 background-position: -38px -31px; |
1055 } | 1040 } |
1056 | 1041 |
1057 div.container [data-action="website"]::before | 1042 .context-menu .website::before |
1058 { | 1043 { |
1059 background-position: -33px -47px; | 1044 background-position: -33px -47px; |
1060 } | 1045 } |
1061 | 1046 |
1062 div.container [data-action="source"]::before | 1047 .context-menu .source::before |
1063 { | 1048 { |
1064 background-position: -53px -34px; | 1049 background-position: -53px -34px; |
1065 } | 1050 } |
1066 | 1051 |
1067 div.container [data-action="delete"]::before | 1052 .context-menu .delete::before |
1068 { | 1053 { |
1069 background-position: -71px -34px; | 1054 background-position: -71px -34px; |
1070 } | 1055 } |
1071 | 1056 |
1072 html[dir="ltr"] div[role="tooltip"].flip-vertical::before, | 1057 html[dir="ltr"] div[role="tooltip"].flip-vertical::before, |
1073 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before | 1058 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before |
1074 { | 1059 { |
1075 left: inherit; | 1060 left: inherit; |
1076 right: 30px; | 1061 right: 30px; |
1077 } | 1062 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1147 -webkit-margin-end: 6px; | 1132 -webkit-margin-end: 6px; |
1148 } | 1133 } |
1149 | 1134 |
1150 /* | 1135 /* |
1151 Dialog | 1136 Dialog |
1152 */ | 1137 */ |
1153 | 1138 |
1154 #dialog-background | 1139 #dialog-background |
1155 { | 1140 { |
1156 display: none; | 1141 display: none; |
1157 background-color: white; | 1142 position: fixed; |
1158 position: absolute; | |
1159 opacity: 0.7; | |
1160 top: 0px; | 1143 top: 0px; |
1161 right: 0px; | 1144 right: 0px; |
1162 bottom: 0px; | 1145 bottom: 0px; |
1163 left: 0px; | 1146 left: 0px; |
1164 z-index: 2; | 1147 z-index: 2; |
1148 background-color: white; | |
1149 opacity: 0.7; | |
1165 } | 1150 } |
1166 | 1151 |
1167 body[data-dialog] #dialog-background | 1152 body[data-dialog] #dialog-background |
1168 { | 1153 { |
1169 display: block; | 1154 display: block; |
1170 } | 1155 } |
1171 | 1156 |
1172 #dialog | 1157 #dialog |
1173 { | 1158 { |
1174 background-color: #FFFFFF; | 1159 position: fixed; |
1175 border: 2px solid #4D9D4B; | 1160 top: 100px; |
1176 border-radius: 3px; | |
1177 margin: auto; | |
1178 position:absolute; | |
1179 top:100px; | |
1180 left: 0px; | 1161 left: 0px; |
1181 right: 0px; | 1162 right: 0px; |
1182 z-index: 2; | 1163 z-index: 2; |
1183 width: 400px; | 1164 width: 400px; |
1165 margin: auto; | |
1166 border-radius: 3px; | |
1167 border: 2px solid #4D9D4B; | |
1168 background-color: #FFFFFF; | |
1184 } | 1169 } |
1185 | 1170 |
1186 #dialog header | 1171 #dialog header |
1187 { | 1172 { |
1173 display: flex; | |
1174 min-height: 25px; | |
1175 padding: 10px; | |
1188 background-color: #4D9D4B; | 1176 background-color: #4D9D4B; |
1189 display: flex; | |
1190 height: 25px; | |
1191 padding: 10px; | |
1192 } | 1177 } |
1193 | 1178 |
1194 #dialog-close | 1179 #dialog-close |
1195 { | 1180 { |
1196 -moz-border-start: 1px solid #25612B; | 1181 -moz-border-start: 1px solid #25612B; |
1197 -webkit-border-start: 1px solid #25612B; | 1182 -webkit-border-start: 1px solid #25612B; |
1198 color: #0F660F; | 1183 color: #0F660F; |
1199 display: inline-block; | 1184 display: inline-block; |
1200 height: 20px; | 1185 height: 20px; |
1201 font-size: 15px; | 1186 font-size: 15px; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1235 margin-top: 10px; | 1220 margin-top: 10px; |
1236 padding: 5px; | 1221 padding: 5px; |
1237 width: 100%; | 1222 width: 100%; |
1238 } | 1223 } |
1239 | 1224 |
1240 #dialog .table | 1225 #dialog .table |
1241 { | 1226 { |
1242 width: 100%; | 1227 width: 100%; |
1243 } | 1228 } |
1244 | 1229 |
1245 #dialog #other-language .table | 1230 #dialog #dialog-content-language .table |
1246 { | 1231 { |
1247 height: 200px; | |
1248 overflow: auto; | 1232 overflow: auto; |
1249 } | 1233 } |
1250 | 1234 |
1251 #dialog .section:not(:first-child) | 1235 #dialog .section:not(:first-child) |
1252 { | 1236 { |
1253 margin-top: 24px; | 1237 margin-top: 24px; |
1254 } | 1238 } |
1255 | 1239 |
1256 #dialog-title | 1240 #dialog-title |
1257 { | 1241 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1290 | 1274 |
1291 body:not([data-dialog="custom"]) #dialog-title-custom, | 1275 body:not([data-dialog="custom"]) #dialog-title-custom, |
1292 body:not([data-dialog="custom"]) #dialog-content-custom, | 1276 body:not([data-dialog="custom"]) #dialog-content-custom, |
1293 body:not([data-dialog="language"]) #dialog-title-language, | 1277 body:not([data-dialog="language"]) #dialog-title-language, |
1294 body:not([data-dialog="language"]) #dialog-content-language, | 1278 body:not([data-dialog="language"]) #dialog-content-language, |
1295 body:not([data-dialog="predefined"]) #dialog-title-predefined, | 1279 body:not([data-dialog="predefined"]) #dialog-title-predefined, |
1296 body:not([data-dialog="predefined"]) #dialog-content-predefined, | 1280 body:not([data-dialog="predefined"]) #dialog-content-predefined, |
1297 body:not([data-dialog]) #dialog | 1281 body:not([data-dialog]) #dialog |
1298 { | 1282 { |
1299 display: none; | 1283 display: none; |
1284 } | |
1285 | |
1286 #dialog-content-language .dialog-content-block | |
1287 { | |
1288 display: flex; | |
1289 flex-direction: column; | |
1290 height: 120px; | |
1291 } | |
1292 | |
1293 #dialog-content-language #other-language | |
1294 { | |
1295 height: 200px; | |
1300 } | 1296 } |
1301 | 1297 |
1302 #other-language .button-add | 1298 #other-language .button-add |
1303 { | 1299 { |
1304 background-color: transparent; | 1300 background-color: transparent; |
1305 margin: 0px; | 1301 margin: 0px; |
1306 padding: 0px; | 1302 padding: 0px; |
1307 width: auto; | 1303 width: auto; |
1308 -webkit-border-end: 1px solid #CDCDCD; | 1304 -webkit-border-end: 1px solid #CDCDCD; |
1309 -moz-border-end: 1px solid #CDCDCD; | 1305 -moz-border-end: 1px solid #CDCDCD; |
1310 -webkit-padding-end: 10px; | 1306 -webkit-padding-end: 10px; |
1311 -moz-padding-end: 10px; | 1307 -moz-padding-end: 10px; |
1312 -webkit-padding-start: 0px; | 1308 -webkit-padding-start: 0px; |
1313 -moz-padding-start: 0px; | 1309 -moz-padding-start: 0px; |
1314 } | 1310 } |
1315 | 1311 |
1316 #other-language .button-add::before | 1312 #other-language .button-add::before |
1317 { | 1313 { |
1318 display: none; | 1314 display: none; |
1319 } | 1315 } |
1320 | 1316 |
1321 #other-language .display | 1317 #other-language .display |
1322 { | 1318 { |
1323 -webkit-margin-start: 10px; | 1319 -webkit-margin-start: 10px; |
1324 -moz-margin-start: 10px; | 1320 -moz-margin-start: 10px; |
1325 } | 1321 } |
LEFT | RIGHT |