diff options
author | nana-4 <hnmaigo@gmail.com> | 2020-01-25 17:53:17 +0900 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2020-02-06 21:48:46 +0100 |
commit | 4c55fa5a748e42c975850ff302a48ff79761826c (patch) | |
tree | 2d0cc63be5cb1526b7d4fade4c2990992f169f6b /_drawing.scss | |
parent | 622b6531d5f9f3c1d0ba277b917af54271034a54 (diff) | |
download | gnome-shell-sass-4c55fa5a748e42c975850ff302a48ff79761826c.tar.gz |
theme: Simplify .overview-icon styling
This reduces duplicate code by using overview-icon() and %app-well-app
to improve maintainability.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/957
Diffstat (limited to '_drawing.scss')
-rw-r--r-- | _drawing.scss | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/_drawing.scss b/_drawing.scss index 44323b3..4c0383e 100644 --- a/_drawing.scss +++ b/_drawing.scss @@ -194,3 +194,38 @@ icon-shadow: none; } } + +// overview icons +@mixin overview-icon($color) { + .overview-icon { + @extend %icon_tile; + color: $color; + } + + &:hover, + &:selected { + .overview-icon { + background-color: transparentize($color, .9); + } + } + + &:focus { + .overview-icon { + background-color: transparentize($color, .7); + // border-color: $selected_bg_color; + } + } + + &:drop { + .overview-icon { + background-color: transparentize($selected_bg_color, .15); + } + } + + &:active, + &:checked { + .overview-icon { + background-color: transparentize(darken($osd_bg_color, 10%), .5); + } + } +} |