docs: get rid of those icons, reference the scoping autocompletion

This commit is contained in:
Yiffy Dev 2024-11-01 10:25:11 +05:00 • committed by spushk
commit bac4ea9e0e
Signed by: spushk
GPG key ID: 7797B761E105E8AA
3 changed files with 22 additions and 22 deletions

View file

@ -29,8 +29,19 @@ sabry::sassy!(tokens {"@mixin colored{color: red;}"});
``` ```
</td> </td>
</tr>
<tr>
<td> <td>
📦
Get the *(almost)* proper autocompletion for your scope from rust-analyzer
```rust
sabry::styly!(scope {".cls1{} #id1{}"});
/* autocompleted for you */
scope::cls1;
scope::theid1;
```
</td> </td>
</tr> </tr>
<tr> <tr>
@ -43,9 +54,6 @@ sabry::styly!(component {".btn {color: green;}"});
sabry::styly!(extras "tests/assets/mixins.scss"); sabry::styly!(extras "tests/assets/mixins.scss");
``` ```
</td>
<td>
:3
</td> </td>
</tr> </tr>
<tr> <tr>
@ -58,9 +66,6 @@ Depend on styles with cargo, at build time, which brings all the rusty sweeties
tgk_brandstyle = {version = "0.0.1", features = ["utils"]} tgk_brandstyle = {version = "0.0.1", features = ["utils"]}
``` ```
</td>
<td>
🦀
</td> </td>
</tr> </tr>
<tr> <tr>
@ -75,9 +80,6 @@ sabry::styly!(breadbadge {"
"}); "});
``` ```
</td>
<td>
🪄
</td> </td>
</tr> </tr>
<tr> <tr>
@ -98,9 +100,6 @@ sabry::styly!(dogs {"#howl {border: none;}"});
} }
``` ```
</td>
<td>
^_^
</td> </td>
</tr> </tr>
<tr> <tr>
@ -113,9 +112,6 @@ sabry::styly!(cssbundle {".c1 {color: white;}"});
sabry::styly!(const binary {".c2 {color: black;}"}); sabry::styly!(const binary {".c2 {color: black;}"});
``` ```
</td>
<td>
🏗️
</td> </td>
</tr> </tr>
</table> </table>

View file

@ -994,7 +994,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
[[package]] [[package]]
name = "sabry" name = "sabry"
version = "0.0.1-alpha.2" version = "0.0.1-beta.1"
dependencies = [ dependencies = [
"sabry_build", "sabry_build",
"sabry_intrnl", "sabry_intrnl",
@ -1003,7 +1003,7 @@ dependencies = [
[[package]] [[package]]
name = "sabry_build" name = "sabry_build"
version = "0.0.1-alpha.2" version = "0.0.1-beta.1"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"sabry_intrnl", "sabry_intrnl",
@ -1015,7 +1015,7 @@ dependencies = [
[[package]] [[package]]
name = "sabry_intrnl" name = "sabry_intrnl"
version = "0.0.1-alpha.2" version = "0.0.1-beta.1"
dependencies = [ dependencies = [
"base64", "base64",
"blake3", "blake3",
@ -1035,14 +1035,14 @@ dependencies = [
[[package]] [[package]]
name = "sabry_procmacro" name = "sabry_procmacro"
version = "0.0.1-alpha.2" version = "0.0.1-beta.1"
dependencies = [ dependencies = [
"sabry_procmacro_impl", "sabry_procmacro_impl",
] ]
[[package]] [[package]]
name = "sabry_procmacro_impl" name = "sabry_procmacro_impl"
version = "0.0.1-alpha.2" version = "0.0.1-beta.1"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

View file

@ -12,6 +12,9 @@ styly!(pub const bundlemod {"
background-color: white; background-color: white;
} }
} }
#fox {
color: red;
}
"}); "});
styly!(pub filemod:sass "src/main.sass"); styly!(pub filemod:sass "src/main.sass");
@ -19,6 +22,7 @@ styly!(pub filemod:sass "src/main.sass");
fn main(){ fn main(){
println!("someth class codemod styles: {}", bundlemod::someth); println!("someth class codemod styles: {}", bundlemod::someth);
println!("someth class filemod styles: {}", filemod::someth); println!("someth class filemod styles: {}", filemod::someth);
//println!("someth-dark selector will be: {}", bundlemod::_dark(bundlemod::someth)); println!("someth-dark selector will be: {}", bundlemod::___dark(bundlemod::someth));
println!("#fox id will be: {}", bundlemod::thefox);
println!("Thats how we used the styles! Good luck!!"); println!("Thats how we used the styles! Good luck!!");
} }