Invert icon active / inactive colors
This commit is contained in:
parent
6456241289
commit
11c258ef7d
@ -55,11 +55,19 @@
|
||||
|
||||
.icon-link {
|
||||
padding: 0.8rem 1.2rem;
|
||||
&.active {
|
||||
|
||||
color: $color-gray;
|
||||
opacity: 0.3;
|
||||
.icon {
|
||||
@include icon-color($color-gray);
|
||||
}
|
||||
|
||||
&.active {
|
||||
opacity: 1.0;
|
||||
color: $color-blue;
|
||||
.icon {
|
||||
@include icon-color($color-blue);
|
||||
}
|
||||
}
|
||||
|
||||
.icon-link--icon {
|
||||
|
@ -2,7 +2,7 @@
|
||||
{% from "components/tooltip.html" import Tooltip %}
|
||||
|
||||
{% macro Link(icon, text, url, active=False) %}
|
||||
<a class='icon-link {{ "active icon-link--disabled" if active }}' href='{{ url }}'>
|
||||
<a class='icon-link {{ "active" if active }}' href='{{ url }}'>
|
||||
<div class='col'>
|
||||
<div class='icon-link--icon'>{{ Icon(icon) }}</div>
|
||||
<div class='icon-link--name'>{{ text }}</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user