| OLD | NEW |
| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 display: block; | 137 display: block; |
| 138 padding: 0.6rem 0.8rem; | 138 padding: 0.6rem 0.8rem; |
| 139 background-color: transparent; | 139 background-color: transparent; |
| 140 font-size: 1rem; | 140 font-size: 1rem; |
| 141 font-weight: 700; | 141 font-weight: 700; |
| 142 text-decoration: none; | 142 text-decoration: none; |
| 143 text-transform: uppercase; | 143 text-transform: uppercase; |
| 144 cursor: pointer; | 144 cursor: pointer; |
| 145 } | 145 } |
| 146 | 146 |
| 147 button.primary, | 147 /* Ignore .icon to avoid overriding "specific" (primary, secondary) styles */ |
| 148 .button.primary | 148 button.primary:not(.icon), |
| 149 .button.primary:not(.icon) |
| 149 { | 150 { |
| 150 border: 0px; | 151 border: 0px; |
| 151 color: #FFF; | 152 color: #FFF; |
| 152 background-color: #077CA6; | 153 background-color: #077CA6; |
| 153 } | 154 } |
| 154 | 155 |
| 155 button.primary:not([disabled]):hover, | 156 button.primary:not([disabled]):not(.icon):hover, |
| 156 .button.primary:hover | 157 .button.primary:not(.icon):hover |
| 157 { | 158 { |
| 158 box-shadow: inset 0 0 0 3px #005D80; | 159 box-shadow: inset 0 0 0 3px #005D80; |
| 159 } | 160 } |
| 160 | 161 |
| 161 button.primary[disabled] | 162 button.primary[disabled]:not(.icon) |
| 162 { | 163 { |
| 163 background-color: #5CBCE1; | 164 background-color: #5CBCE1; |
| 164 } | 165 } |
| 165 | 166 |
| 166 button.secondary, | 167 button.secondary:not(.icon), |
| 167 .button.secondary | 168 .button.secondary:not(.icon) |
| 168 { | 169 { |
| 169 border: 2px solid #077CA6; | 170 border: 2px solid #077CA6; |
| 170 color: #077CA6; | 171 color: #077CA6; |
| 171 } | 172 } |
| 172 | 173 |
| 173 button.secondary:hover, | 174 button.secondary:not(.icon):hover, |
| 174 .button.secondary:hover | 175 .button.secondary:not(.icon):hover |
| 175 { | 176 { |
| 176 box-shadow: inset 0 0 0 1px #077CA6; | 177 box-shadow: inset 0 0 0 1px #077CA6; |
| 177 } | 178 } |
| 178 | 179 |
| 179 button[role="checkbox"] | |
| 180 { | |
| 181 width: 1.2rem; | |
| 182 height: 1.2rem; | |
| 183 padding: 0px; | |
| 184 border: 0px; | |
| 185 background-color: transparent; | |
| 186 } | |
| 187 | |
| 188 button[role="checkbox"]:not(.toggle) | |
| 189 { | |
| 190 /* Using ?query as a workaround to chromium bug #643716 */ | |
| 191 background-image: url(icons/checkbox.svg?off#off); | |
| 192 display: inline-block; | |
| 193 } | |
| 194 | |
| 195 button[role="checkbox"][aria-checked="true"]:not(.toggle) | |
| 196 { | |
| 197 background-image: url(icons/checkbox.svg?on#on); | |
| 198 } | |
| 199 | |
| 200 button[role="checkbox"][disabled], | |
| 201 button[role="checkbox"][aria-disabled="true"] | |
| 202 { | |
| 203 border-radius: 2px; | |
| 204 background-color: #ccc; | |
| 205 } | |
| 206 | |
| 207 button[role="checkbox"].toggle | |
| 208 { | |
| 209 background-image: url(icons/toggle.svg?on#on); | |
| 210 } | |
| 211 | |
| 212 button[role="checkbox"][aria-checked="false"].toggle | |
| 213 { | |
| 214 background-image: url(icons/toggle.svg?off#off); | |
| 215 } | |
| 216 | |
| 217 button[role="checkbox"][aria-checked="true"].toggle | |
| 218 { | |
| 219 background-image: url(icons/toggle.svg?on#on); | |
| 220 } | |
| 221 | |
| 222 button[role="checkbox"].toggle | |
| 223 { | |
| 224 background-position: initial; | |
| 225 width: 1.9rem; | |
| 226 height: 1rem; | |
| 227 vertical-align: middle; | |
| 228 } | |
| 229 | |
| 230 button[role="checkbox"][disabled].toggle | |
| 231 { | |
| 232 background: none; | |
| 233 } | |
| 234 | |
| 235 button.delete::before | |
| 236 { | |
| 237 background-image: url(icons/trash.svg?default#default); | |
| 238 } | |
| 239 | |
| 240 button.delete:hover::before | |
| 241 { | |
| 242 background-image: url(icons/trash.svg?hover#hover); | |
| 243 } | |
| 244 | |
| 245 button.gear::before | |
| 246 { | |
| 247 background-image: url(icons/gear.svg?default#default); | |
| 248 } | |
| 249 | |
| 250 button.gear:hover::before | |
| 251 { | |
| 252 background-image: url(icons/gear.svg?hover#hover); | |
| 253 } | |
| 254 | |
| 255 button.gear, | |
| 256 button.delete | |
| 257 { | |
| 258 border: 0px; | |
| 259 padding: 0px; | |
| 260 background-color: transparent; | |
| 261 } | |
| 262 | |
| 263 button.gear::before, | |
| 264 button.delete::before | |
| 265 { | |
| 266 content: ""; | |
| 267 display: block; | |
| 268 height: 1rem; | |
| 269 width: 1rem; | |
| 270 border: 0.2rem solid transparent; | |
| 271 background-repeat: no-repeat; | |
| 272 background-position: center; | |
| 273 } | |
| 274 | |
| 275 button.link, | 180 button.link, |
| 276 button.list | 181 button.list |
| 277 { | 182 { |
| 278 color: #077CA6; | 183 color: #077CA6; |
| 279 } | 184 } |
| 280 | 185 |
| 281 button.link | 186 button.link |
| 282 { | 187 { |
| 283 border: 0px; | 188 border: 0px; |
| 284 background-color: transparent; | 189 background-color: transparent; |
| 285 font-weight: 400; | 190 font-weight: 400; |
| 286 font-family: inherit; | 191 font-family: inherit; |
| 287 text-transform: none; | 192 text-transform: none; |
| 288 text-decoration: underline; | 193 text-decoration: underline; |
| 289 padding: 0.2rem; | 194 padding: 0.2rem; |
| 290 } | 195 } |
| 291 | 196 |
| 292 button.link:hover | 197 button.link:hover |
| 293 { | 198 { |
| 294 color: #5CBCE1; | 199 color: #5CBCE1; |
| 295 } | 200 } |
| 296 | 201 |
| 297 button.list | 202 button.list |
| 298 { | 203 { |
| 299 border-style: solid;; | 204 border-style: solid; |
| 300 border-color: #CDCDCD; | 205 border-color: #CDCDCD; |
| 301 border-width: 1px; | 206 border-width: 1px; |
| 302 width: 100%; | 207 width: 100%; |
| 303 background-color: #E1F2FA; | 208 background-color: #E1F2FA; |
| 304 text-align: initial; | 209 text-align: initial; |
| 305 } | 210 } |
| 306 | 211 |
| 307 button.list:hover | 212 button.list:hover |
| 308 { | 213 { |
| 309 box-shadow: inset 0 0 0 3px #077CA6; | 214 box-shadow: inset 0 0 0 3px #077CA6; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 325 } | 230 } |
| 326 | 231 |
| 327 .side-controls.wrap button | 232 .side-controls.wrap button |
| 328 { | 233 { |
| 329 margin: 0.6rem 0rem; | 234 margin: 0.6rem 0rem; |
| 330 -moz-margin-start: auto; | 235 -moz-margin-start: auto; |
| 331 -webkit-margin-start: auto; | 236 -webkit-margin-start: auto; |
| 332 } | 237 } |
| 333 | 238 |
| 334 /* | 239 /* |
| 240 icons |
| 241 */ |
| 242 |
| 243 .icon |
| 244 { |
| 245 border: 0px; |
| 246 padding: 0px; |
| 247 background-color: transparent; |
| 248 } |
| 249 |
| 250 .icon:hover |
| 251 { |
| 252 box-shadow: none; |
| 253 } |
| 254 |
| 255 .icon::before |
| 256 { |
| 257 content: ""; |
| 258 display: block; |
| 259 border: 0.2rem solid transparent; |
| 260 background-repeat: no-repeat; |
| 261 } |
| 262 |
| 263 button[role="checkbox"].icon::before |
| 264 { |
| 265 width: 1.2rem; |
| 266 height: 1.2rem; |
| 267 padding: 0px; |
| 268 } |
| 269 |
| 270 button[role="checkbox"][disabled].icon:not(.toggle)::before, |
| 271 button[role="checkbox"][aria-disabled="true"].icon:not(.toggle)::before |
| 272 { |
| 273 border: 0rem; |
| 274 margin: 0.2rem; |
| 275 border-radius: 2px; |
| 276 background-color: #ccc; |
| 277 } |
| 278 |
| 279 button[role="checkbox"].icon:not(.toggle)::before |
| 280 { |
| 281 /* Using ?query as a workaround to chromium bug #643716 */ |
| 282 background-image: url(icons/checkbox.svg?off#off); |
| 283 } |
| 284 |
| 285 button[role="checkbox"][aria-checked="true"].icon:not(.toggle)::before |
| 286 { |
| 287 background-image: url(icons/checkbox.svg?on#on); |
| 288 } |
| 289 |
| 290 button[role="checkbox"].icon.toggle::before |
| 291 { |
| 292 background-image: url(icons/toggle.svg?on#on); |
| 293 } |
| 294 |
| 295 button[role="checkbox"][aria-checked="false"].icon.toggle::before |
| 296 { |
| 297 background-image: url(icons/toggle.svg?off#off); |
| 298 } |
| 299 |
| 300 button[role="checkbox"].icon.toggle::before |
| 301 { |
| 302 width: 1.9rem; |
| 303 height: 1rem; |
| 304 } |
| 305 |
| 306 button[role="checkbox"][disabled].icon.toggle::before |
| 307 { |
| 308 background: none; |
| 309 } |
| 310 |
| 311 .icon.delete::before |
| 312 { |
| 313 background-image: url(icons/trash.svg?default#default); |
| 314 } |
| 315 |
| 316 .icon.delete:hover::before |
| 317 { |
| 318 background-image: url(icons/trash.svg?hover#hover); |
| 319 } |
| 320 |
| 321 .icon.gear::before |
| 322 { |
| 323 background-image: url(icons/gear.svg?default#default); |
| 324 } |
| 325 |
| 326 .icon.gear:hover::before |
| 327 { |
| 328 background-image: url(icons/gear.svg?hover#hover); |
| 329 } |
| 330 |
| 331 .icon.gear::before, |
| 332 .icon.delete::before |
| 333 { |
| 334 height: 1rem; |
| 335 width: 1rem; |
| 336 } |
| 337 |
| 338 [data-validation] .floating-input input:focus:invalid ~ .icon.attention::before |
| 339 { |
| 340 background-image: url(icons/attention.svg); |
| 341 } |
| 342 |
| 343 [data-validation] .floating-input input:valid ~ .icon.attention::before |
| 344 { |
| 345 top: 0.5rem; |
| 346 background-image: url(icons/checkmark.svg?approved#approved); |
| 347 } |
| 348 |
| 349 .context-menu .icon.update-subscription::before |
| 350 { |
| 351 background-image: url(icons/reload.svg); |
| 352 } |
| 353 |
| 354 .context-menu .icon.website::before |
| 355 { |
| 356 background-image: url(icons/globe.svg); |
| 357 } |
| 358 |
| 359 .context-menu .icon.source::before |
| 360 { |
| 361 background-image: url(icons/code.svg); |
| 362 } |
| 363 |
| 364 .context-menu .icon.delete::before |
| 365 { |
| 366 background-image: url(icons/trash.svg?default#default); |
| 367 } |
| 368 |
| 369 .close.icon::before |
| 370 { |
| 371 height: 1rem; |
| 372 width: 1rem; |
| 373 } |
| 374 |
| 375 .icon.close.primary::before |
| 376 { |
| 377 background-image: url(icons/delete.svg?primary#primary); |
| 378 } |
| 379 |
| 380 .icon.close.primary:hover::before |
| 381 { |
| 382 background-image: url(icons/delete.svg?primary-hover#primary-hover); |
| 383 } |
| 384 |
| 385 .icon.close.secondary::before |
| 386 { |
| 387 background-image: url(icons/delete.svg?secondary#secondary); |
| 388 } |
| 389 |
| 390 .icon.close.tertiary::before |
| 391 { |
| 392 background-image: url(icons/delete.svg?tertiary#tertiary); |
| 393 } |
| 394 |
| 395 .icon.close.secondary:hover::before |
| 396 { |
| 397 background-image: url(icons/delete.svg?secondary-hover#secondary-hover); |
| 398 } |
| 399 |
| 400 .icon.close.tertiary:hover::before |
| 401 { |
| 402 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover); |
| 403 } |
| 404 |
| 405 .tooltip::before |
| 406 { |
| 407 width: 1.1rem; |
| 408 height: 1.1rem; |
| 409 } |
| 410 |
| 411 .icon.tooltip::before |
| 412 { |
| 413 background-image: url(icons/tooltip.svg); |
| 414 } |
| 415 |
| 416 #dialog .table.list li button.icon::before |
| 417 { |
| 418 width: 1.3rem; |
| 419 height: 1.3rem; |
| 420 margin: 0rem; |
| 421 border: 0rem; |
| 422 background-image: none; |
| 423 } |
| 424 |
| 425 #dialog .table.list li button[aria-checked="true"].icon::before |
| 426 { |
| 427 background-image: url(icons/checkmark.svg?default#default); |
| 428 } |
| 429 |
| 430 #social ul li .icon::before |
| 431 { |
| 432 margin: 0em auto; |
| 433 width: 2.5rem; |
| 434 height: 2.5rem; |
| 435 } |
| 436 |
| 437 .icon#twitter::before |
| 438 { |
| 439 background-image: url("social/twitter.svg"); |
| 440 } |
| 441 |
| 442 .icon#facebook::before |
| 443 { |
| 444 background-image: url("social/facebook.svg"); |
| 445 } |
| 446 |
| 447 .icon#google-plus::before |
| 448 { |
| 449 background-image: url("social/googleplus.svg"); |
| 450 } |
| 451 |
| 452 /* |
| 335 Forms | 453 Forms |
| 336 */ | 454 */ |
| 337 | 455 |
| 338 .floating-input | 456 .floating-input |
| 339 { | 457 { |
| 340 position: relative; | 458 position: relative; |
| 341 padding-top: 0.7rem; | 459 padding-top: 0.7rem; |
| 342 margin: 1.8rem 0rem 0.5rem 0rem; | 460 margin: 1.8rem 0rem 0.5rem 0rem; |
| 343 } | 461 } |
| 344 | 462 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } | 496 } |
| 379 | 497 |
| 380 [data-validation] .floating-input input:focus:invalid | 498 [data-validation] .floating-input input:focus:invalid |
| 381 { | 499 { |
| 382 border-color: #C11D27; | 500 border-color: #C11D27; |
| 383 } | 501 } |
| 384 | 502 |
| 385 [data-validation] .floating-input input:focus:invalid ~ .attention::before, | 503 [data-validation] .floating-input input:focus:invalid ~ .attention::before, |
| 386 [data-validation] .floating-input input:valid ~ .attention::before | 504 [data-validation] .floating-input input:valid ~ .attention::before |
| 387 { | 505 { |
| 388 content: ""; | |
| 389 position: absolute; | 506 position: absolute; |
| 390 display: block; | 507 margin: 0.3rem; |
| 391 margin: 0.5rem; | |
| 392 height: 1.5rem; | 508 height: 1.5rem; |
| 393 width: 1.5rem; | 509 width: 1.5rem; |
| 394 border: 0rem; | |
| 395 top: 0.3rem; | 510 top: 0.3rem; |
| 396 right: 0rem; | 511 right: 0rem; |
| 397 } | 512 } |
| 398 | 513 |
| 399 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti
on::before, | 514 html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attenti
on::before, |
| 400 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo
re | 515 html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::befo
re |
| 401 { | 516 { |
| 402 left: 0rem; | 517 left: 0rem; |
| 403 right: auto; | 518 right: auto; |
| 404 } | 519 } |
| 405 | 520 |
| 406 [data-validation] .floating-input input:focus:invalid ~ .attention::before | |
| 407 { | |
| 408 background-image: url(icons/attention.svg); | |
| 409 } | |
| 410 | |
| 411 [data-validation] .floating-input input:valid ~ .attention::before | |
| 412 { | |
| 413 top: 0.5rem; | |
| 414 background-image: url(icons/checkmark.svg?approved#approved); | |
| 415 } | |
| 416 | |
| 417 [data-validation] .floating-input input ~ .error-msg | 521 [data-validation] .floating-input input ~ .error-msg |
| 418 { | 522 { |
| 419 margin-top: 0.5rem; | 523 margin-top: 0.5rem; |
| 420 color: #C11D27; | 524 color: #C11D27; |
| 421 display: block; | 525 display: block; |
| 422 visibility: hidden; | 526 visibility: hidden; |
| 423 } | 527 } |
| 424 | 528 |
| 425 [data-validation] .floating-input input:focus:invalid ~ .error-msg | 529 [data-validation] .floating-input input:focus:invalid ~ .error-msg |
| 426 { | 530 { |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 | 791 |
| 688 html[dir="rtl"] #acceptable-ads ul | 792 html[dir="rtl"] #acceptable-ads ul |
| 689 { | 793 { |
| 690 padding-left: 0rem; | 794 padding-left: 0rem; |
| 691 padding-right: 2.2rem; | 795 padding-right: 2.2rem; |
| 692 } | 796 } |
| 693 | 797 |
| 694 #acceptable-ads ul button | 798 #acceptable-ads ul button |
| 695 { | 799 { |
| 696 position: absolute; | 800 position: absolute; |
| 697 margin-top: 0.3rem; | |
| 698 left: 0rem; | 801 left: 0rem; |
| 699 } | 802 } |
| 700 | 803 |
| 701 html[dir="rtl"] button | 804 html[dir="rtl"] button |
| 702 { | 805 { |
| 703 left: auto; | 806 left: auto; |
| 704 right: 0rem; | 807 right: 0rem; |
| 705 } | 808 } |
| 706 | 809 |
| 707 #acceptable-ads label | 810 #acceptable-ads label |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 } | 933 } |
| 831 | 934 |
| 832 .th | 935 .th |
| 833 { | 936 { |
| 834 display: flex; | 937 display: flex; |
| 835 } | 938 } |
| 836 | 939 |
| 837 .col5 > * | 940 .col5 > * |
| 838 { | 941 { |
| 839 display: inline-block; | 942 display: inline-block; |
| 943 vertical-align: middle; |
| 840 } | 944 } |
| 841 | 945 |
| 842 .cols .col5 | 946 .cols .col5 |
| 843 { | 947 { |
| 844 margin: 0rem 1rem; | 948 margin: 0rem 1rem; |
| 845 } | 949 } |
| 846 | 950 |
| 847 .th .col5:nth-of-type(1), | 951 .th .col5:nth-of-type(1), |
| 848 .table .col5:nth-of-type(1) | 952 .table .col5:nth-of-type(1) |
| 849 { | 953 { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 margin: 0rem; | 987 margin: 0rem; |
| 884 } | 988 } |
| 885 | 989 |
| 886 .table.cols li | 990 .table.cols li |
| 887 { | 991 { |
| 888 padding: 0.5rem 0rem; | 992 padding: 0.5rem 0rem; |
| 889 } | 993 } |
| 890 | 994 |
| 891 .table.cols .state | 995 .table.cols .state |
| 892 { | 996 { |
| 893 -moz-margin-start: 1.1rem; | 997 -moz-margin-start: 1rem; |
| 894 -webkit-margin-start: 1.1rem; | 998 -webkit-margin-start: 1rem; |
| 895 } | 999 } |
| 896 | 1000 |
| 897 .table.cols .gear | 1001 .table.cols .gear |
| 898 { | 1002 { |
| 899 margin: 0rem | 1003 margin: 0rem |
| 900 } | 1004 } |
| 901 | 1005 |
| 902 #dialog .table.list li | 1006 #dialog .table.list li |
| 903 { | 1007 { |
| 904 display: block; | 1008 display: block; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 924 #dialog .table.list li button:focus | 1028 #dialog .table.list li button:focus |
| 925 { | 1029 { |
| 926 background-color: #E1F2FA; | 1030 background-color: #E1F2FA; |
| 927 } | 1031 } |
| 928 | 1032 |
| 929 #dialog .table.list li button[aria-checked="true"] | 1033 #dialog .table.list li button[aria-checked="true"] |
| 930 { | 1034 { |
| 931 color: #BBB; | 1035 color: #BBB; |
| 932 } | 1036 } |
| 933 | 1037 |
| 934 #dialog .table.list li button[aria-checked="true"]::before | |
| 935 { | |
| 936 content: ""; | |
| 937 width: 1.3rem; | |
| 938 height: 1.3rem; | |
| 939 background-image: url(icons/checkmark.svg?default#default); | |
| 940 margin: 0rem; | |
| 941 } | |
| 942 | |
| 943 #dialog .table.list li button .display | 1038 #dialog .table.list li button .display |
| 944 { | 1039 { |
| 945 flex: none; | 1040 flex: none; |
| 946 margin: 0rem 0.8rem; | 1041 margin: 0rem 0.8rem; |
| 947 text-transform: none; | 1042 text-transform: none; |
| 948 font-weight: 400; | 1043 font-weight: 400; |
| 949 } | 1044 } |
| 950 | 1045 |
| 951 /* | 1046 /* |
| 952 Tooltips | 1047 Tooltips |
| 953 */ | 1048 */ |
| 954 | 1049 |
| 955 .tooltip | 1050 .tooltip |
| 956 { | 1051 { |
| 957 display: inline-block; | |
| 958 position: relative; | 1052 position: relative; |
| 959 margin: 0rem; | 1053 margin: 0rem; |
| 960 -moz-margin-end: 1rem; | 1054 -moz-margin-end: 1rem; |
| 961 -webkit-margin-end: 1rem; | 1055 -webkit-margin-end: 1rem; |
| 962 line-height: 1.5rem; | 1056 line-height: 1.5rem; |
| 963 text-decoration: none; | 1057 text-decoration: none; |
| 964 cursor: help; | 1058 cursor: help; |
| 965 } | 1059 } |
| 966 | 1060 |
| 967 .tooltip::before | |
| 968 { | |
| 969 content: ""; | |
| 970 width: 1.1rem; | |
| 971 height: 1.1rem; | |
| 972 display: block; | |
| 973 background-image: url(icons/tooltip.svg); | |
| 974 } | |
| 975 | |
| 976 /* | 1061 /* |
| 977 Used for translatable screen reader only content. | 1062 Used for translatable screen reader only content. |
| 978 e.g.: Use instead of aria-label to avoid complex attribute value translation | 1063 e.g.: Use instead of aria-label to avoid complex attribute value translation |
| 979 */ | 1064 */ |
| 980 .sr-only | 1065 .sr-only |
| 981 { | 1066 { |
| 982 position: absolute; | 1067 position: absolute; |
| 983 overflow: hidden; | 1068 overflow: hidden; |
| 984 clip: rect(0, 0, 0, 0); | 1069 clip: rect(0, 0, 0, 0); |
| 985 width: 1px; | 1070 width: 1px; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 Context menu | 1177 Context menu |
| 1093 */ | 1178 */ |
| 1094 | 1179 |
| 1095 li [role="menubar"] | 1180 li [role="menubar"] |
| 1096 { | 1181 { |
| 1097 position: relative; | 1182 position: relative; |
| 1098 } | 1183 } |
| 1099 | 1184 |
| 1100 [role="tooltip"] | 1185 [role="tooltip"] |
| 1101 { | 1186 { |
| 1102 right: -1rem; | 1187 right: -0.8rem; |
| 1103 margin-top: 1rem; | 1188 margin-top: 0.8rem; |
| 1104 opacity: 1; | 1189 opacity: 1; |
| 1105 padding: 0.2rem 1rem; | 1190 padding: 0.2rem 1rem; |
| 1106 position: absolute; | 1191 position: absolute; |
| 1107 -webkit-transition: opacity 200ms ease-in-out 400ms, | 1192 -webkit-transition: opacity 200ms ease-in-out 400ms, |
| 1108 visibility 0ms linear 400ms; | 1193 visibility 0ms linear 400ms; |
| 1109 transition: opacity 200ms ease-in-out 400ms, | 1194 transition: opacity 200ms ease-in-out 400ms, |
| 1110 visibility 0ms linear 400ms; | 1195 visibility 0ms linear 400ms; |
| 1111 visibility: visible; | 1196 visibility: visible; |
| 1112 width: 15rem; | 1197 width: 15rem; |
| 1113 z-index: 1; | 1198 z-index: 1; |
| 1114 } | 1199 } |
| 1115 | 1200 |
| 1116 html[dir="rtl"] [role="tooltip"] | 1201 html[dir="rtl"] [role="tooltip"] |
| 1117 { | 1202 { |
| 1118 right: auto; | 1203 right: auto; |
| 1119 left: -1rem; | 1204 left: -0.8rem; |
| 1120 } | 1205 } |
| 1121 | 1206 |
| 1122 [role="tooltip"], | 1207 [role="tooltip"], |
| 1123 .context-menu .content | 1208 .context-menu .content |
| 1124 { | 1209 { |
| 1125 border: 1px solid #077CA6; | 1210 border: 1px solid #077CA6; |
| 1126 border-radius: 3px; | 1211 border-radius: 3px; |
| 1127 background-color: #FFFFFF; | 1212 background-color: #FFFFFF; |
| 1128 } | 1213 } |
| 1129 | 1214 |
| 1130 | 1215 |
| 1131 .tooltip:not(:hover) > [role="tooltip"], | 1216 .tooltip:not(:hover) > [role="tooltip"], |
| 1132 [role="tooltip"]:hover | 1217 [role="tooltip"]:hover |
| 1133 { | 1218 { |
| 1134 visibility: hidden; | 1219 visibility: hidden; |
| 1135 opacity: 0; | 1220 opacity: 0; |
| 1136 -webkit-transition-delay: 0ms; | 1221 -webkit-transition-delay: 0ms; |
| 1137 transition-delay: 0ms; | 1222 transition-delay: 0ms; |
| 1138 } | 1223 } |
| 1139 | 1224 |
| 1140 .context-menu | 1225 .context-menu |
| 1141 { | 1226 { |
| 1142 position: absolute; | 1227 position: absolute; |
| 1143 right: 2.5rem; | 1228 right: 2.5rem; |
| 1144 top: -2.7rem; | 1229 top: -2rem; |
| 1145 z-index: 1; | 1230 z-index: 1; |
| 1146 visibility: hidden; | 1231 visibility: hidden; |
| 1147 } | 1232 } |
| 1148 | 1233 |
| 1149 html[dir="rtl"] .context-menu | 1234 html[dir="rtl"] .context-menu |
| 1150 { | 1235 { |
| 1151 right: auto; | 1236 right: auto; |
| 1152 left: 2.5rem; | 1237 left: 2.5rem; |
| 1153 } | 1238 } |
| 1154 | 1239 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 text-decoration: none; | 1311 text-decoration: none; |
| 1227 } | 1312 } |
| 1228 | 1313 |
| 1229 .context-menu li[role="menuitem"] > *:hover, | 1314 .context-menu li[role="menuitem"] > *:hover, |
| 1230 .context-menu li[role="menuitem"] > *:focus | 1315 .context-menu li[role="menuitem"] > *:focus |
| 1231 { | 1316 { |
| 1232 background-color: #E1F2FA; | 1317 background-color: #E1F2FA; |
| 1233 cursor: pointer; | 1318 cursor: pointer; |
| 1234 } | 1319 } |
| 1235 | 1320 |
| 1236 .context-menu li[role="menuitem"] > *::before | 1321 .context-menu li[role="menuitem"] .icon::before |
| 1237 { | 1322 { |
| 1238 content: ""; | |
| 1239 height: 1rem; | 1323 height: 1rem; |
| 1240 width: 1rem; | 1324 width: 1rem; |
| 1241 margin: 0rem 1.1rem; | 1325 margin: 0rem 1.1rem; |
| 1242 border: 0rem; | 1326 border: 0rem; |
| 1243 } | 1327 } |
| 1244 | 1328 |
| 1245 .context-menu .update-subscription::before | |
| 1246 { | |
| 1247 background-image: url(icons/reload.svg); | |
| 1248 } | |
| 1249 | |
| 1250 .context-menu .website::before | |
| 1251 { | |
| 1252 background-image: url(icons/globe.svg); | |
| 1253 } | |
| 1254 | |
| 1255 .context-menu .source::before | |
| 1256 { | |
| 1257 background-image: url(icons/code.svg); | |
| 1258 } | |
| 1259 | |
| 1260 .context-menu .delete::before | |
| 1261 { | |
| 1262 background-image: url(icons/trash.svg?default#default); | |
| 1263 } | |
| 1264 | |
| 1265 /* | 1329 /* |
| 1266 Help tab content | 1330 Help tab content |
| 1267 */ | 1331 */ |
| 1268 | 1332 |
| 1269 html:not([lang="zh"]) #social-chinese, | 1333 html:not([lang="zh"]) #social-chinese, |
| 1270 html[lang="zh"] #social-general | 1334 html[lang="zh"] #social-general |
| 1271 { | 1335 { |
| 1272 display: none; | 1336 display: none; |
| 1273 } | 1337 } |
| 1274 | 1338 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1285 -webkit-margin-end: 1rem; | 1349 -webkit-margin-end: 1rem; |
| 1286 } | 1350 } |
| 1287 | 1351 |
| 1288 #social ul li a | 1352 #social ul li a |
| 1289 { | 1353 { |
| 1290 display: block; | 1354 display: block; |
| 1291 text-align: center; | 1355 text-align: center; |
| 1292 text-decoration: none; | 1356 text-decoration: none; |
| 1293 } | 1357 } |
| 1294 | 1358 |
| 1295 #social ul li a::before | |
| 1296 { | |
| 1297 display: block; | |
| 1298 margin: 0em auto; | |
| 1299 width: 2.5rem; | |
| 1300 height: 2.5rem; | |
| 1301 content: ""; | |
| 1302 } | |
| 1303 | |
| 1304 #twitter::before | |
| 1305 { | |
| 1306 background-image: url("social/twitter.svg"); | |
| 1307 } | |
| 1308 | |
| 1309 #facebook::before | |
| 1310 { | |
| 1311 background-image: url("social/facebook.svg"); | |
| 1312 } | |
| 1313 | |
| 1314 #google-plus::before | |
| 1315 { | |
| 1316 background-image: url("social/googleplus.svg"); | |
| 1317 } | |
| 1318 | |
| 1319 /* | 1359 /* |
| 1320 Dialog | 1360 Dialog |
| 1321 */ | 1361 */ |
| 1322 | 1362 |
| 1323 #dialog-background | 1363 #dialog-background |
| 1324 { | 1364 { |
| 1325 display: none; | 1365 display: none; |
| 1326 position: fixed; | 1366 position: fixed; |
| 1327 top: 0px; | 1367 top: 0px; |
| 1328 right: 0px; | 1368 right: 0px; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1358 background-color: #077CA6; | 1398 background-color: #077CA6; |
| 1359 } | 1399 } |
| 1360 | 1400 |
| 1361 #dialog header h3 | 1401 #dialog header h3 |
| 1362 { | 1402 { |
| 1363 margin: 0rem; | 1403 margin: 0rem; |
| 1364 font-size: 1rem; | 1404 font-size: 1rem; |
| 1365 font-weight: 700; | 1405 font-weight: 700; |
| 1366 } | 1406 } |
| 1367 | 1407 |
| 1368 #dialog-close, | 1408 .close |
| 1369 #hide-notification, | |
| 1370 #hide-tracking-warning | |
| 1371 { | 1409 { |
| 1372 border: 0rem; | |
| 1373 padding: 0rem; | |
| 1374 margin: 0rem; | 1410 margin: 0rem; |
| 1375 background-color: transparent; | |
| 1376 cursor: pointer; | 1411 cursor: pointer; |
| 1377 } | 1412 } |
| 1378 | 1413 |
| 1379 #dialog-close::before, | |
| 1380 #hide-notification::after, | |
| 1381 #hide-tracking-warning::after | |
| 1382 { | |
| 1383 content: ""; | |
| 1384 display: block; | |
| 1385 height: 1rem; | |
| 1386 width: 1rem; | |
| 1387 border: 0rem; | |
| 1388 background-image: url(icons/delete.svg?primary#primary); | |
| 1389 } | |
| 1390 | |
| 1391 #dialog-close:hover::before | |
| 1392 { | |
| 1393 background-image: url(icons/delete.svg?primary-hover#primary-hover); | |
| 1394 } | |
| 1395 | |
| 1396 #dialog #dialog-body | 1414 #dialog #dialog-body |
| 1397 { | 1415 { |
| 1398 max-height: 60vh; | 1416 max-height: 60vh; |
| 1399 overflow: auto; | 1417 overflow: auto; |
| 1400 } | 1418 } |
| 1401 | 1419 |
| 1402 .dialog-content | 1420 .dialog-content |
| 1403 { | 1421 { |
| 1404 margin: 1rem 1.8rem; | 1422 margin: 1rem 1.8rem; |
| 1405 } | 1423 } |
| 1406 | 1424 |
| 1407 [data-dialog="language-change"] .dialog-content, | 1425 [data-dialog="language-change"] .dialog-content, |
| 1408 [data-dialog="language-add"] .dialog-content | 1426 [data-dialog="language-add"] .dialog-content |
| 1409 { | 1427 { |
| 1410 margin: 0rem; | 1428 margin: 0rem; |
| 1411 } | 1429 } |
| 1412 | 1430 |
| 1413 [data-dialog="about"] .dialog-content | 1431 [data-dialog="about"] .dialog-content |
| 1414 { | 1432 { |
| 1415 text-align: center; | 1433 text-align: center; |
| 1416 } | 1434 } |
| 1417 | 1435 |
| 1418 [data-dialog="about"] button | 1436 [data-dialog="about"] .content button |
| 1419 { | 1437 { |
| 1420 margin: 1.5rem auto 1.8rem auto; | 1438 margin: 1.5rem auto 1.8rem auto; |
| 1421 } | 1439 } |
| 1422 | 1440 |
| 1423 [data-dialog="about"] p | 1441 [data-dialog="about"] p |
| 1424 { | 1442 { |
| 1425 margin: 0.5rem 0rem; | 1443 margin: 0.5rem 0rem; |
| 1426 } | 1444 } |
| 1427 | 1445 |
| 1428 [data-dialog="import"] .side-controls | 1446 [data-dialog="import"] .side-controls |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 font-size: 1rem; | 1510 font-size: 1rem; |
| 1493 color: #077CA6; | 1511 color: #077CA6; |
| 1494 background-color: #E1F2FA; | 1512 background-color: #E1F2FA; |
| 1495 } | 1513 } |
| 1496 | 1514 |
| 1497 #notification strong | 1515 #notification strong |
| 1498 { | 1516 { |
| 1499 flex: 1; | 1517 flex: 1; |
| 1500 text-align: center; | 1518 text-align: center; |
| 1501 } | 1519 } |
| 1502 | |
| 1503 #hide-notification | |
| 1504 { | |
| 1505 margin: 0rem 1rem; | |
| 1506 } | |
| 1507 | |
| 1508 #hide-notification::after | |
| 1509 { | |
| 1510 background-image: url(icons/delete.svg?secondary#secondary); | |
| 1511 } | |
| 1512 | |
| 1513 #hide-tracking-warning::after | |
| 1514 { | |
| 1515 background-image: url(icons/delete.svg?tertiary#tertiary); | |
| 1516 } | |
| 1517 | |
| 1518 #hide-notification:hover::after | |
| 1519 { | |
| 1520 background-image: url(icons/delete.svg?secondary-hover#secondary-hover); | |
| 1521 } | |
| 1522 | |
| 1523 #hide-tracking-warning:hover::after | |
| 1524 { | |
| 1525 background-image: url(icons/delete.svg?tertiary-hover#tertiary-hover); | |
| 1526 } | |
| OLD | NEW |