logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 1c5f156af04b6df4cbce8fcf999d752e2500089c
parent 98f972e557047a626880692189fdae68269a732e
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 12 Feb 2024 03:46:40 +0200

better button styles, include popovers in root

Diffstat:

Msrc/components/button.style.js19+++++++++++++++++++
Msrc/components/root.style.js1+
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/src/components/button.style.js b/src/components/button.style.js @@ -80,8 +80,27 @@ export default { } }, { + state: ['pressed'], + directives: { + shadow: [...inputInsetFakeBorders] + } + }, + { state: ['hover', 'pressed'], directives: { + shadow: [hoverGlow, ...inputInsetFakeBorders] + } + }, + { + state: ['toggled'], + directives: { + background: '--accent,-24.2', + shadow: [...inputInsetFakeBorders] + } + }, + { + state: ['toggled', 'hover'], + directives: { background: '--accent,-24.2', shadow: [hoverGlow, ...inputInsetFakeBorders] } diff --git a/src/components/root.style.js b/src/components/root.style.js @@ -4,6 +4,7 @@ export default { validInnerComponents: [ 'Underlay', 'Modals', + 'Popover', 'TopBar' ], defaultRules: [