first-approach implementation of nesting selectors

This commit is contained in:
Yiffy Dev 2024-10-30 16:33:50 +05:00 • committed by spushk
commit 91b861fdbe
Signed by: spushk
GPG key ID: 7797B761E105E8AA
2 changed files with 40 additions and 7 deletions

View file

@ -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",

View file

@ -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!!");
}