html, body {height: 100%;} html{font-size: 14px;} body{ margin:0.2rem auto; max-width:48rem; padding:0 .62rem; font:1.2rem/1.62 sans-serif; } h1,h2,h3,h4,h5,h6 { line-height: 1; } header h1{ margin-top: 1.4rem; margin-bottom: 1.2rem; } a{ text-decoration: none; } a:link, a:visited {color:#087ca7;} a:hover, a:visited:hover {color:#09b2dc;} ul{ padding-left: 0; margin-left: 0; list-style-position: inside; } li > ul{ margin-left: 1em; } footer p{ margin: 0; } /* Special Design */ .tag{ font-size: 0.8rem; padding: 0.2rem; border-radius: 0.33rem; background-color: #191919; color: white; vertical-align: middle; } /* * Flex is only there to put the footer at the bottom. * Not actually needed. BLOAT!! */ body { display: -webkit-flex; display: -ms-flexbox; display: flex; flex-direction: column; } main{ flex: 1 0 auto; } @media (prefers-color-scheme: dark){ body {color:#fff;background:#191919;} a:link, a:visited {color:#9cf;} a:hover, a:visited:hover {color:#DA4167;} .tag{background-color:white; color:black;} } @media print{ body{ max-width:none } } /* For Media over the mobile view */ @media screen and (min-width: 601px){ nav>a{ margin-left: 2rem; } nav>a:first-child{ padding: 1rem 0; padding-left: 0; margin-left: 0; } } /* For Media under the mobile view */ @media screen and (max-width: 600px){ body{ margin: 0.2rem; text-align: center; } nav>a{ padding: 0.2rem 0; display: block; border-top: 1px dotted black; } nav>a:first-child{ border: none; } ul li{ margin: 0.35rem; } } @media screen and (max-width: 600px) and (prefers-color-scheme: dark){ nav>a{ border-color: white; } }