1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-22 07:49:38 +01:00
deka-dom-el/docs/index.css

32 lines
602 B
CSS
Raw Normal View History

2023-11-06 19:29:54 +01:00
@import url(https://cdn.simplecss.org/simple.min.css);
:root{
--body-max-width: 45rem;
2023-11-06 19:29:54 +01:00
--marked: #fb3779;
--code: #0d47a1;
--accent: #d81b60;
2023-09-26 16:02:10 +02:00
}
2023-11-06 19:29:54 +01:00
@media (prefers-color-scheme:dark) {
::backdrop, :root {
--accent: #f06292;
--code: #62c1f0;
}
}
body {
grid-template-columns: 1fr min(var(--body-max-width), 90%) 1fr;
2023-09-26 16:02:10 +02:00
}
h1{
text-align: center;
text-wrap: balanc;
2023-11-06 19:29:54 +01:00
grid-column: 1 / 4;
2023-09-26 16:02:10 +02:00
}
.note{
font-size: .9rem;
font-style: italic;
}
.example{
2023-11-06 19:29:54 +01:00
grid-column: 1/4;
width: 100%;
max-width: calc(9/5 * var(--body-max-width));
height: calc(3/5 * var(--body-max-width));
margin-inline: auto;
2023-09-26 16:02:10 +02:00
}