Crates.io | xiss-map |
lib.rs | xiss-map |
version | 0.0.1 |
source | src |
created_at | 2023-04-10 06:57:59.159986 |
updated_at | 2023-04-10 06:57:59.159986 |
description | xiss Map Loader |
homepage | https://github.com/localvoid/xiss |
repository | https://github.com/localvoid/xiss |
max_upload_size | |
id | 834890 |
size | 17,790 |
Experimental compiler for modular CSS written in Rust.
@classmap buttonClass {
disabled: ButtonDisabled;
focus: ButtonFocus Focus;
}
@static
@classmap buttonClass {
@static Button;
disabled: ButtonDisabled;
}
@exclude
@classmap buttonClass {
@static Button;
disabled: ButtonDisabled;
focus: ButtonFocus;
@exclude disabled focus;
}
@extern class Button from 'xiss/buttons';
@extern class Button as myButton from 'xiss/buttons';
:const {
--MAIN-BACKGROUND: #333;
}
CSS Map files are stored in a CSV format with four columns:
C
- Class nameV
- VarK
- KeyframesE.g.
C,xiss/example,Button,a
V,xiss/example,MyVar,a
K,xiss/example,anim,a
C,xiss/test,Slider,b
C,xiss/test,SliderDisabled,c
C,xiss/test,SliderActive,d