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

Unified Diff: skin/desktop-options.css

Issue 29592569: Issue 5943 - Implement Updates Page for Adblock Plus extension (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Addressed second round of feedback Created Nov. 6, 2017, 4:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « locale/en_US/updates.json ('k') | skin/icons/attention.svg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skin/desktop-options.css
===================================================================
--- a/skin/desktop-options.css
+++ b/skin/desktop-options.css
@@ -205,32 +205,24 @@
button[role="checkbox"][disabled].toggle
{
background-image: none;
}
button.delete::before
{
- background-image: url(icons/trash.svg#default);
-}
-
-button.delete:hover::before
-{
- background-image: url(icons/trash.svg#hover);
+ -webkit-mask: url(icons/trash.svg);
+ mask: url(icons/trash.svg);
}
button.gear::before
{
- background-image: url(icons/gear.svg#default);
-}
-
-button.gear:hover::before
-{
- background-image: url(icons/gear.svg#hover);
+ -webkit-mask: url(icons/gear.svg);
+ mask: url(icons/gear.svg);
}
button.gear,
button.delete
{
border: 0px;
padding: 0px;
background-color: transparent;
@@ -238,16 +230,23 @@
button.gear::before,
button.delete::before
{
content: "";
display: block;
height: 1.9rem;
width: 1.9rem;
+ background-color: #099DD1;
+}
+
+button.gear:hover::before,
+button.delete:hover::before
+{
+ background-color: #5CBCE1;
}
button.link,
button.list
{
color: #099CD0;
}
@@ -372,23 +371,27 @@
html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::before
{
left: 0rem;
right: auto;
}
[data-validation] .floating-input input:focus:invalid ~ .attention::before
{
- background-image: url(icons/attention.svg);
+ background-color: #C11D27;
+ -webkit-mask: url(icons/attention.svg);
+ mask: url(icons/attention.svg);
}
[data-validation] .floating-input input:valid ~ .attention::before
{
top: 0.8rem;
- background-image: url(icons/checkmark.svg#approved);
+ background-color: green;
+ -webkit-mask: url(icons/checkmark.svg);
+ mask: url(icons/checkmark.svg);
}
[data-validation] .floating-input input ~ .error-msg
{
margin-top: 0.5rem;
color: #C11D27;
display: block;
visibility: hidden;
@@ -865,17 +868,19 @@
color: #BBB;
}
#dialog .table.list li button[aria-checked="true"]::before
{
content: "";
width: 1.3rem;
height: 1.3rem;
- background-image: url(icons/checkmark.svg#default);
+ background-color: #BBB;
+ -webkit-mask: url(icons/checkmark.svg);
+ mask: url(icons/checkmark.svg);
margin: 0rem;
}
#dialog .table.list li button .display
{
flex: none;
margin: 0rem 0.8rem;
text-transform: none;
@@ -898,17 +903,19 @@
}
.tooltip::before
{
content: "";
width: 1.3rem;
height: 1.3rem;
display: block;
- background-image: url(icons/tooltip.svg);
+ background-color: #099DD1;
+ -webkit-mask: url(icons/tooltip.svg);
+ mask: url(icons/tooltip.svg);
}
/*
Used for translatable screen reader only conten.
e.g.: Use instead of aria-label to avoid complex attribute value translation
*/
.sr-only
{
@@ -1166,37 +1173,42 @@
cursor: pointer;
}
.context-menu li[role="menuitem"] > *::before
{
content: "";
height: 1.5rem;
width: 1.5rem;
+ background-color: #099DD1;
margin: 0rem 1.1rem;
}
.context-menu .update-subscription::before
{
- background-image: url(icons/reload.svg);
+ -webkit-mask: url(icons/reload.svg);
+ mask: url(icons/reload.svg);
}
.context-menu .website::before
{
- background-image: url(icons/globe.svg);
+ -webkit-mask: url(icons/globe.svg);
+ mask: url(icons/globe.svg);
}
.context-menu .source::before
{
- background-image: url(icons/code.svg);
+ -webkit-mask: url(icons/code.svg);
+ mask: url(icons/code.svg);
}
.context-menu .delete::before
{
- background-image: url(icons/trash.svg#default);
+ -webkit-mask: url(icons/trash.svg);
+ mask: url(icons/trash.svg);
}
/*
Help tab content
*/
html:not([lang="zh"]) #social-chinese,
html[lang="zh"] #social-general
@@ -1225,31 +1237,35 @@
#social ul li a::before
{
display: block;
margin: 0em auto;
width: 2.5rem;
height: 2.5rem;
content: "";
+ background-color: #099DD1;
}
#twitter::before
{
- background-image: url("social/twitter.svg");
+ -webkit-mask: url("social/twitter.svg");
+ mask: url("social/twitter.svg");
}
#facebook::before
{
- background-image: url("social/facebook.svg");
+ -webkit-mask: url("social/facebook.svg");
+ mask: url("social/facebook.svg");
}
#google-plus::before
{
- background-image: url("social/googleplus.svg");
+ -webkit-mask: url("social/googleplus.svg");
+ mask: url("social/googleplus.svg");
}
/*
Dialog
*/
#dialog-background
{
@@ -1309,22 +1325,24 @@
#dialog-close::before,
#hide-notification::after
{
content: "";
display: block;
height: 1rem;
width: 1rem;
border: 0rem;
- background-image: url(icons/delete.svg#primary);
+ background-color: #FFF;
+ -webkit-mask: url(icons/delete.svg);
+ mask: url(icons/delete.svg);
}
#dialog-close:hover::before
{
- background-image: url(icons/delete.svg#primary-hover);
+ background-color: #000;
}
#dialog #dialog-body
{
max-height: 60vh;
overflow: auto;
}
@@ -1436,15 +1454,15 @@
#hide-notification
{
margin: 0rem 1rem;
}
#hide-notification::after
{
- background-image: url(icons/delete.svg#secondary);
+ background-color: #099DD1;
}
#hide-notification:hover::after
{
- background-image: url(icons/delete.svg#secondary-hover);
+ background-color: #5CBCE1;
}
« no previous file with comments | « locale/en_US/updates.json ('k') | skin/icons/attention.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld