diff options
| author | Henry Jameson <me@hjkos.com> | 2024-01-31 17:39:51 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-01-31 17:39:51 +0200 |
| commit | 53a4b1f9a6a9aa6bc044609c3accb074d924daf9 (patch) | |
| tree | 1ee4cf91db73b5c63db776e37dbc2e8173dc3172 /src/components/link.style.js | |
| parent | ff2db7a247284cb32933b83c56286a942923a398 (diff) | |
better virtual components and stuff
Diffstat (limited to 'src/components/link.style.js')
| -rw-r--r-- | src/components/link.style.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/link.style.js b/src/components/link.style.js new file mode 100644 index 00000000..0128fd91 --- /dev/null +++ b/src/components/link.style.js @@ -0,0 +1,25 @@ +export default { + name: 'Link', + selector: 'a', + virtual: true, + states: { + faint: '.faint' + }, + defaultRules: [ + { + component: 'Link', + directives: { + textColor: '--link' + } + }, + { + component: 'Link', + state: ['faint'], + directives: { + textColor: '--link', + textOpacity: 0.5, + textOpacityMode: 'fake' + } + } + ] +} |
