@import url("/assets/css/variables.css"); @import url("/assets/css/nav.css"); @import url("/assets/css/theme-light.css"); @import url("/assets/css/theme-dark.css"); :root { --view: 18rem; } body { font-family: "Rubik", sans-serif; font-size: 100%; margin: 0; padding: 0; } main { padding: var(--pad-xl) var(--pad-xl) 4rem calc(var(--view) + var(--pad-xl)); overflow: hidden; } article { border-style: solid; border-width: 2px; border-radius: var(--round); height: max-content; padding: var(--pad-xl); & a { font-weight: 500; } & s { text-decoration-style: line-through; text-decoration-thickness: 0.1em; } & ul { & li { margin: 0; & p { margin: 0; } } } & u { text-decoration-style: double; text-decoration-thickness: 2px; } & em { font-weight: 200; } & p { word-wrap: break-word; padding: var(--pad-sm) } & code:not(pre *) { padding: 0 var(--pad-sm); } & pre { display: flex; width: auto; overflow: scroll; padding: var(--pad-m); white-space: pre-wrap; word-break: break-word; } & pre, code:not(pre *) { transition: background-color var(--trans), border-color var(--trans); border-style: solid; border-width: 2px; border-radius: var(--round); font-weight: bold; } & h3 { font-size: 1.6rem; margin: 0; & a { display: inline-block; transition: color var(--trans), background-color var(--trans); border-radius: inherit; height: max-content; padding: 0 0.4rem; } } & figure { margin: 0; border-style: solid; border-width: 2px; padding: var(--pad-m); border-radius: var(--round); display: flex; flex-direction: column; } & section { & a { text-decoration: none; } & figure img { border-radius: var(--round); } & figcaption { font-weight: normal; font-style: italic; padding: var(--pad-l); } } } /* Navigation */ body > nav { display: flex; flex-direction: column; overflow: hidden; padding: 1rem; position: fixed; top: 0; width: var(--view); height: 100%; } body > nav ul { margin: 0; padding: 0; } nav > details { font-size: 1.4rem; } nav > details > summary::marker { content: none; } body > nav ul li { display: inherit; flex-direction: row; } body > nav a { display: flex; font-size: 1.125rem; font-weight: bold; height: var(--pad-xl); line-height: var(--pad-xl); } details { cursor: pointer; } /* Navigation > Icons */ svg { fill: currentColor; stroke: currentColor; stroke-width: 0; } body > nav li img { border-radius: 100%; } body > nav a svg, body > nav li img, body > nav summary svg { margin: 0 8px 0 8px; width: 20px; height: 20px; } body > nav li img, body > nav a svg { align-self: center; } body > nav details { display: flex; align-items: center; } body > nav > ul > svg { overflow: visible; text-anchor: start; } ul:has(img, svg):not(article ul) { list-style-type: none; } :is(main article, main section):not(:last-child) { margin-bottom: var(--pad-xl); } img[src*="/assets/img/flag/"] { height: 32px; border-radius: 0.2rem; border-style: solid; border-width: 2px; border-color: #fff; } /* Mobile view */ @media screen and (max-width: 920px) { body > nav { position: initial; width: 100%; } main { padding: var(--pad-l); } main > section { flex-direction: column; } main > section { width: initial; } article { max-width: initial; width: auto; } body > nav::before { content: none; } body > nav { flex-direction: row; top: 0; border-right: 0; width: 100%; & details { height: fit-content; } & details { width: 100%; } } body::after { content: ""; } } @media screen and (max-width: 400px) { article { padding: var(--pad-l) !important; } body > nav { flex-direction: column; justify-content: start; & details[open] { width: 100%; } } }