diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-11 17:13:33 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-11 17:13:33 +0530 |
| commit | 67748db74f73343b054ee0af1763e376a5470416 (patch) | |
| tree | 39b8df64ea1d657ef107fcdfed2da8ce66063589 /examples/api/content.css | |
| parent | dfd4da6ca2d06c9d05d5c7e297304316da211dd4 (diff) | |
| download | css-everything-67748db74f73343b054ee0af1763e376a5470416.tar.gz css-everything-67748db74f73343b054ee0af1763e376a5470416.zip | |
feat: adds more functions for eval
Diffstat (limited to 'examples/api/content.css')
| -rw-r--r-- | examples/api/content.css | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/api/content.css b/examples/api/content.css new file mode 100644 index 0000000..5463ba2 --- /dev/null +++ b/examples/api/content.css @@ -0,0 +1,26 @@ + +#output-container-content { + padding: 0.5rem; + margin-top: 1rem; + border: 1px solid #888; + + --cssx-children: counter-text btn-increment; + --count: '0'; +} +#output-container-content::after { + content: "Loaded from external stylesheet"; +} + +#counter-text {} +#counter-text::after { content: var(--count) } + +#btn-increment { + display: inline-block; + border: 1px solid gray; + padding: 0.3rem 0.6rem; + font-size: 0.9rem; + cursor: pointer; + + --cssx-on-click: update(output-container-content, --count, '99'); +} +#btn-increment::after { content: "Increment" } |
