aboutsummaryrefslogtreecommitdiff
path: root/src/components/input.style.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-21 13:10:11 +0200
committerHenry Jameson <me@hjkos.com>2024-02-21 13:10:11 +0200
commitf609aaba0c9a7c4d3c3d579a2a0021ecd5fc4028 (patch)
treeab8964d6835d2d7f5e072520472b445b50d3fa74 /src/components/input.style.js
parent8a47069cee4bb85e7e1dc291e8d2e7aaf6fddf1d (diff)
improve checkbox styles
Diffstat (limited to 'src/components/input.style.js')
-rw-r--r--src/components/input.style.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/input.style.js b/src/components/input.style.js
index 985d5412..b1c9f3db 100644
--- a/src/components/input.style.js
+++ b/src/components/input.style.js
@@ -12,6 +12,10 @@ const hoverGlow = {
export default {
name: 'Input',
selector: '.input',
+ variant: {
+ checkbox: '.-checkbox',
+ radio: '.-radio'
+ },
states: {
disabled: ':disabled',
hover: ':hover:not(:disabled)',
@@ -22,6 +26,12 @@ export default {
],
defaultRules: [
{
+ variant: 'checkbox',
+ directives: {
+ roundness: 1
+ }
+ },
+ {
directives: {
background: '--fg, -5',
roundness: 3,