lostplaces-frontend/components/main.scss

201 lines
4.4 KiB
SCSS
Raw Normal View History

2021-10-18 16:02:28 +02:00
@import 'rcss.bundled';
2020-08-25 15:55:02 +02:00
2020-09-05 22:21:25 +02:00
// Include primary fonts in regular, italic and bold each.
2020-07-31 15:10:38 +02:00
@font-face {
2020-09-22 19:39:19 +02:00
font-family: 'Crimson Pro';
2020-09-05 22:21:25 +02:00
font-style: normal;
font-weight: 400;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Crimson Pro Regular'), local('CrimsonPro-Regular'), url(fonts/Crimson/CrimsonPro-Regular.ttf) format('truetype');
2020-09-05 22:21:25 +02:00
}
@font-face {
2020-09-22 19:39:19 +02:00
font-family: 'Crimson Pro';
2020-09-05 22:21:25 +02:00
font-style: italic;
font-weight: 400;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Crimson Pro Italic'), local('CrimsonPro-Italic'), url(fonts/Crimson/CrimsonPro-Italic.ttf) format('truetype');
2020-09-05 22:21:25 +02:00
}
@font-face {
2020-09-22 19:39:19 +02:00
font-family: 'Crimson Pro';
2020-09-05 22:21:25 +02:00
font-style: normal;
font-weight: 700;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Crimson Pro Bold'), local('CrimsonPro-Bold'), url(fonts/Crimson/CrimsonPro-Bold.ttf) format('truetype');
2020-09-05 22:21:25 +02:00
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(fonts/Montserrat/Montserrat-Regular.woff2) format('woff2');
2020-09-05 22:21:25 +02:00
}
@font-face {
font-family: 'Montserrat';
font-style: italic;
font-weight: 400;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Montserrat Italic'), local('Montserrat-Italic'), url(fonts/Montserrat/Montserrat-Italic.woff2) format('woff2');
2020-09-05 22:21:25 +02:00
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 700;
font-display: swap;
2020-09-22 19:39:19 +02:00
src: local('Montserrat Bold'), local('Montserrat-Bold'), url(fonts/Montserrat/Montserrat-Bold.woff2) format('woff2');
2020-09-05 22:21:25 +02:00
}
2021-10-02 07:19:34 +02:00
2020-09-05 22:27:18 +02:00
// Define global color variables.
2020-08-01 10:25:30 +02:00
$-beige: #D7CEC7;
$-grey: #565656;
$-wine-red: #76323F;
$-light-brown: #C09F80;
$-almost-white: #f9f9f9;
2020-07-17 17:55:46 +02:00
2020-09-05 22:27:18 +02:00
// Define global sand/serif font variables.
$-primary-sans-serif-font: 'Montserrat',
2020-09-05 22:21:25 +02:00
Helvetica,
sans-serif;
2020-09-22 19:39:19 +02:00
$-primary-serif-font: 'Crimson Pro',
2020-09-05 22:21:25 +02:00
Times,
serif;
2020-07-17 17:55:46 +02:00
2020-09-05 22:27:18 +02:00
// Define viewport sizes.
2020-08-02 23:00:55 +02:00
$-viewport-normal: 1000px;
$-viewport-medium: 750px;
$-viewport-small: 650px;
$-viewport-extra-small: 450px;
2020-07-31 15:10:38 +02:00
2020-09-05 22:27:18 +02:00
// Define when to hide the sidebar.
2020-08-16 10:30:55 +02:00
$-viewport-toggle-sidebar: $-viewport-small;
2020-08-07 11:24:00 +02:00
$-sidebar-width: 250px;
2020-09-01 18:19:51 +02:00
html {
height: 100%;
margin: 0;
padding: 0;
2020-08-04 23:46:44 +02:00
}
2020-09-01 18:19:51 +02:00
body {
height: 100%;
margin: 0;
padding: 0;
2020-08-04 23:46:44 +02:00
}
2020-07-31 15:10:38 +02:00
2020-09-01 18:19:51 +02:00
.LP-Wrapper__Site {
display: grid;
grid-template-columns: $-sidebar-width 1fr;
grid-template-rows: auto 1fr;
2020-09-01 18:19:51 +02:00
grid-template-areas: "header header""sidebar content";
margin: 0;
padding: 0;
min-height: 100vh;
2020-08-13 23:44:06 +02:00
}
2020-08-07 11:24:00 +02:00
2020-09-01 18:19:51 +02:00
.LP-Main__Content {
min-height: 1px;
padding: 25px;
grid-area: content;
2020-08-13 23:44:06 +02:00
}
2020-08-07 11:24:00 +02:00
2020-09-01 18:19:51 +02:00
.LP-Main__Sidebar {
grid-area: sidebar;
background-color: #f9f9f9;
2020-08-07 11:24:00 +02:00
}
2020-09-01 18:19:51 +02:00
.LP-Section {
clear: both;
padding: 25px 0px;
padding-left: 25px;
2020-08-09 23:42:48 +02:00
2020-09-01 18:19:51 +02:00
.LP-Headline {
margin-left: -25px;
}
2020-08-09 23:42:48 +02:00
}
2020-09-01 18:19:51 +02:00
.LP-Menu__Trigger {
display: none;
2020-08-16 11:56:21 +02:00
}
2020-09-05 22:27:18 +02:00
// Media queries
2020-09-01 18:19:51 +02:00
@media(max-width: $-viewport-normal) {
.LP-Wrapper__Site {
grid-template-columns: (0.75 * $-sidebar-width) 1fr;
}
2020-08-16 10:30:55 +02:00
}
2020-08-09 23:42:48 +02:00
2020-09-01 18:19:51 +02:00
@media(max-width: $-viewport-small) {
.LP-Section {
padding-left: 0;
padding-right: 0;
2020-09-01 18:19:51 +02:00
.LP-Headline {
margin: 0;
}
}
2020-08-09 23:42:48 +02:00
}
2020-08-16 10:30:55 +02:00
2020-09-01 18:19:51 +02:00
@media(max-width: $-viewport-extra-small) {
.LP-Main__Sidebar {
2020-09-05 22:21:25 +02:00
max-width: 100vw;
}
}
2020-08-16 17:50:55 +02:00
2020-09-01 18:19:51 +02:00
@media(max-width: $-viewport-toggle-sidebar) {
.LP-Wrapper__Site {
grid-template-columns: 0 1fr;
}
2020-09-01 18:19:51 +02:00
.LP-Main__Sidebar {
grid-area: unset;
width: $-sidebar-width;
z-index: 15;
position: fixed;
left: -1 * $-sidebar-width - 1;
height: 100vh;
top: 60px;
border-right: 1px solid $-light-brown;
transition: left 0.3s;
2020-09-01 18:19:51 +02:00
&--hidden {
visibility: hidden;
}
}
2020-09-01 18:19:51 +02:00
#toggle_sidebar:checked~.LP-Main__Sidebar {
left: 0;
}
2020-09-01 18:19:51 +02:00
#toggle_sidebar~.LP-Main__Sidebar {
left: -1 * $-sidebar-width - 1;
}
2020-09-01 18:19:51 +02:00
.LP-Menu__TriggerLabel {
z-index: 20;
height: 60px;
2020-09-01 18:19:51 +02:00
width: 60px;
background-image: url('icons/hamburger_menu.svg');
background-repeat: no-repeat;
background-clip: content-box;
background-position: center;
position: fixed;
}
2020-09-01 18:19:51 +02:00
.LP-Menu__Trigger:checked~.LP-Menu__TriggerLabel {
background-color: invert($-grey);
filter: invert(1);
}
2020-09-01 18:19:51 +02:00
.LP-Main__Content {
margin-top: 60px;
}
2020-08-16 10:30:55 +02:00
}
2020-07-17 17:55:46 +02:00
@import '01_Atoms/atoms';
@import '02_Molecules/molecules';
@import '03_Organisms/organisms';
2020-08-04 23:46:44 +02:00
@import '04_Templates/templates';
2020-09-01 18:19:51 +02:00
@import '05_Pages/pages';
2021-10-18 16:02:28 +02:00
//@import './tagify';