docs: get rid of those icons, reference the scoping autocompletion
This commit is contained in:
parent
1afaa1d169
commit
6253ad8e8f
3 changed files with 22 additions and 22 deletions
28
README.md
28
README.md
|
|
@ -29,8 +29,19 @@ sabry::sassy!(tokens {"@mixin colored{color: red;}"});
|
|||
```
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -43,9 +54,6 @@ sabry::styly!(component {".btn {color: green;}"});
|
|||
sabry::styly!(extras "tests/assets/mixins.scss");
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>
|
||||
:3
|
||||
</td>
|
||||
</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"]}
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🦀
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -75,9 +80,6 @@ sabry::styly!(breadbadge {"
|
|||
"});
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🪄
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -98,9 +100,6 @@ sabry::styly!(dogs {"#howl {border: none;}"});
|
|||
}
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>
|
||||
^_^
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -113,9 +112,6 @@ sabry::styly!(cssbundle {".c1 {color: white;}"});
|
|||
sabry::styly!(const binary {".c2 {color: black;}"});
|
||||
```
|
||||
|
||||
</td>
|
||||
<td>
|
||||
🏗️
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
10
examples/use-styles/Cargo.lock
generated
10
examples/use-styles/Cargo.lock
generated
|
|
@ -994,7 +994,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
|
|||
|
||||
[[package]]
|
||||
name = "sabry"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-beta.1"
|
||||
dependencies = [
|
||||
"sabry_build",
|
||||
"sabry_intrnl",
|
||||
|
|
@ -1003,7 +1003,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_build"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-beta.1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"sabry_intrnl",
|
||||
|
|
@ -1015,7 +1015,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_intrnl"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-beta.1"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"blake3",
|
||||
|
|
@ -1035,14 +1035,14 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "sabry_procmacro"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-beta.1"
|
||||
dependencies = [
|
||||
"sabry_procmacro_impl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sabry_procmacro_impl"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-beta.1"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ styly!(pub const bundlemod {"
|
|||
background-color: white;
|
||||
}
|
||||
}
|
||||
#fox {
|
||||
color: red;
|
||||
}
|
||||
"});
|
||||
|
||||
styly!(pub filemod:sass "src/main.sass");
|
||||
|
|
@ -19,6 +22,7 @@ styly!(pub 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!("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!!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue