Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85806663
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
7 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/chat_message/chat_message.style.js b/src/components/chat_message/chat_message.style.js
index 73068a7a52..76b5658233 100644
--- a/src/components/chat_message/chat_message.style.js
+++ b/src/components/chat_message/chat_message.style.js
@@ -1,29 +1,27 @@
export default {
name: 'ChatMessage',
selector: '.chat-message',
variants: {
outgoing: '.outgoing'
},
validInnerComponents: [
'Text',
'Icon',
'Border',
- // Optimization: don't put heavy components unless needed
- // 'Button',
'PollGraph'
],
defaultRules: [
{
directives: {
background: '--bg, 2',
backgroundNoCssColor: 'yes'
}
},
{
variant: 'outgoing',
directives: {
background: '--bg, 5'
}
}
]
}
diff --git a/src/components/mobile_drawer.style.js b/src/components/mobile_drawer.style.js
index da3923fc96..0f2cf4e593 100644
--- a/src/components/mobile_drawer.style.js
+++ b/src/components/mobile_drawer.style.js
@@ -1,40 +1,15 @@
export default {
name: 'MobileDrawer',
selector: '.mobile-drawer',
validInnerComponents: [
- 'Text',
- 'Link',
- 'Icon',
- 'Border',
- // Optimization: don't put heavy components unless needed
- // 'Button',
- // 'ButtonUnstyled',
- // 'Input',
- 'MenuItem',
- 'Notification',
- 'Alert'
+ 'MenuItem'
],
defaultRules: [
{
directives: {
background: '--bg',
backgroundNoCssColor: 'yes'
}
- },
- {
- component: 'PanelHeader',
- parent: { component: 'MobileDrawer' },
- directives: {
- background: '--fg',
- shadow: [{
- x: 0,
- y: 0,
- blur: 4,
- spread: 0,
- color: '#000000',
- alpha: 0.6
- }]
- }
}
]
}
diff --git a/src/components/panel.style.js b/src/components/panel.style.js
index 88dcf4382f..2c8956ae19 100644
--- a/src/components/panel.style.js
+++ b/src/components/panel.style.js
@@ -1,46 +1,47 @@
export default {
name: 'Panel',
selector: '.panel',
validInnerComponents: [
'Text',
'Link',
'Icon',
'Border',
'PanelHeader',
'Post',
- 'Notification'
+ 'Notification',
+ 'MenuItem'
],
validInnerComponentsLite: [
'Text',
'Link',
'Icon',
'Border',
'PanelHeader'
],
defaultRules: [
{
directives: {
backgroundNoCssColor: 'yes',
background: '--bg',
roundness: 3,
blur: '5px',
shadow: [{
x: 0,
y: 0,
blur: 3,
spread: 0,
color: '#000000',
alpha: 0.5
},
{
x: 0,
y: 4,
blur: 6,
spread: 3,
color: '#000000',
alpha: 0.3
}]
}
}
]
}
diff --git a/src/components/panel_header.style.js b/src/components/panel_header.style.js
index 06a4fa7243..4e5f97760c 100644
--- a/src/components/panel_header.style.js
+++ b/src/components/panel_header.style.js
@@ -1,39 +1,38 @@
export default {
name: 'PanelHeader',
selector: '.panel-heading',
validInnerComponents: [
'Text',
'Link',
'Icon',
'Button',
'ButtonUnstyled',
- 'Badge',
'Alert'
],
defaultRules: [
{
component: 'PanelHeader',
directives: {
backgroundNoCssColor: 'yes',
background: '--fg',
shadow: [{
x: 0,
y: 1,
blur: 3,
spread: 0,
color: '#000000',
alpha: 0.4
},
{
x: 0,
y: 1,
blur: 0,
spread: 0,
color: '#ffffff',
alpha: 0.2,
inset: true
}]
}
}
]
}
diff --git a/src/components/popover.style.js b/src/components/popover.style.js
index 9c87a3c954..455b5f5e0c 100644
--- a/src/components/popover.style.js
+++ b/src/components/popover.style.js
@@ -1,35 +1,27 @@
export default {
name: 'Popover',
selector: '.popover',
lazy: true,
variants: {
modal: '.modal'
},
validInnerComponents: [
- 'Text',
- 'Link',
- 'Icon',
- 'Border',
- // Optimization: don't put heavy components unless needed
- // 'Button',
- // 'ButtonUnstyled',
- // 'Input',
'MenuItem'
],
defaultRules: [
{
directives: {
background: '--bg',
blur: '10px',
shadow: [{
x: 2,
y: 2,
blur: 3,
spread: 0,
color: '#000000',
alpha: 0.5
}]
}
}
]
}
diff --git a/src/components/status/post.style.js b/src/components/status/post.style.js
index a63cbed384..43e21a16e0 100644
--- a/src/components/status/post.style.js
+++ b/src/components/status/post.style.js
@@ -1,40 +1,28 @@
export default {
name: 'Post',
selector: '.Status',
states: {
selected: '.-focused'
},
validInnerComponents: [
'Text',
'Link',
'Icon',
'Border',
- // Optimization: don't put heavy components unless needed
- // 'Button',
- // 'ButtonUnstyled',
- // 'Input',
'Avatar',
'PollGraph'
],
- validInnerComponentsLite: [
- 'Text',
- 'Link',
- 'Icon',
- 'Border',
- 'ButtonUnstyled',
- 'Avatar'
- ],
defaultRules: [
{
directives: {
background: '--bg'
}
},
{
state: ['selected'],
directives: {
background: '--inheritedBackground, 10'
}
}
]
}
diff --git a/src/components/top_bar.style.js b/src/components/top_bar.style.js
index 5aaace6391..89c5243db1 100644
--- a/src/components/top_bar.style.js
+++ b/src/components/top_bar.style.js
@@ -1,58 +1,58 @@
export default {
name: 'TopBar',
selector: 'nav',
validInnerComponents: [
'Link',
'Text',
'Icon',
// Optimization: don't put heavy components unless needed
- // 'Button',
- // 'ButtonUnstyled',
+ 'Button',
+ 'ButtonUnstyled',
'Input',
'Badge'
],
defaultRules: [
{
directives: {
background: '--fg',
shadow: [{
x: 0,
y: 1,
blur: 4,
spread: 0,
color: '#000000',
alpha: 0.4
},
{
x: 0,
y: 2,
blur: 7,
spread: 0,
color: '#000000',
alpha: 0.3
}]
}
},
{
component: 'Link',
parent: {
component: 'TopBar'
},
directives: {
textColor: '--text'
}
},
{
component: 'Icon',
parent: {
component: 'ButtonUnstyled',
parent: {
component: 'TopBar'
}
},
directives: {
textColor: '--parent--text'
}
}
]
}
diff --git a/src/components/user_card/user_card.style.js b/src/components/user_card/user_card.style.js
index e77963a02e..b6e256392a 100644
--- a/src/components/user_card/user_card.style.js
+++ b/src/components/user_card/user_card.style.js
@@ -1,17 +1,12 @@
export default {
name: 'UserCard',
selector: '.user-card',
notEditable: true,
- validInnerComponents: [
- 'Text',
- 'Link',
- 'Icon',
- ],
defaultRules: [
{
directives: {
'--profileTint': 'color | $alpha(--background 1)'
}
}
]
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Oct 13, 7:40 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1786647
Default Alt Text
(7 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment