mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
feat: code component font size
This commit is contained in:
parent
63197db239
commit
550c87727d
2 changed files with 5 additions and 0 deletions
3
src/code/code.css
Normal file
3
src/code/code.css
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.melt-code {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
|
@ -1,6 +1,8 @@
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
|
use crate::utils::mount_style::mount_style;
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn Code(children: Children) -> impl IntoView {
|
pub fn Code(children: Children) -> impl IntoView {
|
||||||
|
mount_style("code", include_str!("./code.css"));
|
||||||
view! { <code class="melt-code">{children()}</code> }
|
view! { <code class="melt-code">{children()}</code> }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue