183 lines
3.3 KiB
SCSS
183 lines
3.3 KiB
SCSS
body > header {
|
|
margin: 1em 0;
|
|
padding: 0 2.5em 0 2.5em;
|
|
}
|
|
|
|
body > header {
|
|
display: grid;
|
|
column-gap: 1em;
|
|
|
|
grid-template-columns: min-content auto min-content;
|
|
grid-template-areas:
|
|
"logo nav actions";
|
|
|
|
a.logo {
|
|
grid-area: logo;
|
|
place-self: center;
|
|
}
|
|
|
|
section.navbar {
|
|
grid-area: nav;
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
|
|
li {
|
|
display: inline;
|
|
line-height: 2;
|
|
width: 100%;
|
|
|
|
a {
|
|
display: inline-block;
|
|
padding: 0 1em;
|
|
font-family: $font-main;
|
|
|
|
&.active {
|
|
background-color: rgba($color-link, 0.1);
|
|
}
|
|
&:active {
|
|
background-color: rgba($color-link-hover, 0.2);
|
|
}
|
|
}
|
|
}
|
|
|
|
li.sub > a {
|
|
padding-left: 3rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
section.actions {
|
|
grid-area: actions;
|
|
justify-self: end;
|
|
align-self: center;
|
|
display: flex;
|
|
|
|
a {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
a.navbar-toggle {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
main {
|
|
margin: 0 0 3em 0;
|
|
display: flex;
|
|
color: $color-text;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
content {
|
|
font-family: $font-read;
|
|
padding: 0.5em 2.5em 2.5em 2.5em;
|
|
flex: 1;
|
|
overflow-x: auto;
|
|
overflow-y: visible;
|
|
transition: background-color 0.2s ease;
|
|
|
|
#{headings(1,6,"header >")} {
|
|
margin: 0;
|
|
padding-bottom: 0.3em;
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
content > header {
|
|
margin: 0;
|
|
padding-bottom: 1em;
|
|
border-bottom: 1px dashed $color-main-border;
|
|
transition: border 0.2s ease;
|
|
|
|
#{headings(1,6)} {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
content ul,
|
|
content ol {
|
|
padding-left: 1em;
|
|
line-height: 1.5;
|
|
}
|
|
content ul {
|
|
list-style-type: disclosure-closed;
|
|
}
|
|
|
|
article {
|
|
padding: 2em 0;
|
|
border-bottom: 1px dashed $color-main-border;
|
|
transition: border 0.2s ease;
|
|
|
|
// Hack to fix <pre> overflow
|
|
width: 100%;
|
|
display: table;
|
|
table-layout: fixed;
|
|
|
|
p {
|
|
text-align: justify;
|
|
}
|
|
}
|
|
|
|
article.single {
|
|
padding: 0.5em 0;
|
|
}
|
|
|
|
sidebar {
|
|
font-family: $font-main;
|
|
width: 20em;
|
|
padding: 0.5em 1.5em 1.5em 1.5em;
|
|
box-sizing: border-box;
|
|
border-left: 1px dashed $color-main-border;
|
|
transition: border 0.2s ease;
|
|
|
|
h1 {
|
|
font-size: 1.4em;
|
|
}
|
|
#{headings(1,6)} {
|
|
margin: 0;
|
|
padding-bottom: 0.3em;
|
|
}
|
|
}
|
|
|
|
sidebar > section {
|
|
padding: 1rem 0;
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
list-style-position: inside;
|
|
|
|
li {
|
|
line-height: 2;
|
|
width: 100%;
|
|
|
|
a {
|
|
display: block;
|
|
padding: 0 1.5rem;
|
|
font-family: $font-main;
|
|
|
|
&.active {
|
|
background-color: rgba($color-link, 0.1);
|
|
}
|
|
&:active {
|
|
background-color: rgba($color-link-hover, 0.2);
|
|
}
|
|
}
|
|
}
|
|
|
|
li.sub > a {
|
|
padding-left: 3rem;
|
|
}
|
|
}
|
|
}
|
|
sidebar > section > ul {
|
|
margin: 0 -1.5rem;
|
|
padding-left: 0;
|
|
}
|
|
|
|
footer {
|
|
font-family: $font-main;
|
|
}
|