From 1b10bd96875ed30490e8e2bc8671c3d3d63f776f Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 30 Nov 2018 19:36:16 +0200 Subject: [PATCH] new file --- chrome/button_effect_scale_onclick.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 chrome/button_effect_scale_onclick.css diff --git a/chrome/button_effect_scale_onclick.css b/chrome/button_effect_scale_onclick.css new file mode 100644 index 0000000..686df35 --- /dev/null +++ b/chrome/button_effect_scale_onclick.css @@ -0,0 +1,18 @@ +/* Effect */ +.toolbarbutton-icon { transition: transform 82ms linear !important; } +toolbarbutton:not([disabled]):active > .toolbarbutton-icon, +toolbarbutton:not([disabled]):active > .toolbarbutton-badge-stack > .toolbarbutton-icon{ transform: scale(0.6) } + +/* Restyle hover state - remove everything below if you want the scale effect to also apply to background-color */ +toolbar .toolbarbutton-1{ clip-path: inset(3px) } +toolbar .toolbarbutton-1:not([disabled]):hover, +toolbar .toolbarbutton-1[open], +toolbar .toolbarbutton-1[checked]{ + background-color: var(--toolbarbutton-hover-background); +} +toolbar .toolbarbutton-1 > .toolbarbutton-icon, +toolbar .toolbarbutton-1 > .toolbarbutton-badge-stack{ background-color: transparent !important } +/* Back button override */ +:root:not([uidensity="compact"]) #back-button{ clip-path: none; background-color: transparent } +:root:not([uidensity="compact"]) #back-button > .toolbarbutton-icon{ background-color: var(--backbutton-background) !important;} +:root:not([uidensity="compact"]) .toolbarbutton-1:not(#back-button){margin: var(--toolbarbutton-outer-padding) 0 !important;} \ No newline at end of file