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-2015 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 margin-bottom: 16px; | 98 margin-bottom: 16px; |
99 margin-top: 24px; | 99 margin-top: 24px; |
100 } | 100 } |
101 | 101 |
102 .option-name > :first-child | 102 .option-name > :first-child |
103 { | 103 { |
104 flex: 1; | 104 flex: 1; |
105 overflow: hidden; | 105 overflow: hidden; |
106 text-overflow: ellipsis; | 106 text-overflow: ellipsis; |
107 white-space: nowrap; | 107 white-space: nowrap; |
108 -moz-margin-end: auto; | |
saroyanm
2015/07/22 18:25:38
Why do we need "margin-end: auto;" here ?
Thomas Greiner
2015/07/28 14:13:07
Done. Seems to be redundant when using `flex: 1`.
| |
109 -webkit-margin-end: auto; | |
110 } | 108 } |
111 | 109 |
112 #nav-sidebar | 110 #nav-sidebar |
113 { | 111 { |
114 min-width: 198px; | 112 min-width: 198px; |
115 } | 113 } |
116 | 114 |
117 #nav-sidebar .fixed | 115 #nav-sidebar .fixed |
118 { | 116 { |
119 top: 40px; | 117 top: 40px; |
(...skipping 13 matching lines...) Expand all Loading... | |
133 font-size: 16px; | 131 font-size: 16px; |
134 line-height: 1em; | 132 line-height: 1em; |
135 } | 133 } |
136 | 134 |
137 #page-title h1 | 135 #page-title h1 |
138 { | 136 { |
139 margin: 0px; | 137 margin: 0px; |
140 padding: 8px 0px 16px 0px; | 138 padding: 8px 0px 16px 0px; |
141 } | 139 } |
142 | 140 |
143 .flex-container | 141 .hbox |
144 { | 142 { |
145 display: flex; | 143 display: flex; |
146 flex-flow: row wrap; | 144 flex-direction: row; |
147 } | 145 } |
148 | 146 |
149 .flex-container > div | 147 .hbox > div |
saroyanm
2015/07/22 18:25:38
I do think this rule adding confusion, because thi
Thomas Greiner
2015/07/28 14:13:07
I'd rather avoid having implementation details suc
saroyanm
2015/07/28 17:21:42
Well it does bisect the row, but why each child di
Thomas Greiner
2015/07/28 18:19:22
I see your point. Hardcoding it to 400px is a bad
| |
150 { | 148 { |
151 width: 400px; | 149 flex: 1; |
152 } | 150 } |
153 | 151 |
154 .tabs li | 152 .tabs li |
155 { | 153 { |
156 cursor: pointer; | 154 cursor: pointer; |
157 display: flex; | 155 display: flex; |
158 } | 156 } |
159 | 157 |
160 .tabs li a | 158 .tabs li a |
161 { | 159 { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 #tab-contribute .icon | 255 #tab-contribute .icon |
258 { | 256 { |
259 background-position: -31px -18px; | 257 background-position: -31px -18px; |
260 } | 258 } |
261 | 259 |
262 #tab-content | 260 #tab-content |
263 { | 261 { |
264 background-color: #FFFFFF; | 262 background-color: #FFFFFF; |
265 border: 1px solid #CDCDCD; | 263 border: 1px solid #CDCDCD; |
266 border-radius: 8px; | 264 border-radius: 8px; |
265 box-sizing: border-box; | |
266 min-width: 960px; | |
267 padding: 0px 60px 40px 60px; | 267 padding: 0px 60px 40px 60px; |
268 width: 960px; | 268 width: 960px; |
saroyanm
2015/07/29 10:12:21
nit: It's doesn't make any sense to have specified
| |
269 } | 269 } |
270 | 270 |
271 #tab-content h1 | 271 #tab-content h1 |
272 { | 272 { |
273 border-bottom: 1px solid #CDCDCD; | 273 border-bottom: 1px solid #CDCDCD; |
274 margin: 0px; | 274 margin: 0px; |
275 padding: 40px 0px 16px 0px; | 275 padding: 40px 0px 16px 0px; |
276 } | 276 } |
277 | 277 |
278 #link-version | 278 #link-version |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
753 height: 10px; | 753 height: 10px; |
754 -webkit-margin-start: 6px; | 754 -webkit-margin-start: 6px; |
755 -moz-margin-start: 6px; | 755 -moz-margin-start: 6px; |
756 width: 10px; | 756 width: 10px; |
757 } | 757 } |
758 | 758 |
759 /* | 759 /* |
760 Tooltips | 760 Tooltips |
761 */ | 761 */ |
762 | 762 |
763 .tooltip, #block-element-explanation a | 763 .tooltip, #block-element-explanation a |
saroyanm
2015/07/22 18:25:39
Why don't just add class ".tooltip" to "#block-ele
Thomas Greiner
2015/07/28 14:13:07
Yes, especially since this part of the page has no
| |
764 { | 764 { |
765 border-bottom: dashed 1px; | 765 border-bottom: dashed 1px; |
766 color: #3A7BA6; | 766 color: #3A7BA6; |
767 cursor: default; | 767 cursor: default; |
768 font-size: 12px; | 768 font-size: 12px; |
769 height: 15px; | 769 height: 15px; |
770 line-height: 19px; | 770 line-height: 19px; |
771 margin: 0px 4px; | 771 margin: 0px 4px; |
772 position: relative; | 772 position: relative; |
773 text-decoration: none; | 773 text-decoration: none; |
(...skipping 14 matching lines...) Expand all Loading... | |
788 -webkit-padding-start: 0px; | 788 -webkit-padding-start: 0px; |
789 } | 789 } |
790 | 790 |
791 div[role="tooltip"] | 791 div[role="tooltip"] |
792 { | 792 { |
793 background-color: rgba(45, 45, 45, 0.95); | 793 background-color: rgba(45, 45, 45, 0.95); |
794 border-radius: 3px; | 794 border-radius: 3px; |
795 color: #FFF; | 795 color: #FFF; |
796 font-size: 14px; | 796 font-size: 14px; |
797 font-weight: 400; | 797 font-weight: 400; |
798 left: -20px; | |
798 line-height: 18px; | 799 line-height: 18px; |
799 margin-top: 14px; | 800 margin-top: 14px; |
800 max-width: 400px; | |
saroyanm
2015/07/22 18:25:38
Why we use both max and min width ?
Please use "w
Thomas Greiner
2015/07/28 14:13:07
Done.
| |
801 min-width: 400px; | |
802 opacity: 1; | 801 opacity: 1; |
803 padding: 20px; | 802 padding: 20px; |
804 position: absolute; | 803 position: absolute; |
805 transition: opacity 200ms ease-in-out 400ms; | 804 -webkit-transition: opacity 200ms ease-in-out 400ms, |
saroyanm
2015/07/22 18:25:39
In case we will need to support safari 6.0 we will
Thomas Greiner
2015/07/28 14:13:07
According to MDN, `transition-delay` is still pref
| |
805 visibility 0ms linear 400ms; | |
806 transition: opacity 200ms ease-in-out 400ms, | |
807 visibility 0ms linear 400ms; | |
808 visibility: visible; | |
809 width: 400px; | |
806 z-index: 1; | 810 z-index: 1; |
807 left: -20px; | |
808 } | 811 } |
809 | 812 |
810 html[dir="ltr"] div[role="tooltip"].flip-vertical, | 813 html[dir="ltr"] div[role="tooltip"].flip-vertical, |
811 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical) | 814 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical) |
812 { | 815 { |
813 left: inherit; | 816 left: inherit; |
814 right: -20px; | 817 right: -20px; |
815 } | 818 } |
816 | 819 |
817 .tooltip:not(:hover) > div[role="tooltip"], | 820 .tooltip:not(:hover) > div[role="tooltip"], |
818 div[role="tooltip"]:hover | 821 div[role="tooltip"]:hover |
saroyanm
2015/07/22 18:25:39
On small screens some tooltips overflow this eleme
Thomas Greiner
2015/07/28 14:13:07
Done. Nice catch!
| |
819 { | 822 { |
823 visibility: hidden; | |
820 opacity: 0; | 824 opacity: 0; |
825 -webkit-transition-delay: 0ms; | |
821 transition-delay: 0ms; | 826 transition-delay: 0ms; |
822 } | 827 } |
823 | 828 |
824 div[role="tooltip"]::before | 829 div[role="tooltip"]::before |
825 { | 830 { |
826 background-image: url(options-sprite.png); | 831 background-image: url(options-sprite.png); |
827 background-position: -8px -42px; | 832 background-position: -8px -42px; |
828 content: ""; | 833 content: ""; |
829 height: 6px; | 834 height: 6px; |
830 position: absolute; | 835 position: absolute; |
(...skipping 18 matching lines...) Expand all Loading... | |
849 width: 64px; | 854 width: 64px; |
850 -moz-margin-end: 10px; | 855 -moz-margin-end: 10px; |
851 -webkit-margin-end: 10px; | 856 -webkit-margin-end: 10px; |
852 } | 857 } |
853 | 858 |
854 html[dir="rtl"] div[role="tooltip"] img | 859 html[dir="rtl"] div[role="tooltip"] img |
855 { | 860 { |
856 float: right; | 861 float: right; |
857 } | 862 } |
858 | 863 |
859 div[role="tooltip"] > div:not(:first-of-type) | 864 div[role="tooltip"] p |
865 { | |
866 font-weight: 400; | |
867 margin: 0px; | |
868 } | |
869 | |
870 div[role="tooltip"] p:not(:first-of-type) | |
871 { | |
872 margin-top: 18px; | |
873 } | |
874 | |
875 div[role="tooltip"] .notes | |
860 { | 876 { |
861 border-top: 1px solid #717171; | 877 border-top: 1px solid #717171; |
862 font-size: 12px; | 878 font-size: 12px; |
863 font-weight: 300; | |
864 margin-top: 14px; | 879 margin-top: 14px; |
865 padding-top: 14px; | 880 padding-top: 14px; |
866 } | 881 } |
867 | 882 |
868 div[role="tooltip"] > div > div:not(:first-child) | 883 div[role="tooltip"] .notes p |
869 { | 884 { |
870 margin-top: 18px; | 885 font-weight: 300; |
871 } | 886 } |
872 | 887 |
873 /* | 888 /* |
874 Help tab content | 889 Help tab content |
875 */ | 890 */ |
876 | 891 |
877 #content-help | 892 #content-help |
878 { | 893 { |
879 counter-reset: section; | 894 counter-reset: section; |
880 } | 895 } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1063 -moz-padding-end: 10px; | 1078 -moz-padding-end: 10px; |
1064 -webkit-padding-start: 0px; | 1079 -webkit-padding-start: 0px; |
1065 -moz-padding-start: 0px; | 1080 -moz-padding-start: 0px; |
1066 } | 1081 } |
1067 | 1082 |
1068 #other-language .display | 1083 #other-language .display |
1069 { | 1084 { |
1070 -webkit-margin-start: 10px; | 1085 -webkit-margin-start: 10px; |
1071 -moz-margin-start: 10px; | 1086 -moz-margin-start: 10px; |
1072 } | 1087 } |
LEFT | RIGHT |