aboutsummaryrefslogtreecommitdiff
path: root/src/components/alert.style.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 19:05:18 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 19:05:18 +0000
commit51709ad31893714d98bf7c05cd37d1d07fde65ca (patch)
treeace81acf8842a4063e12ae561f1a1a7de6aab2c6 /src/components/alert.style.js
parent4de9daa1144536f03c86d277b4ec1288dc9df432 (diff)
parent3056017f8e35c98a7fb42162c7e3460a4ebab619 (diff)
Merge branch 'develop' into 'scrobbles-age'
# Conflicts: # src/i18n/en.json
Diffstat (limited to 'src/components/alert.style.js')
-rw-r--r--src/components/alert.style.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/components/alert.style.js b/src/components/alert.style.js
new file mode 100644
index 00000000..19bd4bbb
--- /dev/null
+++ b/src/components/alert.style.js
@@ -0,0 +1,51 @@
+export default {
+ name: 'Alert',
+ selector: '.alert',
+ validInnerComponents: [
+ 'Text',
+ 'Icon',
+ 'Link',
+ 'Border',
+ 'ButtonUnstyled'
+ ],
+ variants: {
+ normal: '.neutral',
+ error: '.error',
+ warning: '.warning',
+ success: '.success'
+ },
+ defaultRules: [
+ {
+ directives: {
+ background: '--text',
+ opacity: 0.5,
+ blur: '9px'
+ }
+ },
+ {
+ parent: {
+ component: 'Alert'
+ },
+ component: 'Border',
+ textColor: '--parent'
+ },
+ {
+ variant: 'error',
+ directives: {
+ background: '--cRed'
+ }
+ },
+ {
+ variant: 'warning',
+ directives: {
+ background: '--cOrange'
+ }
+ },
+ {
+ variant: 'success',
+ directives: {
+ background: '--cGreen'
+ }
+ }
+ ]
+}