/* Global stylesheet */ * { box-sizing: border-box; } html, body { padding: 0; margin: 0 auto; font-family: var(--font-family); color: var(--text-colour); background-color: var(--background-colour); } p:last-child { margin-bottom: 0; } p { line-height: 1.5; } li { line-height: 1.5; } a { color: var(--text-colour-link); } .fat-hover-link[href] { color: var(--text-colour-header); text-decoration: unset; background-image: linear-gradient( 120deg, var(--hover-link-background-colour), var(--hover-link-background-colour) ); background-size: 100% 0.05em; background-position: 0 90%; background-repeat: no-repeat; transition: background-size 0.1s ease-in, color 0.1s ease-in; } .fat-hover-link[href]:hover, .fat-hover-link[href]:active, .fat-hover-link[href]:focus { background-size: 100% 100%; color: var(--hover-link-text-colour); text-decoration: unset; } header:after { content: ""; display: table; clear: both; } .links-nextprev { display: flex; list-style: none; border-top: 2px solid var(--border-colour); padding: 1em 0; } .links-nextprev a { font-weight: 500; } .links-nextprev a:last-of-type { margin: 0 0 0 auto; } table { margin: 1em 0; } table td, table th { padding-right: 1em; } pre, code { font-family: var(--font-family-monospace); } pre:not([class*="language-"]) { margin: 0.5em 0; line-height: 1.375; /* 22px /16 */ -moz-tab-size: var(--syntax-tab-size); -o-tab-size: var(--syntax-tab-size); tab-size: var(--syntax-tab-size); -webkit-hyphens: none; -ms-hyphens: none; hyphens: none; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; } code { word-break: break-all; } header { display: flex; justify-content: center; background-color: var(--header-colour); } .header-content { display: flex; flex-direction: column; width: 100%; margin: 8vw; max-width: 900px; } footer { display: flex; justify-content: center; font-size: clamp(0.875rem, 0.8185rem + 0.3226vw, 1rem); font-weight: 500; margin: 12vw 8vw 6vw 8vw; & p { font-size: clamp(0.875rem, 0.8185rem + 0.3226vw, 1rem); font-weight: 500; margin: 0; line-height: 1.5; color: var(--subtle-text-colour); } } .footer-content { max-width: 900px; display: flex; align-items: center; width: 100%; } .footer-links { display: flex; gap: 0.75rem; margin: 0 0 0 auto; & a { display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 50%; background-color: transparent; border: 2px solid transparent; transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease; & svg { width: 2rem; height: 2rem; fill: var(--icon-fill-colour); transition: fill 0.25s ease; } &:hover, &:focus-visible { transform: translateY(-3px); border-color: var(--colour-black); } } & a:nth-child(1):hover, & a:nth-child(1):focus-visible { background-color: var(--colour-purple); & svg { fill: var(--icon-fill-colour); } } & a:nth-child(2):hover, & a:nth-child(2):focus-visible { background-color: var(--colour-orange); & svg { fill: var(--icon-fill-colour); } } & a:nth-child(3):hover, & a:nth-child(3):focus-visible { background-color: rgb(15, 115, 255); & svg { fill: var(--colour-white); } } & a:nth-child(4):hover, & a:nth-child(4):focus-visible { background-color: var(--colour-black); & svg { fill: var(--colour-white); } } & a:nth-child(5):hover, & a:nth-child(5):focus-visible { background-color: rgb(10, 102, 194); & svg { fill: var(--colour-white); } } } @media (max-width: 768px) { .footer-content { flex-direction: column; gap: 1.5rem; } .footer-links { margin: 0 auto; } } .postlist { padding: 0; margin: 0; display: grid; gap: clamp(1.88rem, 1.32rem + 3.2vw, 3.12rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .postlist-item { display: flex; flex-direction: column; padding: clamp(1.25rem, 0.6855rem + 3.2258vw, 2.5rem); border: 2px solid var(--colour-black); text-decoration: unset; transition: box-shadow 0.1s ease-out; } .postlist-item:hover, .postlist-item:focus { text-decoration: none; } .postlist-item:nth-child(4n-7) { background-color: var(--colour-green); box-shadow: 10px 10px 0px 0px var(--postlist-item-background-one-colour); &:hover, &:focus { box-shadow: none; } } .postlist-item:nth-child(4n-6) { background-color: var(--colour-purple); box-shadow: 10px 10px 0px 0px var(--postlist-item-background-two-colour); &:hover, &:focus { box-shadow: none; } } .postlist-item:nth-child(4n-5) { background-color: var(--colour-blue); box-shadow: 10px 10px 0px 0px var(--postlist-item-background-three-colour); &:hover, &:focus { box-shadow: none; } } .postlist-item:nth-child(4n-4) { background-color: var(--colour-red); box-shadow: 10px 10px 0px 0px var(--postlist-item-background-four-colour); &:hover, &:focus { box-shadow: none; } } .post-title { display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(1rem, 0.6048rem + 2.2581vw, 1.875rem); font-weight: 500; margin: 0; } .post-date { margin: 1.25rem 0 0 auto; font-weight: 400; font-size: clamp(0.875rem, 0.8185rem + 0.3226vw, 1rem); } /* Tags */ .post-tag { text-transform: capitalize; font-weight: 500; border: 2px solid black; padding: 0.5rem 1rem; border-radius: 30px; text-decoration: unset; background-color: var(--colour-purple); transition: background-color 0.2s ease-out; } .post-tag:hover, .post-tag:focus { background-color: var(--colour-black); color: var(--colour-white); } .postlist-item > .post-tag { align-self: center; } /* Tags list */ .post-metadata { display: inline-flex; flex-wrap: wrap; gap: 1.2em; list-style: none; padding: 0; margin: 0; margin-bottom: 2rem; } .post-metadata time { margin-right: 1em; } /* Direct Links / Markdown Headers */ .header-anchor { text-decoration: none; font-style: normal; font-size: 1em; margin-left: 0.1em; } a[href].header-anchor, a[href].header-anchor:visited { color: transparent; } a[href].header-anchor:focus, a[href].header-anchor:hover { text-decoration: underline; } a[href].header-anchor:focus, :hover > a[href].header-anchor { color: var(--colour-black); } h2 + .header-anchor { font-size: 1.5em; } @view-transition { navigation: auto; } @media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }