/* ---------------------- */ /* General configurations */ /* ---------------------- */ html { min-height: 100%; font-size: 62.5%; } body { font-family: "Fira Code", monospace; background-color: #282c34; color: #f3f3f3; font-size: 1.7em; line-height: 1.7em; } nav, header, main, footer { margin: 0 auto; max-width: 900px; } h1, h2, h3, h4 { font-weight: bold; } h1 { font-size: 2.5em; line-height: 1.4em; text-align: center; margin-top: 60px; margin-bottom: 30px; } h2 { font-size: 1.8em; line-height: 1.2em; margin-top: 40px; margin-bottom: 20px; } h3 { font-size: 1.3em; line-height: 1.5em; margin-top: 40px; margin-bottom: 20px; } p { font-size: 0.95em; line-height: 1.5em; margin-top: 0px; margin-bottom: 12px; } a { color: #61adf5; text-decoration: none; } a:hover { color: #c678dd; } li { line-height: 1.7em; font-size: 12pt; } pre { padding-left: 20px; padding-bottom: 5px; margin-top: 0px; margin-bottom: 5px; overflow: auto; line-height: 1.5em; } code { font-family: "Fira Code", monospace; font-size: 0.95em; color: #98c379; } dd { display: normal; } blockquote { font-style: italic; } /* ------ */ /* Navbar */ /* ------ */ nav { display: flex; } nav ul { width: 100%; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0; } .nav-item { text-align: center; width: 3em; height: 1.5em; padding: 5%; font-size: 1.5em; font-weight: 500; } .nav-item a { color: #e5c07b; } .nav-item a:hover { color: #e06c75; } /* ---------------- */ /* Header and main */ /* ---------------- */ header { height: 40vh; min-height: 200px; display: flex; flex-direction: column; align-content: center; justify-content: center; } header h1, header h2 { text-align: center; } header h1 { font-size: 5em; line-height: 1.6em; margin-top: 16px; margin-bottom: 10px; } header h2 { font-size: 1.8em; font-weight: 400; margin-top: 0px; margin-bottom: 0px; } /* ---- */ /* Home */ /* ---- */ .blog h2, .blog h3 { } ul.posts-list, ul.categories-list { list-style: none; padding-left: 0px; } ul.posts-list h2, ul.posts-list h3, ul.posts-list p { margin-top: 5px; margin-bottom: 5px; } ul.posts-list li { margin-top: 0px; margin-bottom: 40px; } ul.categories-list li { margin-top: 0px; margin-bottom: 60px; } /* ----- */ /* Posts */ /* ----- */ .date { text-align: right; } /* ------ */ /* Footer */ /* ------ */ footer { border-top: 1px solid #dedede; padding-top: 25px; padding-bottom: 8px; margin-top: 100px; text-align: center; line-height: 1.3em; } footer p { font-size: 0.8em; line-height: 1.2em; margin-top: 0px; margin-bottom: 5px; } /* ------------- */ /* Media queries */ /* ------------- */ @media (max-width: 768px) { header { height: 30vh; } header h1 { font-size: 3em; } header h2 { font-size: 1.3em; } .nav-item { font-size: 1.3em; } } @media (max-width: 576px) { header h1 { font-size: 2em; } header h2 { font-size: 1em; } h1 { font-size: 1.8em; } h2 { font-size: 1.2em; } h3 { font-size: 1em; } }