aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-01-23 00:43:46 +0200
committerHenry Jameson <me@hjkos.com>2024-01-23 00:43:46 +0200
commit0729b529d7da2002f25039e1dad2732302009cf3 (patch)
treebcb93c2ae7b036b8df01ff0e837b366371fee4ad /src/components
parent521d308a6c6777a45c94183751f3305ce23bdad3 (diff)
some more stuff, generating CSS selectors from rules
Diffstat (limited to 'src/components')
-rw-r--r--src/components/button.style.js1
-rw-r--r--src/components/icon.style.js3
-rw-r--r--src/components/panel.style.js1
-rw-r--r--src/components/text.style.js4
-rw-r--r--src/components/underlay.style.js3
5 files changed, 7 insertions, 5 deletions
diff --git a/src/components/button.style.js b/src/components/button.style.js
index 8f2e8f82..1c229f43 100644
--- a/src/components/button.style.js
+++ b/src/components/button.style.js
@@ -1,5 +1,6 @@
export default {
name: 'Button',
+ selector: '.btn',
states: {
hover: ':hover',
disabled: ':disabled',
diff --git a/src/components/icon.style.js b/src/components/icon.style.js
index 1e2781d6..732cf16f 100644
--- a/src/components/icon.style.js
+++ b/src/components/icon.style.js
@@ -1,3 +1,4 @@
export default {
- name: 'Icon'
+ name: 'Icon',
+ selector: '.icon'
}
diff --git a/src/components/panel.style.js b/src/components/panel.style.js
index 1666d923..d34d5434 100644
--- a/src/components/panel.style.js
+++ b/src/components/panel.style.js
@@ -1,5 +1,6 @@
export default {
name: 'Panel',
+ selector: '.panel',
validInnerComponents: [
'Text',
'Icon',
diff --git a/src/components/text.style.js b/src/components/text.style.js
index f87268bb..2aa5e745 100644
--- a/src/components/text.style.js
+++ b/src/components/text.style.js
@@ -1,9 +1,7 @@
export default {
name: 'Text',
+ selector: '',
states: {
faint: '.faint'
- },
- variants: {
- green: '/.greentext'
}
}
diff --git a/src/components/underlay.style.js b/src/components/underlay.style.js
index bae9fc0b..426df1d7 100644
--- a/src/components/underlay.style.js
+++ b/src/components/underlay.style.js
@@ -1,5 +1,6 @@
export default {
- name: 'Panel',
+ name: 'Underlay',
+ selector: '.underlay',
validInnerComponents: [
'Panel'
]