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

Side by Side Diff: skin/options.css

Issue 29322581: Issue 2356 - Implemented tooltip functionality (Closed)
Patch Set: Created July 28, 2015, 6:10 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 | « options.html ('k') | skin/options-sprite.png » ('j') | 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-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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 .option-name 95 .option-name
96 { 96 {
97 display: flex; 97 display: flex;
98 margin-bottom: 16px;
99 margin-top: 24px;
98 } 100 }
99 101
100 .option-name > * 102 .option-name > :first-child
101 { 103 {
102 -moz-margin-end: 6px; 104 flex: 1;
103 -webkit-margin-end: 6px; 105 overflow: hidden;
106 text-overflow: ellipsis;
107 white-space: nowrap;
104 } 108 }
105 109
106 #nav-sidebar 110 #nav-sidebar
107 { 111 {
108 min-width: 198px; 112 min-width: 198px;
109 } 113 }
110 114
111 #nav-sidebar .fixed 115 #nav-sidebar .fixed
112 { 116 {
113 top: 40px; 117 top: 40px;
(...skipping 13 matching lines...) Expand all
127 font-size: 16px; 131 font-size: 16px;
128 line-height: 1em; 132 line-height: 1em;
129 } 133 }
130 134
131 #page-title h1 135 #page-title h1
132 { 136 {
133 margin: 0px; 137 margin: 0px;
134 padding: 8px 0px 16px 0px; 138 padding: 8px 0px 16px 0px;
135 } 139 }
136 140
137 .flex-container 141 .hbox
138 { 142 {
139 display: flex; 143 display: flex;
140 flex-flow: row wrap; 144 flex-flow: row wrap;
141 } 145 }
142 146
147 .hbox > div
148 {
149 flex: 1;
saroyanm 2015/07/29 09:38:59 In this case "flex-wrap: wrap" will have no effect
Thomas Greiner 2015/07/29 09:59:52 There's no wrapping necessary in the current versi
150 }
151
143 .tabs li 152 .tabs li
144 { 153 {
145 cursor: pointer; 154 cursor: pointer;
146 display: flex; 155 display: flex;
147 } 156 }
148 157
149 .tabs li a 158 .tabs li a
150 { 159 {
151 flex: 1; 160 flex: 1;
152 color: inherit; 161 color: inherit;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 #tab-contribute .icon 255 #tab-contribute .icon
247 { 256 {
248 background-position: -31px -18px; 257 background-position: -31px -18px;
249 } 258 }
250 259
251 #tab-content 260 #tab-content
252 { 261 {
253 background-color: #FFFFFF; 262 background-color: #FFFFFF;
254 border: 1px solid #CDCDCD; 263 border: 1px solid #CDCDCD;
255 border-radius: 8px; 264 border-radius: 8px;
265 box-sizing: border-box;
256 padding: 0px 60px 40px 60px; 266 padding: 0px 60px 40px 60px;
257 width: 960px; 267 width: 960px;
258 } 268 }
259 269
260 #tab-content h1 270 #tab-content h1
261 { 271 {
262 border-bottom: 1px solid #CDCDCD; 272 border-bottom: 1px solid #CDCDCD;
263 margin: 0px; 273 margin: 0px;
264 padding: 40px 0px 16px 0px; 274 padding: 40px 0px 16px 0px;
265 } 275 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 cursor: pointer; 310 cursor: pointer;
301 display: flex; 311 display: flex;
302 } 312 }
303 313
304 .table 314 .table
305 { 315 {
306 list-style: none; 316 list-style: none;
307 margin: 0px; 317 margin: 0px;
308 padding: 0px; 318 padding: 0px;
309 position: relative; 319 position: relative;
310 width: 400px;
311 } 320 }
312 321
313 .table li 322 .table li
314 { 323 {
315 display: flex; 324 display: flex;
316 padding: 14px 0px; 325 padding: 14px 0px;
317 -webkit-padding-start: 16px; 326 -webkit-padding-start: 16px;
318 -moz-padding-start: 16px; 327 -moz-padding-start: 16px;
319 } 328 }
320 329
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 548
540 #blocking-languages, 549 #blocking-languages,
541 #acceptable-ads 550 #acceptable-ads
542 { 551 {
543 -moz-padding-end: 40px; 552 -moz-padding-end: 40px;
544 -webkit-padding-end: 40px; 553 -webkit-padding-end: 40px;
545 } 554 }
546 555
547 #custom-wrapper 556 #custom-wrapper
548 { 557 {
549 width: 400px;
550 height: 290px; 558 height: 290px;
551 overflow: auto; 559 overflow: auto;
552 } 560 }
553 561
554 #custom-wrapper .table 562 #custom-wrapper .table
555 { 563 {
556 width: 100%; 564 width: 100%;
557 } 565 }
558 566
559 #whitelisting .controls 567 #whitelisting .controls
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 { 748 {
741 content: ""; 749 content: "";
742 background-position: -28px -85px; 750 background-position: -28px -85px;
743 cursor: pointer; 751 cursor: pointer;
744 height: 10px; 752 height: 10px;
745 -webkit-margin-start: 6px; 753 -webkit-margin-start: 6px;
746 -moz-margin-start: 6px; 754 -moz-margin-start: 6px;
747 width: 10px; 755 width: 10px;
748 } 756 }
749 757
758 /*
759 Tooltips
760 */
761
750 .tooltip, #block-element-explanation a 762 .tooltip, #block-element-explanation a
751 { 763 {
752 border-bottom: dotted 2px; 764 border-bottom: dashed 1px;
753 color: #3A7BA6; 765 color: #3A7BA6;
766 cursor: default;
754 font-size: 12px; 767 font-size: 12px;
768 height: 15px;
769 line-height: 19px;
770 margin: 0px 4px;
771 position: relative;
755 text-decoration: none; 772 text-decoration: none;
756 } 773 }
757 774
758 #content-advanced .tooltip 775 #content-advanced .tooltip
759 { 776 {
760 -moz-margin-start: 8px; 777 -moz-margin-start: 8px;
761 -webkit-margin-start: 8px; 778 -webkit-margin-start: 8px;
762 } 779 }
763 780
764 #block-element-explanation a 781 #block-element-explanation a
765 { 782 {
766 color: black; 783 color: black;
767 border-bottom-color: #3A7BA6; 784 border-bottom-color: #3A7BA6;
768 font-weight: 600; 785 font-weight: 600;
769 -moz-padding-start: 0px; 786 -moz-padding-start: 0px;
770 -webkit-padding-start: 0px; 787 -webkit-padding-start: 0px;
771 } 788 }
772 789
790 div[role="tooltip"]
791 {
792 background-color: rgba(45, 45, 45, 0.95);
793 border-radius: 3px;
794 color: #FFF;
795 font-size: 14px;
796 font-weight: 400;
797 left: -20px;
798 line-height: 18px;
799 margin-top: 14px;
800 opacity: 1;
801 padding: 20px;
802 position: absolute;
803 -webkit-transition: opacity 200ms ease-in-out 400ms,
804 visibility 0ms linear 400ms;
805 transition: opacity 200ms ease-in-out 400ms,
806 visibility 0ms linear 400ms;
807 visibility: visible;
808 width: 400px;
809 z-index: 1;
810 }
811
812 html[dir="ltr"] div[role="tooltip"].flip-vertical,
813 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)
814 {
815 left: inherit;
816 right: -20px;
817 }
818
819 .tooltip:not(:hover) > div[role="tooltip"],
820 div[role="tooltip"]:hover
821 {
822 visibility: hidden;
823 opacity: 0;
824 -webkit-transition-delay: 0ms;
825 transition-delay: 0ms;
826 }
827
828 div[role="tooltip"]::before
829 {
830 background-image: url(options-sprite.png);
831 background-position: -8px -42px;
832 content: "";
833 height: 6px;
834 position: absolute;
835 top: -6px;
836 width: 14px;
837 left: 30px;
838 }
839
840 html[dir="ltr"] div[role="tooltip"].flip-vertical::before,
841 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before
842 {
843 left: inherit;
844 right: 30px;
845 }
846
847 div[role="tooltip"] img
848 {
849 float: left;
850 height: 64px;
851 margin-top: -2px;
852 margin-bottom: 10px;
853 width: 64px;
854 -moz-margin-end: 10px;
855 -webkit-margin-end: 10px;
856 }
857
858 html[dir="rtl"] div[role="tooltip"] img
859 {
860 float: right;
861 }
862
863 div[role="tooltip"] p
864 {
865 font-weight: 400;
866 margin: 0px;
867 }
868
869 div[role="tooltip"] p:not(:first-of-type)
870 {
871 margin-top: 18px;
872 }
873
874 div[role="tooltip"] .notes
875 {
876 border-top: 1px solid #717171;
877 font-size: 12px;
878 margin-top: 14px;
879 padding-top: 14px;
880 }
881
882 div[role="tooltip"] .notes p
883 {
884 font-weight: 300;
885 }
886
773 /* 887 /*
774 Help tab content 888 Help tab content
775 */ 889 */
776 890
777 #content-help 891 #content-help
778 { 892 {
779 counter-reset: section; 893 counter-reset: section;
780 } 894 }
781 895
782 #content-help h1::before 896 #content-help h1::before
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 -moz-padding-end: 10px; 1077 -moz-padding-end: 10px;
964 -webkit-padding-start: 0px; 1078 -webkit-padding-start: 0px;
965 -moz-padding-start: 0px; 1079 -moz-padding-start: 0px;
966 } 1080 }
967 1081
968 #other-language .display 1082 #other-language .display
969 { 1083 {
970 -webkit-margin-start: 10px; 1084 -webkit-margin-start: 10px;
971 -moz-margin-start: 10px; 1085 -moz-margin-start: 10px;
972 } 1086 }
OLDNEW
« no previous file with comments | « options.html ('k') | skin/options-sprite.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld