first-approach implementation of nesting selectors
This commit is contained in:
parent
65ad514112
commit
bb7fb5e5ce
2 changed files with 40 additions and 7 deletions
8
examples/use-styles/Cargo.lock
generated
8
examples/use-styles/Cargo.lock
generated
|
|
@ -1003,7 +1003,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_build"
|
||||
version = "0.0.0"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"sabry_intrnl",
|
||||
|
|
@ -1015,7 +1015,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_intrnl"
|
||||
version = "0.0.0"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"blake3",
|
||||
|
|
@ -1033,14 +1033,14 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_procmacro"
|
||||
version = "0.0.0"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"sabry_procmacro_impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sabry_procmacro_impl"
|
||||
version = "0.0.0"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ styly!(pub const bundlemod {
|
|||
.someth {
|
||||
@include tokens.clickable;
|
||||
background-color: black;
|
||||
&-dark {
|
||||
background-color: white;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -13,5 +16,6 @@ styly!(pub const filemod:sass "src/main.sass");
|
|||
fn main(){
|
||||
println!("someth class codemod styles: {}", bundlemod::someth);
|
||||
println!("someth class filemod styles: {}", filemod::someth);
|
||||
println!("someth-dark selector will be: {}", bundlemod::_dark(bundlemod::someth));
|
||||
println!("Thats how we used the styles! Good luck!!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue