mylloon.fr/static/css/style.css
Mylloon 9dfcc1101d
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
Basic cours support (#44)
feat: Basic support for new `/cours` endpoint (not ready for release yet), see commit description for more

- Basic /cours support
- Fix LaTeX support (see #47 / cours+blog)
  - Better detection of when there is LaTeX in document
  - Don't shuffle markdown and LaTeX processing (thanks to comrak)
  - Macros on release
- Local image support (cours+blog)
- PDF support
- Support of markdown files integration in other markdown files
- Very basic exclusion support in toc (need a lot of improvement!!)
- Update multiple dependencies (actix-web, ramhorns, comrak, reqwest, hljs)
- Reformat some code
- ToC in /cours support (very basic, works via building it in rust and processing it in js)
- Remove very old assets (font + jspdf)
- Hide navbar when printing the website
- New tag in index page
- Fix OCaml support for HLJS + add "pseudocode" derived from Julia

Reviewed-on: #44
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2024-04-01 18:11:46 +02:00

73 lines
1,013 B
CSS

/* Theme of the pages */
html {
background-color: var(--background);
font-family: var(--font-family);
}
body,
a {
color: var(--font-color);
font-size: var(--font-size);
hyphens: auto;
}
a {
transition: opacity 0.2s;
}
a:hover {
opacity: 0.6;
}
main {
position: relative;
font-size: var(--font-size);
padding: 2em 1em;
margin: 0 auto;
max-width: 640px; /* breakpoint */
}
/* Navigation bar across all of the pages */
header nav {
text-align: center;
}
header nav li {
display: inline-block;
}
/* Maybe do this only with 'large' screens */
header nav p::after {
content: "·";
padding: 10px;
}
/* breakpoint */
@media only screen and (max-width: 640px) {
header nav p::after {
padding: 6px;
}
}
header nav li:last-child p::after {
content: "";
}
header nav a {
text-decoration: none;
color: var(--link-color);
}
header nav a:hover {
text-decoration: underline;
}
.bold {
font-weight: bold;
}
@media print {
header nav {
visibility: hidden;
}
}