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

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

Issue 29683678: Issue 5542: Implement tooltips for new options page (Closed)
Patch Set: Created Jan. 29, 2018, 4:21 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 #sidebar .fixed 653 #sidebar .fixed
654 { 654 {
655 position: fixed; 655 position: fixed;
656 } 656 }
657 657
658 #sidebar footer 658 #sidebar footer
659 { 659 {
660 bottom: 0px; 660 bottom: 0px;
661 position: absolute; 661 position: absolute;
662 } 662 }
663
663 } 664 }
664 665
665 /* 666 /*
666 Main content 667 Main content
667 */ 668 */
668 669
669 body[data-tab|="general"] #content-general, 670 body[data-tab|="general"] #content-general,
670 body[data-tab|="advanced"] #content-advanced, 671 body[data-tab|="advanced"] #content-advanced,
671 body[data-tab|="whitelist"] #content-whitelist, 672 body[data-tab|="whitelist"] #content-whitelist,
672 body[data-tab|="help"] #content-help 673 body[data-tab|="help"] #content-help
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 1177
1177 /* 1178 /*
1178 Context menu 1179 Context menu
1179 */ 1180 */
1180 1181
1181 li [role="menubar"] 1182 li [role="menubar"]
1182 { 1183 {
1183 position: relative; 1184 position: relative;
1184 } 1185 }
1185 1186
1186 [role="tooltip"] 1187 [role="tooltip"],
1188 [role="tooltip"]:hover
1187 { 1189 {
1188 right: -0.8rem; 1190 right: -0.8rem;
1189 margin-top: 0.8rem; 1191 margin-top: 0.8rem;
1190 opacity: 1;
1191 padding: 0.2rem 1rem; 1192 padding: 0.2rem 1rem;
1192 position: absolute; 1193 position: absolute;
1193 -webkit-transition: opacity 200ms ease-in-out 400ms, 1194 -webkit-transition: opacity 200ms ease-in-out 0ms,
1194 visibility 0ms linear 400ms; 1195 visibility 0ms linear 0ms;
1195 transition: opacity 200ms ease-in-out 400ms, 1196 transition: opacity 200ms ease-in-out 0ms,
1196 visibility 0ms linear 400ms; 1197 visibility 0ms linear 0ms;
1197 visibility: visible; 1198 visibility: hidden;
1199 opacity: 0;
1198 width: 15rem; 1200 width: 15rem;
1199 z-index: 1; 1201 z-index: 1;
1200 } 1202 }
1201 1203
1202 html[dir="rtl"] [role="tooltip"] 1204 html[dir="rtl"] [role="tooltip"]
1203 { 1205 {
1204 right: auto; 1206 right: auto;
1205 left: -0.8rem; 1207 left: -0.8rem;
1206 } 1208 }
1207 1209
1208 [role="tooltip"], 1210 [role="tooltip"],
1209 .context-menu .content 1211 .context-menu .content
1210 { 1212 {
1211 border: 1px solid #077CA6; 1213 border: 1px solid #077CA6;
1212 border-radius: 3px; 1214 border-radius: 3px;
1213 background-color: #FFFFFF; 1215 background-color: #FFFFFF;
1214 } 1216 }
1215 1217
1218 .tooltip:focus > [role="tooltip"],
1219 .tooltip:hover > [role="tooltip"]
1220 {
1221 visibility: visible;
1222 opacity: 1;
1223 }
1216 1224
1217 .tooltip:not(:hover) > [role="tooltip"], 1225 .tooltip:hover > [role="tooltip"]
1218 [role="tooltip"]:hover
1219 { 1226 {
1220 visibility: hidden; 1227 -webkit-transition-delay: 400ms;
1221 opacity: 0; 1228 transition-delay: 400ms;
1222 -webkit-transition-delay: 0ms;
1223 transition-delay: 0ms;
1224 } 1229 }
1225 1230
1226 .context-menu 1231 .context-menu
1227 { 1232 {
1228 position: absolute; 1233 position: absolute;
1229 right: 2.5rem; 1234 right: 2.5rem;
1230 top: -2rem; 1235 top: -2rem;
1231 z-index: 1; 1236 z-index: 1;
1232 visibility: hidden; 1237 visibility: hidden;
1233 } 1238 }
(...skipping 10 matching lines...) Expand all
1244 position: relative; 1249 position: relative;
1245 cursor: default; 1250 cursor: default;
1246 } 1251 }
1247 1252
1248 li.show-context-menu .context-menu 1253 li.show-context-menu .context-menu
1249 { 1254 {
1250 visibility: visible; 1255 visibility: visible;
1251 } 1256 }
1252 1257
1253 [role="tooltip"]::before, 1258 [role="tooltip"]::before,
1259 [role="tooltip"]::after,
1254 .context-menu::before 1260 .context-menu::before
1255 { 1261 {
1256 content: ""; 1262 content: "";
1257 width: 0rem; 1263 width: 0rem;
1258 height: 0rem; 1264 height: 0rem;
1259 position: absolute; 1265 position: absolute;
1260 } 1266 }
1261 1267
1262 [role="tooltip"]::before 1268 [role="tooltip"]::before
1263 { 1269 {
1264 border-left: 10px solid transparent; 1270 border-left: 10px solid transparent;
1265 border-right: 10px solid transparent; 1271 border-right: 10px solid transparent;
1266 border-bottom: 10px solid #077CA6; 1272 border-bottom: 10px solid #077CA6;
1267 top: -10px; 1273 top: -10px;
1268 right: 15px; 1274 right: 15px;
1269 } 1275 }
1270 1276
1271 html[dir="rtl"] [role="tooltip"]::before 1277 [role="tooltip"]::after
1278 {
1279 border-left: 10px solid transparent;
1280 border-right: 10px solid transparent;
1281 border-bottom: 10px solid #FFFFFF;
1282 top: -9px;
1283 right: 15px;
1284 }
1285
1286 html[dir="rtl"] [role="tooltip"]::before,
1287 html[dir="rtl"] [role="tooltip"]::after
1272 { 1288 {
1273 right: auto; 1289 right: auto;
1274 left: 15px; 1290 left: 15px;
1275 } 1291 }
1276 1292
1277 .context-menu::before 1293 .context-menu::before
1278 { 1294 {
1279 border-left: 10px solid #077CA6; 1295 border-left: 10px solid #077CA6;
1280 border-top: 10px solid transparent; 1296 border-top: 10px solid transparent;
1281 border-bottom: 10px solid transparent; 1297 border-bottom: 10px solid transparent;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 font-size: 1rem; 1527 font-size: 1rem;
1512 color: #077CA6; 1528 color: #077CA6;
1513 background-color: #E1F2FA; 1529 background-color: #E1F2FA;
1514 } 1530 }
1515 1531
1516 #notification strong 1532 #notification strong
1517 { 1533 {
1518 flex: 1; 1534 flex: 1;
1519 text-align: center; 1535 text-align: center;
1520 } 1536 }
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