$color-primary: #e1327b; $color-secondary: #edcd1a; $color-accent: #32eaed; $color-bg: #12042d; $content-width: 800px; * { box-sizing: border-box; /* never gets old */ } body { background-color: $color-bg; font-family: sans-serif; color: rgba(255, 255, 255, 0.8); margin: 0; } footer { padding: 20px 0; border-top: thin solid $color-primary; .container { max-width: $content-width; margin: 0 auto; display: flex; flex-direction: horizontal; } .container > * { flex: 1; margin: 0 20px; } } @media(max-width: 550px) { footer .container { display: block; } footer ul { line-height: 2rem; } } h1, h2, h3, h4, h5, h6 { color: $color-primary; } .page-title { padding-bottom: 16px; border-bottom: thin solid rgba(255, 255, 255, 0.2); } p, code, ul, ol { font-size: 1rem; line-height: 1.5rem; font-weight: 400; } @media(min-width: $content-width) { main { p, code, ul, ol { font-size: 1.2rem; line-height: 1.8rem; } } } code { background-color: rgba(0, 0, 0, 0.5); border-radius: 4px; } pre { display: block; padding: 20px; border-radius: 4px; background-color: rgba(0, 0, 0, 0.5); overflow-x: auto; code { background: none; } } header h1 { text-align: center; margin: 20px 0 0; font-weight: 400; font-family: "Oleo Script", sans-serif; } main { max-width: $content-width; margin: 40px auto; padding: 0 20px; } article.feed-item { margin: 0 0 20px; padding: 0 0 20px; border-bottom: thin solid rgba(255, 255, 255, 0.2); :last-child { margin-bottom: 0; } } article.feed-item:first-child { margin-top: 0; padding-top: 0; } article.feed-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; } a { color: $color-primary; } nav { border-bottom: thin solid $color-primary; ul { list-style-type: none; padding: 0; margin: 0 auto; max-width: $content-width; li { display: inline-block; a { padding: 20px; display: inline-block; font-weight: 700; } } li.current a { text-decoration: none; } } }