style code

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-03-17 00:31:21 +01:00
parent 73943c5022
commit 7e0235fb88
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
6 changed files with 51 additions and 24 deletions

View file

@ -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({