logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 1640bb61e32f64badd1d781cfc2d3afab953e7d1
parent 339ae3e95e107a535018f2f05fa5da4815a620fe
Author: Henry Jameson <me@hjkos.com>
Date:   Thu, 22 Feb 2024 18:38:45 +0200

last remaining core tasks done

Diffstat:

Msrc/components/root.style.js6++++--
Msrc/components/status/post.style.js19++++++++++++++++++-
2 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/components/root.style.js b/src/components/root.style.js @@ -8,12 +8,14 @@ export default { 'TopBar', 'Scrollbar', 'ScrollbarElement', - 'MobileDrawer' + 'MobileDrawer', + 'Button' // mobile post button ], defaultRules: [ { directives: { - '--font': 'generic | sans-serif' + '--font': 'generic | sans-serif', + '--monoFont': 'generic | monospace' } } ] diff --git a/src/components/status/post.style.js b/src/components/status/post.style.js @@ -1,6 +1,9 @@ export default { name: 'Post', selector: '.Status', + states: { + selected: '.-focused' + }, validInnerComponents: [ 'Text', 'Link', @@ -14,5 +17,19 @@ export default { 'Attachment', 'PollGraph' ], - defaultRules: [] + defaultRules: [ + { + directives: { + background: '--bg', + opacity: 0 + } + }, + { + state: ['selected'], + directives: { + background: '--inheritedBackground, 10', + opacity: 1 + } + } + ] }