From f1b92d43a3d0856729c147b1d325eac6d8ae62aa Mon Sep 17 00:00:00 2001 From: Kouhai Date: Sun, 6 Nov 2022 13:32:33 -0800 Subject: [PATCH] glitch: quick status hover hack --- .../glitch/styles/components/status.scss | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/components/status.scss b/app/javascript/flavours/glitch/styles/components/status.scss index cc424f941c8..3a4564db47e 100644 --- a/app/javascript/flavours/glitch/styles/components/status.scss +++ b/app/javascript/flavours/glitch/styles/components/status.scss @@ -285,23 +285,28 @@ } } + +@mixin focusable { + outline: 0; + background: lighten($ui-base-color, 4%); + + &.status.status-direct { + background: lighten($ui-base-color, 12%); + + &.muted { + background: transparent; + } + } + + .detailed-status, + .detailed-status__action-bar { + background: lighten($ui-base-color, 8%); + } +} .focusable { - &:focus { - outline: 0; - background: lighten($ui-base-color, 4%); - - &.status.status-direct { - background: lighten($ui-base-color, 12%); - - &.muted { - background: transparent; - } - } - - .detailed-status, - .detailed-status__action-bar { - background: lighten($ui-base-color, 8%); - } + &:focus, + &:hover { + @include focusable; } }