diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 582c913..5e7ae2a 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -2,8 +2,13 @@ /* Coded by Louis Vallat */ @font-face { - font-family: 'Rubik'; - src: url("/assets/fonts/Rubik-Medium.ttf"); + font-family: 'JetBrains Mono'; + src: url("/assets/fonts/JetBrainsMono.ttf"); +} + +@font-face { + font-family: 'IBM Plex Mono'; + src: url("/assets/fonts/IBMPlexMono.ttf"); } @font-face { @@ -13,6 +18,7 @@ :root { --bg: #2A2D34; + --light_bg: #414652; --fg: #fefefe; --link: #009DDC; --link_h: #009B72; @@ -80,7 +86,7 @@ nav > a:not(#home_link) { } h1, h2, h3, h4, h5, h6 { - font-family: 'Rubik', sans-serif; + font-family: 'JetBrains Mono', sans-serif; font-weight: bold; margin-top: 10px; margin-bottom: 5px; @@ -126,6 +132,25 @@ footer { font-size: 14px; } +pre { + margin-bottom: 5px; + margin-top: 5px; +} + +pre > code { + padding: 10px; + display: inline-block; + width: 100%; +} + +code { + padding: 5px; + border-radius: 5px; + background-color: var(--light_bg); + font-family: 'IBM Plex Mono', monospace; + line-height: 1.2em; +} + @media screen and (max-width: 992px) { body { margin-right: 10vw; diff --git a/src/assets/fonts/IBMPlexMono.ttf b/src/assets/fonts/IBMPlexMono.ttf new file mode 100644 index 0000000..021eaec Binary files /dev/null and b/src/assets/fonts/IBMPlexMono.ttf differ diff --git a/src/assets/fonts/JetBrainsMono.ttf b/src/assets/fonts/JetBrainsMono.ttf new file mode 100644 index 0000000..9a5202e Binary files /dev/null and b/src/assets/fonts/JetBrainsMono.ttf differ diff --git a/src/assets/fonts/Rubik-Medium.ttf b/src/assets/fonts/Rubik-Medium.ttf deleted file mode 100644 index a4cfd87..0000000 Binary files a/src/assets/fonts/Rubik-Medium.ttf and /dev/null differ diff --git a/src/test.md b/src/test.md index 7d45253..407629b 100644 --- a/src/test.md +++ b/src/test.md @@ -2,3 +2,11 @@ Démo [index](index.html) + + +```py +if __name__ == "__main__": + print("Hello World!") +``` + +This is a `demo`. \ No newline at end of file