even more weight loss
This commit is contained in:
parent
6341747ec9
commit
9440d35266
7 changed files with 6 additions and 118 deletions
|
|
@ -1,48 +0,0 @@
|
||||||
export default {
|
|
||||||
name: 'ListItem',
|
|
||||||
selector: '.list-item',
|
|
||||||
states: {
|
|
||||||
active: '.-active',
|
|
||||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.-non-interactive)'
|
|
||||||
},
|
|
||||||
validInnerComponents: [
|
|
||||||
'Text',
|
|
||||||
'Link',
|
|
||||||
'Icon',
|
|
||||||
'Border',
|
|
||||||
// Optimization: don't put heavy components unless needed
|
|
||||||
// 'Button',
|
|
||||||
// 'ButtonUnstyled',
|
|
||||||
// 'Input',
|
|
||||||
'Avatar'
|
|
||||||
],
|
|
||||||
defaultRules: [
|
|
||||||
{
|
|
||||||
directives: {
|
|
||||||
background: '--bg',
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
state: ['active'],
|
|
||||||
directives: {
|
|
||||||
background: '--inheritedBackground, 10',
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
state: ['hover'],
|
|
||||||
directives: {
|
|
||||||
background: '--inheritedBackground, 10',
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
state: ['hover', 'active'],
|
|
||||||
directives: {
|
|
||||||
background: '--inheritedBackground, 20',
|
|
||||||
opacity: 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -4,11 +4,7 @@ export default {
|
||||||
validInnerComponents: [
|
validInnerComponents: [
|
||||||
'Text',
|
'Text',
|
||||||
'Icon',
|
'Icon',
|
||||||
'Input',
|
'Border'
|
||||||
'Border',
|
|
||||||
'ButtonUnstyled',
|
|
||||||
'Badge',
|
|
||||||
'Avatar'
|
|
||||||
],
|
],
|
||||||
states: {
|
states: {
|
||||||
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)',
|
hover: ':is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)',
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,9 @@ export default {
|
||||||
// 'Button',
|
// 'Button',
|
||||||
// 'ButtonUnstyled',
|
// 'ButtonUnstyled',
|
||||||
// 'Input',
|
// 'Input',
|
||||||
'PanelHeader',
|
|
||||||
'MenuItem',
|
'MenuItem',
|
||||||
'Notification',
|
'Notification',
|
||||||
'Alert',
|
'Alert'
|
||||||
'UserCard'
|
|
||||||
],
|
],
|
||||||
defaultRules: [
|
defaultRules: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,30 +6,16 @@ export default {
|
||||||
'Link',
|
'Link',
|
||||||
'Icon',
|
'Icon',
|
||||||
'Border',
|
'Border',
|
||||||
// Optimization: don't put heavy components unless needed
|
|
||||||
// 'Button',
|
|
||||||
// 'ButtonUnstyled',
|
|
||||||
// 'Input',
|
|
||||||
'PanelHeader',
|
'PanelHeader',
|
||||||
'MenuItem',
|
|
||||||
'Post',
|
'Post',
|
||||||
'Notification',
|
'Notification'
|
||||||
'Alert',
|
|
||||||
'UserCard',
|
|
||||||
'Chat',
|
|
||||||
'Tab',
|
|
||||||
'ListItem'
|
|
||||||
],
|
],
|
||||||
validInnerComponentsLite: [
|
validInnerComponentsLite: [
|
||||||
'Text',
|
'Text',
|
||||||
'Link',
|
'Link',
|
||||||
'Icon',
|
'Icon',
|
||||||
'Border',
|
'Border',
|
||||||
// Optimization: don't put heavy components unless needed
|
'PanelHeader'
|
||||||
// 'Button',
|
|
||||||
// 'Input',
|
|
||||||
'PanelHeader',
|
|
||||||
'Alert'
|
|
||||||
],
|
],
|
||||||
defaultRules: [
|
defaultRules: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,7 @@ export default {
|
||||||
// 'Button',
|
// 'Button',
|
||||||
// 'ButtonUnstyled',
|
// 'ButtonUnstyled',
|
||||||
// 'Input',
|
// 'Input',
|
||||||
'MenuItem',
|
'MenuItem'
|
||||||
'Post',
|
|
||||||
'UserCard'
|
|
||||||
],
|
],
|
||||||
defaultRules: [
|
defaultRules: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,42 +0,0 @@
|
||||||
export default {
|
|
||||||
name: 'UserCard',
|
|
||||||
selector: '.user-card',
|
|
||||||
notEditable: true,
|
|
||||||
validInnerComponents: [
|
|
||||||
'Text',
|
|
||||||
'Link',
|
|
||||||
'Icon',
|
|
||||||
// Optimization: don't put heavy components unless needed
|
|
||||||
// 'Button',
|
|
||||||
// 'ButtonUnstyled',
|
|
||||||
// 'Input',
|
|
||||||
'Alert'
|
|
||||||
],
|
|
||||||
defaultRules: [
|
|
||||||
{
|
|
||||||
directives: {
|
|
||||||
background: '--bg',
|
|
||||||
opacity: 0,
|
|
||||||
roundness: 3,
|
|
||||||
shadow: [{
|
|
||||||
x: 1,
|
|
||||||
y: 1,
|
|
||||||
blur: 4,
|
|
||||||
spread: 0,
|
|
||||||
color: '#000000',
|
|
||||||
alpha: 0.6
|
|
||||||
}],
|
|
||||||
'--profileTint': 'color | $alpha(--background 0.5)'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
parent: {
|
|
||||||
component: 'UserCard'
|
|
||||||
},
|
|
||||||
component: 'RichContent',
|
|
||||||
directives: {
|
|
||||||
opacity: 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -86,7 +86,7 @@ export const generateTheme = (inputRuleset, callbacks, debug) => {
|
||||||
|
|
||||||
const themes3 = init({
|
const themes3 = init({
|
||||||
inputRuleset,
|
inputRuleset,
|
||||||
debug
|
debug: true
|
||||||
})
|
})
|
||||||
|
|
||||||
getCssRules(themes3.eager, debug).forEach(rule => {
|
getCssRules(themes3.eager, debug).forEach(rule => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue