GTK3: remove hover animation for link buttons

This commit is contained in:
Daniel Ruiz de Alegría 2020-12-18 17:36:35 +01:00
parent 2f2d7de99d
commit 67a1d5ae86
4 changed files with 7 additions and 7 deletions

View File

@ -5088,14 +5088,14 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
headerbar stackswitcher button:checked:active, headerbar stackswitcher button:checked:active,
headerbar stackswitcher button:checked:checked, headerbar stackswitcher button:checked:checked,
headerbar button.toggle:active, headerbar button.toggle:active,
headerbar button.toggle:checked, button.flat:hover:not(:backdrop), button:active, button:checked { headerbar button.toggle:checked, button.flat:hover:not(:backdrop):not(:link):not(:visited), button:active, button:checked {
background: #1b1d24; background: #1b1d24;
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); } box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); }
button.flat { button.flat {
border-color: transparent; border-color: transparent;
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); } transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
button.flat:hover:not(:backdrop) { button.flat:hover:not(:backdrop):not(:link):not(:visited) {
transition: none; } transition: none; }
/********** /**********

View File

@ -5088,14 +5088,14 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
headerbar stackswitcher button:checked:active, headerbar stackswitcher button:checked:active,
headerbar stackswitcher button:checked:checked, headerbar stackswitcher button:checked:checked,
headerbar button.toggle:active, headerbar button.toggle:active,
headerbar button.toggle:checked, button.flat:hover:not(:backdrop), button:active, button:checked { headerbar button.toggle:checked, button.flat:hover:not(:backdrop):not(:link):not(:visited), button:active, button:checked {
background: #1b1d24; background: #1b1d24;
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); } box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); }
button.flat { button.flat {
border-color: transparent; border-color: transparent;
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); } transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
button.flat:hover:not(:backdrop) { button.flat:hover:not(:backdrop):not(:link):not(:visited) {
transition: none; } transition: none; }
/********** /**********

View File

@ -5110,14 +5110,14 @@ window.csd.unified:not(.solid-csd):not(.fullscreen):not(.tiled):not(.tiled-top):
headerbar stackswitcher button:checked:active, headerbar stackswitcher button:checked:active,
headerbar stackswitcher button:checked:checked, headerbar stackswitcher button:checked:checked,
headerbar button.toggle:active, headerbar button.toggle:active,
headerbar button.toggle:checked, button.flat:hover:not(:backdrop), button:active, button:checked { headerbar button.toggle:checked, button.flat:hover:not(:backdrop):not(:link):not(:visited), button:active, button:checked {
background: #f2f2f2; background: #f2f2f2;
box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.1); } box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.1); }
button.flat { button.flat {
border-color: transparent; border-color: transparent;
transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); } transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
button.flat:hover:not(:backdrop) { button.flat:hover:not(:backdrop):not(:link):not(:visited) {
transition: none; } transition: none; }
/********** /**********

View File

@ -31,7 +31,7 @@ button {
border-color: transparent; border-color: transparent;
transition: $button_transition; transition: $button_transition;
&:hover:not(:backdrop) { &:hover:not(:backdrop):not(:link):not(:visited) {
@extend %button_active; @extend %button_active;
transition: none; transition: none;
} }