Using inline SVG for greater flexibility with colourising

This commit is contained in:
James Barnsley
2018-02-15 16:16:00 +13:00
parent 6fe069e58c
commit c4c3201523
39 changed files with 607 additions and 752 deletions

View File

@ -9,13 +9,15 @@ main {
display: inline-block;
}
.icon {
@include invert();
.header-icon {
display: inline-block;
padding-right: 14px;
height: 2.6rem;
vertical-align: bottom;
margin-bottom: 8px;
svg {
height: 2.6rem;
}
}
.options {

View File

@ -1,8 +1,11 @@
.icon {
&.white{
-webkit-filter: invert(1);
-moz-filter: invert(1);
filter: invert(1);
margin-top: -0.2em;
vertical-align: middle;
svg {
height: 1.4em;
fill: $white;
vertical-align: middle;
}
}

View File

@ -92,22 +92,25 @@
opacity: 0.8;
.icon {
width: 12px;
height: 12px;
@include invert();
svg {
height: 12px;
}
}
&.play {
margin-bottom: -6px;
.icon {
width: 24px;
height: 24px;
svg {
height: 24px;
}
}
}
&.active {
color: $turquoise !important;
svg {
fill: $turquoise !important;
}
}
&:hover {

View File

@ -57,11 +57,13 @@ aside{
line-height: 18px;
.icon {
@include invert();
height: 14px;
padding-right: 12px;
vertical-align: top;
margin-top: 0;
svg {
height: 14px;
}
}
&.active {