Source Code for /public/css/style.css
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
font-weight: normal;
color:
display: flex;
place-content: center;
overflow: hidden scroll;
background:
font-size: 18px;
line-height: 1.4;
}
.page {
width: 980px;
max-width: 99vw;
margin: 6px 12px 12px;
display: grid;
min-height: 100vh;
border-radius: 24px 24px 0 0;
box-shadow: 6px 6px 14px black;
grid-template: "π π" min-content "π³ πΊοΈ" auto "π₯Ύ π₯Ύ" min-content / 1fr auto;
@media (max-width: 700px) {
grid-template: "π" min-content "πΊοΈ" auto "π³" auto "π₯Ύ" min-content / 1fr;
}
}
header {
grid-area: π;
position: relative;
text-align: center;
min-height: 122px;
padding-right: 150px;
border-radius: 24px 24px 0 0;
display: flex;
flex-direction: column;
gap: 10px;
justify-content: center;
align-items: center;
background:
.title {
margin: 0;
padding: 0;
font-size: 32px;
font-weight: bold;
color:
}
.subtitle {
margin: 0;
padding: 0;
color:
}
&::after {
content: '';
position: absolute;
bottom: -15px;
right: -82px;
height: 135px;
aspect-ratio: 1421 / 841;
background-image: url('/img/logo.svg');
background-size: contain;
background-repeat: no-repeat;
}
}
h1, .h1 {
font-size: 24px;
font-weight: bold;
text-decoration: wavy
}
h2, .h2 {
font-size: 20px;
font-weight: bold;
text-decoration: wavy
}
h3, .h3 {
font-size: 18px;
font-weight: bold;
}
nav {
ol {
margin: 0;
padding: 0 0 0 26px;
}
li {
padding: 2px 0;
&:first-child, &.no-number, &
list-style-type: none;
}
&:not(.appendix) + li.appendix,
&
margin-top: 1em;
}
&.appendix {
font-size: 14px;
}
ul {
padding-left: 1.5ch;
list-style: none;
}
li {
font-size: 14px;
}
}
.active {
position: relative;
list-style-type: none;
& > a {
font-weight: bold;
}
&::after {
content: 'π';
position: absolute;
left: -1.5em;
top: 2px;
}
}
}
.page > nav {
grid-area: πΊοΈ;
background:
color:
padding: 12px;
width: 240px;
@media (max-width: 700px) {
width: 100%;
}
@media (min-height: 780px) {
ol {
position: sticky;
top: 12px;
}
}
a {
color:
&:visited {
color:
}
}
}
main {
grid-area: π³;
background:
padding: 0 12px;
& > ul > li, & > ol > li {
margin: 8px 0;
}
}
footer {
grid-area: π₯Ύ;
padding: 12px;
background:
ul {
display: flex;
flex-wrap: wrap;
gap: 10px 24px;
list-style: none;
padding: 0;
margin: 0;
justify-content: space-around;
}
}
.code-block-container {
margin: 0;
display: flex;
flex-direction: column-reverse;
}
.code-block {
white-space: pre-wrap;
border: 1px solid black;
}
.code-block-container:has(.code-block-actions) .code-block {
margin-top: 0;
}
.code-block-actions ul {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
list-style: none;
gap: 1ch;
font-size: 12px;
justify-content: flex-end;
a {
text-decoration: none;
background:
color:
display: block;
padding: 2px 8px 2px 6px;
border-radius: 3px 3px 0 0;
border: 1px solid black;
border-bottom: none;
&:hover {
background:
color:
}
}
}
.objectives, .tip, .warning {
border-radius: 6px;
border: 1px solid
margin-bottom: 12px;
h2 {
font-size: 18px;
}
}
.tip, .warning, .potion {
position: relative;
padding: 12px 12px 12px 48px;
small {
display: block;
text-align: right;
}
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
}
.objectives {
padding: 0 12px;
background:
}
.tip {
background:
&::before {
position: absolute;
content: 'π‘';
left: 12px;
}
}
.warning {
background:
&::before {
position: absolute;
content: 'β οΈ';
left: 12px;
}
}
.source-tree {
font-family: monospace;
font-size: 14px;
ul {
padding-left: 24px;
}
li {
padding: 0;
margin: 0;
}
}
.potion {
background: lightgreen;
padding: 12px;
}
.potion-list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 24px 12px;
justify-content: space-around;
margin: 0 12px;
padding: 0;
}
.potion, .potion-list li {
display: flex;
gap: 12px;
align-items: center;
font-size: 22px;
list-style: none;
}
.potion-list li {
width: 300px;
}
.potion-img {
width: 72px;
height: 84px;
image-rendering: pixelated;
}