style code
This commit is contained in:
parent
73943c5022
commit
7e0235fb88
6 changed files with 51 additions and 24 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#import "./custom_html.typ" as chtml
|
||||
#import "./theme_picker.typ": theme_picker
|
||||
#import "./theme_colors.typ": theme_colors_css
|
||||
|
||||
/// Make the body of the webpage
|
||||
#let html_body(
|
||||
|
|
@ -11,8 +12,8 @@
|
|||
logo_alt,
|
||||
body
|
||||
) = {
|
||||
theme_colors_css
|
||||
```raw-css
|
||||
|
||||
site-wrapper {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -40,6 +41,20 @@
|
|||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
code-block {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
pre {
|
||||
width: min-content;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
background-color: var(--color-code-bg);
|
||||
box-shadow: inset 0px 0px 5px 0px #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
html.body({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue