From 67a1d5ae86d00ff823ff2bfccc5824bb5ac02efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Fri, 18 Dec 2020 17:36:35 +0100 Subject: [PATCH] GTK3: remove hover animation for link buttons --- share/themes/Kali-Dark/gtk-3.0/gtk.css | 4 ++-- share/themes/Kali-Light/gtk-3.0/gtk-dark.css | 4 ++-- share/themes/Kali-Light/gtk-3.0/gtk.css | 4 ++-- src/themes/Kali/sass/gtk-sass/_common-tweaks.scss | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/themes/Kali-Dark/gtk-3.0/gtk.css b/share/themes/Kali-Dark/gtk-3.0/gtk.css index 33234849..d0bf9866 100644 --- a/share/themes/Kali-Dark/gtk-3.0/gtk.css +++ b/share/themes/Kali-Dark/gtk-3.0/gtk.css @@ -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:checked, 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; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); } button.flat { border-color: transparent; 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; } /********** diff --git a/share/themes/Kali-Light/gtk-3.0/gtk-dark.css b/share/themes/Kali-Light/gtk-3.0/gtk-dark.css index 33234849..d0bf9866 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk-dark.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk-dark.css @@ -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:checked, 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; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.3); } button.flat { border-color: transparent; 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; } /********** diff --git a/share/themes/Kali-Light/gtk-3.0/gtk.css b/share/themes/Kali-Light/gtk-3.0/gtk.css index cc9c9e69..e7a79184 100644 --- a/share/themes/Kali-Light/gtk-3.0/gtk.css +++ b/share/themes/Kali-Light/gtk-3.0/gtk.css @@ -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:checked, 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; box-shadow: inset 0 3px 5px -4px rgba(0, 0, 0, 0.1); } button.flat { border-color: transparent; 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; } /********** diff --git a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss index df3713da..9c945f39 100644 --- a/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss +++ b/src/themes/Kali/sass/gtk-sass/_common-tweaks.scss @@ -31,7 +31,7 @@ button { border-color: transparent; transition: $button_transition; - &:hover:not(:backdrop) { + &:hover:not(:backdrop):not(:link):not(:visited) { @extend %button_active; transition: none; }