aboutsummaryrefslogtreecommitdiff
path: root/common/gtk-3.0/3.20/sass
diff options
context:
space:
mode:
authorHorst31802016-09-12 14:19:10 +0200
committerHorst31802016-09-12 14:19:10 +0200
commited153bb55bd8ec176a1af1678a06ddcbb7b7b01f (patch)
tree94aa22f1fb2c850f8a2d1630e6b8208107b01630 /common/gtk-3.0/3.20/sass
parentb0181fb116102ccf3aeb0ca0d7e01a6ee2901684 (diff)
downloadsolarc-theme-ed153bb55bd8ec176a1af1678a06ddcbb7b7b01f.tar.gz
solarc-theme-ed153bb55bd8ec176a1af1678a06ddcbb7b7b01f.tar.xz
solarc-theme-ed153bb55bd8ec176a1af1678a06ddcbb7b7b01f.zip
separate disabled linked buttons more clearly
Diffstat (limited to 'common/gtk-3.0/3.20/sass')
-rw-r--r--common/gtk-3.0/3.20/sass/_common.scss25
1 files changed, 19 insertions, 6 deletions
diff --git a/common/gtk-3.0/3.20/sass/_common.scss b/common/gtk-3.0/3.20/sass/_common.scss
index bf38100..dd15aa9 100644
--- a/common/gtk-3.0/3.20/sass/_common.scss
+++ b/common/gtk-3.0/3.20/sass/_common.scss
@@ -626,12 +626,23 @@ toolbar.inline-toolbar toolbutton {
> #{$_uncolored_button}:hover:not(:only-child),
> #{$_uncolored_button}:hover + #{$_uncolored_button} { box-shadow: inset if($vert=='false', 1px 0, 0 1px) $b_border; }
- > #{$_uncolored_button}:first-child:hover,
+ > #{$_uncolored_button}:disabled:not(:only-child),
+ > #{$_uncolored_button}:disabled + #{$_uncolored_button}:not(:hover) { box-shadow: inset if($vert=='false', 1px 0, 0 1px) transparentize($b_border, 0.5); }
+
> button:active + #{$_uncolored_button}:hover,
> button:checked + #{$_uncolored_button}:hover,
> button.suggested-action + #{$_uncolored_button}:hover,
> button.destructive-action + #{$_uncolored_button}:hover,
- > entry + #{$_uncolored_button}:hover:not(:only-child) { box-shadow: none; }
+ > entry + #{$_uncolored_button}:hover:not(:only-child),
+
+ > #{$_uncolored_button}:first-child:disabled,
+ > #{$_uncolored_button}:disabled + #{$_uncolored_button}:disabled,
+ > #{$_uncolored_button}:first-child:hover,
+ > button:active + #{$_uncolored_button}:disabled,
+ > button:checked + #{$_uncolored_button}:disabled,
+ > button.suggested-action + #{$_uncolored_button}:disabled,
+ > button.destructive-action + #{$_uncolored_button}:disabled,
+ > entry + #{$_uncolored_button}:disabled:not(:only-child), { box-shadow: none; }
}
}
@@ -640,15 +651,15 @@ toolbar.inline-toolbar toolbutton {
> button + button { border-left-style: none; }
- > button:hover:not(:checked):not(:active):not(:only-child) {
+ > button:hover:not(:checked):not(:active):not(:only-child):not(:first-child):not(:last-child) {
&:hover {
box-shadow: inset 1px 0 $sep_color,
inset -1px 0 $sep_color;
}
- &:first-child:hover { box-shadow: inset -1px 0 $sep_color; }
- &:last-child:hover { box-shadow: inset 1px 0 $sep_color; }
}
+ button:nth-child(2):not(:active):not(:checked) { box-shadow: inset 1px 0 $sep_color; }
+ button:nth-last-child(2):not(:active):not(:checked) { box-shadow: inset -1px 0 $sep_color; }
}
// Apply the rules defined above
@@ -1210,7 +1221,9 @@ headerbar {
$_uncolored_button: 'button:not(:checked):not(:active):not(.suggested-action):not(.destructive-action)';
> #{$_uncolored_button}:hover:not(:only-child),
- > #{$_uncolored_button}:hover + #{$_uncolored_button} { box-shadow: none; }
+ > #{$_uncolored_button}:hover + #{$_uncolored_button},
+ > #{$_uncolored_button}:disabled:not(:only-child),
+ > #{$_uncolored_button}:disabled + #{$_uncolored_button}:not(:hover) { box-shadow: none; }
}
// special case for path-bars and stack-switchers