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, 2: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 .row-bisect
138 { 142 {
139 display: flex; 143 display: flex;
140 flex-flow: row wrap; 144 flex-flow: row wrap;
141 } 145 }
142 146
147 .row-bisect > div
148 {
149 width: 400px;
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 cursor: pointer; 309 cursor: pointer;
301 display: flex; 310 display: flex;
302 } 311 }
303 312
304 .table 313 .table
305 { 314 {
306 list-style: none; 315 list-style: none;
307 margin: 0px; 316 margin: 0px;
308 padding: 0px; 317 padding: 0px;
309 position: relative; 318 position: relative;
310 width: 400px;
311 } 319 }
312 320
313 .table li 321 .table li
314 { 322 {
315 display: flex; 323 display: flex;
316 padding: 14px 0px; 324 padding: 14px 0px;
317 -webkit-padding-start: 16px; 325 -webkit-padding-start: 16px;
318 -moz-padding-start: 16px; 326 -moz-padding-start: 16px;
319 } 327 }
320 328
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 547
540 #blocking-languages, 548 #blocking-languages,
541 #acceptable-ads 549 #acceptable-ads
542 { 550 {
543 -moz-padding-end: 40px; 551 -moz-padding-end: 40px;
544 -webkit-padding-end: 40px; 552 -webkit-padding-end: 40px;
545 } 553 }
546 554
547 #custom-wrapper 555 #custom-wrapper
548 { 556 {
549 width: 400px;
550 height: 290px; 557 height: 290px;
551 overflow: auto; 558 overflow: auto;
552 } 559 }
553 560
554 #custom-wrapper .table 561 #custom-wrapper .table
555 { 562 {
556 width: 100%; 563 width: 100%;
557 } 564 }
558 565
559 #whitelisting .controls 566 #whitelisting .controls
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 { 747 {
741 content: ""; 748 content: "";
742 background-position: -28px -85px; 749 background-position: -28px -85px;
743 cursor: pointer; 750 cursor: pointer;
744 height: 10px; 751 height: 10px;
745 -webkit-margin-start: 6px; 752 -webkit-margin-start: 6px;
746 -moz-margin-start: 6px; 753 -moz-margin-start: 6px;
747 width: 10px; 754 width: 10px;
748 } 755 }
749 756
757 /*
758 Tooltips
759 */
760
750 .tooltip, #block-element-explanation a 761 .tooltip, #block-element-explanation a
751 { 762 {
752 border-bottom: dotted 2px; 763 border-bottom: dashed 1px;
753 color: #3A7BA6; 764 color: #3A7BA6;
765 cursor: default;
754 font-size: 12px; 766 font-size: 12px;
767 height: 15px;
768 line-height: 19px;
769 margin: 0px 4px;
770 position: relative;
755 text-decoration: none; 771 text-decoration: none;
756 } 772 }
757 773
758 #content-advanced .tooltip 774 #content-advanced .tooltip
759 { 775 {
760 -moz-margin-start: 8px; 776 -moz-margin-start: 8px;
761 -webkit-margin-start: 8px; 777 -webkit-margin-start: 8px;
762 } 778 }
763 779
764 #block-element-explanation a 780 #block-element-explanation a
765 { 781 {
766 color: black; 782 color: black;
767 border-bottom-color: #3A7BA6; 783 border-bottom-color: #3A7BA6;
768 font-weight: 600; 784 font-weight: 600;
769 -moz-padding-start: 0px; 785 -moz-padding-start: 0px;
770 -webkit-padding-start: 0px; 786 -webkit-padding-start: 0px;
771 } 787 }
772 788
789 div[role="tooltip"]
790 {
791 background-color: rgba(45, 45, 45, 0.95);
792 border-radius: 3px;
793 color: #FFF;
794 font-size: 14px;
795 font-weight: 400;
796 left: -20px;
797 line-height: 18px;
798 margin-top: 14px;
799 opacity: 1;
800 padding: 20px;
801 position: absolute;
802 -webkit-transition: opacity 200ms ease-in-out 400ms,
803 visibility 0ms linear 400ms;
804 transition: opacity 200ms ease-in-out 400ms,
805 visibility 0ms linear 400ms;
806 visibility: visible;
807 width: 400px;
808 z-index: 1;
809 }
810
811 html[dir="ltr"] div[role="tooltip"].flip-vertical,
812 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)
813 {
814 left: inherit;
815 right: -20px;
816 }
817
818 .tooltip:not(:hover) > div[role="tooltip"],
819 div[role="tooltip"]:hover
saroyanm 2015/07/28 17:21:42 why we need "div[role="tooltip"]:hover" selector h
Thomas Greiner 2015/07/28 18:19:22 Because when you hover over the tooltip it should
saroyanm 2015/07/29 09:38:59 My mistake.
820 {
821 visibility: hidden;
822 opacity: 0;
823 -webkit-transition-delay: 0ms;
824 transition-delay: 0ms;
825 }
826
827 div[role="tooltip"]::before
828 {
829 background-image: url(options-sprite.png);
830 background-position: -8px -42px;
831 content: "";
832 height: 6px;
833 position: absolute;
834 top: -6px;
835 width: 14px;
836 left: 30px;
837 }
838
839 html[dir="ltr"] div[role="tooltip"].flip-vertical::before,
840 html[dir="rtl"] div[role="tooltip"]:not(.flip-vertical)::before
841 {
842 left: inherit;
843 right: 30px;
844 }
845
846 div[role="tooltip"] img
847 {
848 float: left;
849 height: 64px;
850 margin-top: -2px;
851 margin-bottom: 10px;
852 width: 64px;
853 -moz-margin-end: 10px;
854 -webkit-margin-end: 10px;
855 }
856
857 html[dir="rtl"] div[role="tooltip"] img
858 {
859 float: right;
860 }
861
862 div[role="tooltip"] p
863 {
864 font-weight: 400;
865 margin: 0px;
866 }
867
868 div[role="tooltip"] p:not(:first-of-type)
869 {
870 margin-top: 18px;
871 }
872
873 div[role="tooltip"] .notes
874 {
875 border-top: 1px solid #717171;
876 font-size: 12px;
877 margin-top: 14px;
878 padding-top: 14px;
879 }
880
881 div[role="tooltip"] .notes p
882 {
883 font-weight: 300;
884 }
885
773 /* 886 /*
774 Help tab content 887 Help tab content
775 */ 888 */
776 889
777 #content-help 890 #content-help
778 { 891 {
779 counter-reset: section; 892 counter-reset: section;
780 } 893 }
781 894
782 #content-help h1::before 895 #content-help h1::before
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 -moz-padding-end: 10px; 1076 -moz-padding-end: 10px;
964 -webkit-padding-start: 0px; 1077 -webkit-padding-start: 0px;
965 -moz-padding-start: 0px; 1078 -moz-padding-start: 0px;
966 } 1079 }
967 1080
968 #other-language .display 1081 #other-language .display
969 { 1082 {
970 -webkit-margin-start: 10px; 1083 -webkit-margin-start: 10px;
971 -moz-margin-start: 10px; 1084 -moz-margin-start: 10px;
972 } 1085 }
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