* Create new css module parser * Use css module processing * Make hot reloading work for css_module macro * Change css_module macro shape and rename to styles * Add css_module example * Update styles macro documentation * Remove hidden from styles macro * Remove unneeded param * Remove unneeded visibility * Improve `styles!` macro documentation * Clippy * Remove unneeded method * Clippy * Clippy * Replace panic with anyhow * Update css_module macro to attribute macro * Update macro docs * chore: Cargo.lock * Clippy * respect semver by deprecating old func * update to latest winnow --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
11 lines
242 B
CSS
11 lines
242 B
CSS
.container {
|
|
background-color: lightblue;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* The `:global` selector can be used to define global styles that are not scoped */
|
|
:global(.global-class) {
|
|
color: red;
|
|
font-weight: bold;
|
|
} |