last remaining core tasks done

This commit is contained in:
Henry Jameson 2024-02-22 18:38:45 +02:00
parent 339ae3e95e
commit 1640bb61e3
2 changed files with 22 additions and 3 deletions

View File

@ -8,12 +8,14 @@ export default {
'TopBar', 'TopBar',
'Scrollbar', 'Scrollbar',
'ScrollbarElement', 'ScrollbarElement',
'MobileDrawer' 'MobileDrawer',
'Button' // mobile post button
], ],
defaultRules: [ defaultRules: [
{ {
directives: { directives: {
'--font': 'generic | sans-serif' '--font': 'generic | sans-serif',
'--monoFont': 'generic | monospace'
} }
} }
] ]

View File

@ -1,6 +1,9 @@
export default { export default {
name: 'Post', name: 'Post',
selector: '.Status', selector: '.Status',
states: {
selected: '.-focused'
},
validInnerComponents: [ validInnerComponents: [
'Text', 'Text',
'Link', 'Link',
@ -14,5 +17,19 @@ export default {
'Attachment', 'Attachment',
'PollGraph' 'PollGraph'
], ],
defaultRules: [] defaultRules: [
{
directives: {
background: '--bg',
opacity: 0
}
},
{
state: ['selected'],
directives: {
background: '--inheritedBackground, 10',
opacity: 1
}
}
]
} }