Website/docs/assets/scss/style.scss
2020-10-13 01:18:11 +02:00

417 lines
7.8 KiB
SCSS

@import './utils/theme.scss';
@import './utils/elevation.scss';
@import './utils/typography.scss';
@import './components/aki-button.scss';
@import './components/aki-card.scss';
@import './components/aki-divider.scss';
@import './components/aki-toolbar.scss';
.text1 {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
}
.text2 {
font-family: 'Source Sans Pro', sans-serif;
font-weight: 700;
}
html {
font-family: 'Source Sans Pro', sans-serif;
font-size: $base-font-size;
}
body {
display: flex;
flex-direction: column;
height: 100vh;
margin: 0;
padding: 0;
position: absolute;
width: 100vw;
}
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;
letter-spacing: .03125em;
margin-left: 1rem;
span:last-child {
margin-left: .5rem;
}
@media (max-width: #{$bp-medium}) {
span:first-child {
display: none;
}
}
@media (max-width: #{$bp-small}) {
margin-left: 0;
}
}
}
.right {
flex: 1 1 auto;
justify-content: flex-end;
.dropdown-button {
display: none;
}
@media (max-width: #{$bp-medium}) {
&.dropdown {
align-items: center;
cursor: pointer;
display: flex;
justify-content: center;
min-width: 4rem;
float: left;
overflow: hidden;
&:hover .dropdown-content {
// display: block;
background: $primary;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
display: flex;
flex-direction: column;
padding: 1rem;
right: 0;
top: 5.5rem;
}
.dropdown-button {
display: initial;
}
.dropdown-content {
display: none;
position: absolute;
z-index: 1;
}
}
}
}
}
main {
display: flex;
flex-direction: row;
height: 100%;
position: relative;
overflow: auto;
width: 100%;
aside {
background-color: $primary;
box-shadow: $elevation-z16;
color: $on-primary;
overflow-y: auto;
width: 20rem;
z-index: 1;
.subheader,
ul {
padding: 1rem;
}
.subheader {
font-family: $font-source-sans-pro;
font-size: 1rem;
font-weight: 700;
}
ul {
font-family: $font-open-sans;
font-size: .875rem;
font-weight: 400;
list-style: none;
margin: 0;
li {
cursor: pointer;
padding: .25rem 0;
a {
color: $on-secondary;
text-decoration: none;
&:hover {
filter: invert(.15);
}
&[active] {
color: $accent;
}
}
}
}
}
#router-outlet {
background: $secondary;
color: $on-secondary;
height: calc(100% - 2rem);
position: relative;
overflow: auto;
padding: 1rem 2rem;
width: calc(100% - 4rem);
}
}
footer {
bottom: 0;
color: rgba(255, 255, 255, .25);
font-size: .625rem;
left: 0;
padding: .5rem 1.5rem;
position: absolute;
width: calc(100% - 1.5rem * 2);
@media (max-width: #{$bp-small}) {
display: none;
}
}
a {
color: $accent;
text-decoration: none;
}
.doc-typography {
$alert: #AF1010;
$on-alert: #fff;
$info: #0D47A1;
$on-info: #fff;
$warning: #ffc107;
// $warning: #e65100;
$on-warning: #000;
$note: #999;
$on-note: #080808;
$code: #101010; // never use full black.
$on-code: #fff;
$blockquote: #181818;
$on-blockquote: #ccc;
$padding: .25rem .75rem;
$border-radius: $border-radius;
$margin: 0 0 .5rem;
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
}
h1 {
font-family: $font-source-sans-pro;
font-size: 3rem;
font-weight: 700;
letter-spacing: -.015625em;
line-height: 6rem;
}
h2 {
font-family: $font-source-sans-pro;
font-size: 2.25rem;
font-weight: 700;
letter-spacing: -.0083333333em;
line-height: 3.75rem;
}
h3 {
font-family: $font-source-sans-pro;
font-size: 1.75rem;
font-weight: 700;
letter-spacing: normal;
line-height: 3.125rem;
}
h4 {
font-family: $font-source-sans-pro;
font-size: 1.75rem;
font-weight: 500;
letter-spacing: .0073529412em;
line-height: 2.5rem;
}
h5 {
font-family: $font-source-sans-pro;
font-size: 1.5rem;
font-weight: 500;
letter-spacing: normal;
line-height: 2rem;
}
h6 {
font-family: $font-source-sans-pro;
font-size: 1.25rem;
font-weight: 500;
letter-spacing: normal;
line-height: 2rem;
}
p,
pre ul,
li,
blockquote,
span,
code {
font-size: .875rem;
font-weight: 400;
letter-spacing: .03125em;
line-height: 1.5rem;
}
p,
ul,
li,
blockquote,
span {
font-family: $font-open-sans;
}
pre,
code {
background: $code !important;
}
blockquote,
code,
.doc-alert,
.doc-info,
.doc-warning,
.doc-note {
border-radius: $border-radius;
}
blockquote,
code,
pre,
.doc-alert,
.doc-info,
.doc-warning,
.doc-note {
padding: $padding;
}
blockquote,
code,
pre,
li,
.doc-alert,
.doc-info,
.doc-warning,
.doc-note {
margin: $margin;
}
blockquote {
background: $blockquote;
color: $on-blockquote;
}
// for url/links
// span,
a {
color: $accent;
cursor: pointer;
text-decoration: none;
&:hover {
filter: invert(.15);
}
}
img {
width: 100%;
}
.doc-alert,
.doc-info,
.doc-warning,
.doc-note {
box-shadow: $elevation-z2;
}
.doc-alert {
background: $alert;
color: $on-alert;
&::before {
content: "Alert";
display: block;
font-weight: 700;
margin: 0 0 .25rem 0;
}
}
.doc-info {
background: $info;
color: $on-info;
&::before {
content: "Info";
display: block;
font-weight: 700;
margin: 0 0 .25rem 0;
}
}
.doc-warning {
background: $warning;
color: $on-warning;
&::before {
content: "Warning";
display: block;
font-weight: 700;
margin: 0 0 .25rem 0;
}
}
.doc-note {
background: $note;
color: $on-note;
&::before {
content: "Note";
display: block;
font-weight: 700;
margin: 0 0 .25rem 0;
}
}
}