Website/docs/assets/scss/style.scss

261 lines
4.8 KiB
SCSS
Raw Normal View History

2020-10-13 01:18:11 +02:00
@import './utils/theme.scss';
@import './utils/elevation.scss';
2020-11-25 13:34:49 +01:00
// @import './utils/typography.scss';
2020-10-13 01:18:11 +02:00
@import './components/aki-button.scss';
@import './components/aki-card.scss';
@import './components/aki-divider.scss';
@import './components/aki-toolbar.scss';
2020-11-25 13:34:49 +01:00
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
2020-10-13 01:18:11 +02:00
2020-11-25 13:34:49 +01:00
// TODO: Media queries for smaller screens and devices.
2020-10-13 01:18:11 +02:00
html {
2020-11-26 10:34:42 +01:00
font-size: 100%; // 16px
2020-10-13 01:18:11 +02:00
}
body {
display: flex;
flex-direction: column;
2020-11-25 13:34:49 +01:00
font-family: 'Roboto', sans-serif;
font-weight: 400;
2020-10-13 01:18:11 +02:00
height: 100vh;
2020-11-25 13:34:49 +01:00
line-height: 1.75;
2020-10-13 01:18:11 +02:00
margin: 0;
padding: 0;
width: 100vw;
}
2020-11-25 13:34:49 +01:00
p {
margin-bottom: 1rem;
}
h1,
h2,
h3,
h4,
h5 {
margin: 3rem 0 1.38rem;
font-family: 'Roboto', sans-serif;
font-weight: 400;
line-height: 1.3;
}
h1 {
2020-11-25 18:17:22 +01:00
// margin-top: 0;
font-size: 4.209rem;
2020-11-25 13:34:49 +01:00
}
h2 {
2020-11-25 18:17:22 +01:00
font-size: 3.157rem;
2020-11-25 13:34:49 +01:00
}
h3 {
2020-11-25 18:17:22 +01:00
font-size: 2.369rem;
2020-11-25 13:34:49 +01:00
}
h4 {
2020-11-25 18:17:22 +01:00
font-size: 1.777rem;
2020-11-25 13:34:49 +01:00
}
h5 {
2020-11-25 18:17:22 +01:00
font-size: 1.333rem;
2020-11-25 13:34:49 +01:00
}
small,
.text_small {
2020-11-25 18:17:22 +01:00
font-size: 0.75rem;
2020-11-25 13:34:49 +01:00
}
// --------
2020-10-13 01:18:11 +02:00
header {
.left,
.center,
.right {
align-items: inherit;
display: inherit;
height: calc(100% - 2rem);
padding: 1rem;
}
.left {
.logo {
display: block;
filter: invert(1);
height: 3rem;
width: 3rem;
}
.title {
font-size: 1.75rem;
2020-11-25 13:34:49 +01:00
font-weight: 700;
2020-10-13 01:18:11 +02:00
letter-spacing: .03125em;
margin-left: 1rem;
@media (max-width: #{$bp-small}) {
margin-left: 0;
}
}
}
.right {
flex: 1 1 auto;
justify-content: flex-end;
2020-11-25 13:34:49 +01:00
text-transform: uppercase;
2020-11-22 23:32:20 +01:00
2020-10-13 01:18:11 +02:00
.dropdown-button {
display: none;
}
2020-11-26 10:34:42 +01:00
// TODO: Redo header media query (vertical res > 768px -> Dropdown or moved to sidenav toggle)
2020-11-28 13:13:01 +01:00
// See www for reference on previous code.
2020-10-13 01:18:11 +02:00
}
}
2020-11-26 10:34:42 +01:00
// TODO: media queries (@res >= 1024px -> toggleable sidenav)
2020-10-13 01:18:11 +02:00
main {
display: flex;
flex-direction: row;
height: 100%;
overflow: auto;
width: 100%;
aside {
2020-11-25 13:34:49 +01:00
background: $primary;
box-shadow: $elevation-z4;
2020-10-13 01:18:11 +02:00
color: $on-primary;
2020-11-25 13:34:49 +01:00
max-width: 20rem;
2020-10-13 01:18:11 +02:00
overflow-y: auto;
2020-11-25 13:34:49 +01:00
width: 100%;
2020-10-13 01:18:11 +02:00
z-index: 1;
2020-11-25 13:34:49 +01:00
nav {
margin: 1rem 0;
2020-10-13 01:18:11 +02:00
2020-11-25 13:34:49 +01:00
a,
div {
display: block;
padding: .25rem .5rem .25rem 1rem;
width: calc(100% - 1.5rem);
}
2020-11-22 23:32:20 +01:00
2020-11-25 13:34:49 +01:00
ul {
list-style: none;
margin: 0;
padding-left: 1rem;
}
2020-10-13 01:18:11 +02:00
2020-11-25 13:34:49 +01:00
a {
color: $on-secondary;
2020-10-13 01:18:11 +02:00
2020-11-25 13:34:49 +01:00
&:hover {
filter: invert(.15);
}
2020-11-25 18:17:22 +01:00
2020-11-25 13:34:49 +01:00
&.active {
color: $accent;
}
}
// TODO: Redo list status animations
2020-11-25 13:34:49 +01:00
.node {
div {
align-items: center;
2020-11-25 13:34:49 +01:00
cursor: pointer;
display: flex;
justify-content: space-between;
2020-11-25 13:34:49 +01:00
img {
display: block;
max-height: 1.5rem;
max-width: 1.5rem;
2020-10-13 01:18:11 +02:00
}
}
2020-11-25 13:34:49 +01:00
ul {
overflow: hidden;
}
&.hide {
ul {
max-height: 0 !important;
}
div {
img {
transform: rotate(-90deg);
}
}
}
2020-10-13 01:18:11 +02:00
}
}
}
2020-11-25 13:34:49 +01:00
article {
2020-10-13 01:18:11 +02:00
background: $secondary;
color: $on-secondary;
overflow: auto;
2020-11-25 13:34:49 +01:00
padding: 1rem 27.1% 1rem 10.4%;
width: 62.5%;
2020-10-13 01:18:11 +02:00
2020-11-26 10:26:47 +01:00
@media (max-width: #{$bp-medium}) {
padding: 1rem;
width: calc(100% - 2rem);
2020-11-25 13:34:49 +01:00
}
2020-10-13 01:18:11 +02:00
}
}
a {
color: $accent;
text-decoration: none;
}
2020-11-26 10:34:42 +01:00
// Docs specific typography
2020-10-13 01:18:11 +02:00
.doc-typography {
2020-11-26 10:34:42 +01:00
$code: #101010;
2020-10-13 01:18:11 +02:00
$on-code: #fff;
$blockquote: #181818;
$on-blockquote: #ccc;
$margin: 0 0 .5rem;
2020-11-22 23:32:20 +01:00
table {
text-align: left;
}
2020-11-25 13:34:49 +01:00
blockquote {
background: rgba(255, 255, 255, .125);
border-radius: 4px;
2020-10-13 01:18:11 +02:00
margin: 0;
2020-11-25 13:34:49 +01:00
padding: .5rem .7rem;
2020-10-13 01:18:11 +02:00
2020-11-25 13:34:49 +01:00
p {
margin: 0;
}
2020-10-13 01:18:11 +02:00
}
2020-11-25 18:17:22 +01:00
2020-11-26 10:26:47 +01:00
img {
max-width: 100%;
}
pre,
code {
background: $code !important;
}
blockquote {
background: $blockquote;
color: $on-blockquote;
}
code {
padding: .125rem .25rem;
}
blockquote,
code {
border-radius: $border-radius;
}
2020-11-25 18:17:22 +01:00
}