Edit colors and layout

master
Emil Miler 2 weeks ago
parent 27a515707e
commit df6a709636

@ -5,11 +5,11 @@ $width-wrap: 960px;
$width-narrow: $width-wrap*0.75; $width-narrow: $width-wrap*0.75;
$col-accent: #fc0; $col-accent: #fc0;
$col-dark: #131516; $col-dark: rgb(29, 30, 32);
$col-medium: lighten($col-dark, 8); $col-light: rgb(46, 46, 51);
$col-light: lighten($col-dark, 30);
$col-white: #e8e6e3; $col-white: #e8e6e3;
$col-offwhite: darken($col-white, 25); $col-offwhite: darken($col-white, 25);
$col-border: rgb(51, 51, 51);
*, *:before, *:after { *, *:before, *:after {
@ -26,7 +26,7 @@ body {
width: 100%; width: 100%;
min-height: 100vh; min-height: 100vh;
margin: 0 auto; margin: 0 auto;
background: $col-medium; background: $col-dark;
color: $col-white; color: $col-white;
font-family: open-sans, sans; font-family: open-sans, sans;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
@ -62,6 +62,7 @@ body>header {
background-size: auto 60%, cover, cover; background-size: auto 60%, cover, cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
border-radius: 0 0 .5rem .5rem;
@media only screen and (min-width: $width-narrow) { @media only screen and (min-width: $width-narrow) {
height: 10rem; height: 10rem;
@ -73,6 +74,7 @@ body>header {
position: relative; position: relative;
width: 100%; width: 100%;
height: 3rem; height: 3rem;
margin-bottom: 2rem;
background: $col-dark; background: $col-dark;
display: flex; display: flex;
@ -101,7 +103,7 @@ body>header {
text-decoration: none; text-decoration: none;
&:hover, &.active { &:hover, &.active {
background: $col-medium; background: $col-light;
border-bottom: 2px solid $col-accent; border-bottom: 2px solid $col-accent;
} }
@ -115,11 +117,10 @@ body>header {
body>main { body>main {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1.5rem;
section { section {
padding: 1.5rem; padding: 0;
background: $col-dark;
h2 { h2 {
margin: 3rem 0 2rem 0; margin: 3rem 0 2rem 0;
@ -134,6 +135,18 @@ body>main {
background: $col-accent; background: $col-accent;
} }
&>div {
width: 100%;
padding: 2rem;
background: inherit;
border: 1px solid $col-border;
border-radius: .5rem;
@media only screen and (min-width: $width-narrow) {
background: $col-light;
}
}
*:first-child { *:first-child {
margin-top: 0; margin-top: 0;
} }
@ -145,19 +158,12 @@ body>main {
section.flex { section.flex {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1.5rem;
padding: 0;
background: inherit; background: inherit;
@media only screen and (min-width: $width-narrow) { @media only screen and (min-width: $width-narrow) {
flex-direction: row; flex-direction: row;
} }
div {
width: 100%;
background: $col-dark;
padding: 1.5rem;
}
} }
section.toc { section.toc {
@ -183,27 +189,34 @@ body>footer {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 1rem; gap: 1rem;
background: none; background: none;
padding: 0; padding: 1rem;
@media only screen and (min-width: $width-narrow) { @media only screen and (min-width: $width-narrow) {
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
} }
@media only screen and (min-width: $width-wrap) {
padding: 0;
}
&>a { &>a {
display: flex; display: flex;
min-height: 10rem; min-height: 10rem;
background: $col-dark; background: $col-light;
color: inherit; color: inherit;
border: 1px solid $col-border;
border-radius: .5rem;
overflow: hidden;
.title { .title {
font-weight: bold; font-weight: bold;
font-size: 1.5em; font-size: 1.1em;
margin-bottom: .5em; margin-bottom: .5em;
line-height: 1; line-height: 1;
} }
.description { .description {
padding: 1.5em 1em; padding: 1.5em;
width: 100%; width: 100%;
p { p {

@ -14,10 +14,12 @@
</div> </div>
</section> </section>
<section> <section>
<div>
{% if section %} {% if section %}
{{ section.content | safe }} {{ section.content | safe }}
{% elif page %} {% elif page %}
{{ page.content | safe }} {{ page.content | safe }}
{% endif %} {% endif %}
</div>
</section> </section>
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save