AltitudeWeb/frontend/src/styles.scss

482 lines
8.8 KiB
SCSS

@import '@angular/material/prebuilt-themes/azure-blue.css';
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
:root {
--white: #FFFFFF;
--black: #282828;
--pureblack: #000000;
--grey: #A3A3A3;
--link: #1f9bde;
--linkhover: #00d9ff;
--navlink: #4b4b4b;
--switch: #FBFBFE;
--error: #c23c3c;
}
.theme-light {
--color-primary: #FBFBFE;
--color-secondary: #FBFBFE;
--color-tertiary: #E3F1F8;
--color-quaternary: #EFEFEF;
--color-quinary: #FBFBFE;
--color-accent: #FD6F53;
--font-color: #000000;
--font-color-hover: #454545;
--navlink-color: #4B4B4B;
--link-color: #1F9BDE;
--history-link-color: #A3A3A3;
--history-table-head-color: #DADADA;
--history-table-row-color: #E6E6E6;
--history-page-button-background: #DEDEDE;
--hamburger: #232323;
--dropdown-color: #DFDFDF;
--footer-color: #202020;
}
.theme-dark {
--color-primary: #242526;
--color-secondary: #292828;
--color-tertiary: #202020;
--color-quaternary: #202020;
--color-quinary: #292828;
--color-accent: #12CDEA;
--font-color: #FFFFFF;
--font-color-hover: #9C9C9C;
--navlink-color: #FFFFFF;
--link-color: #20729E;
--history-link-color: #4A4A4A;
--history-table-head-color: #4A4A4A;
--history-table-row-color: #363636;
--history-page-button-background: #4A4A4A;
--hamburger: #CDCDCD;
--dropdown-color: #303233;
--footer-color: #242526;
}
@font-face {
font-family: 'opensans';
src: url('/public/fonts/opensans.ttf') format('truetype'),
url('/public/fonts/opensans.eot') format('embedded-opentype'),
url('/public/fonts/opensans.svg') format('svg'),
url('/public/fonts/opensans.woff') format('woff');
}
@font-face {
font-family: 'opensans-bold';
src: url('/public/fonts/opensans-bold.ttf') format('truetype'),
url('/public/fonts/opensans-bold.eot') format('embedded-opentype'),
url('/public/fonts/opensans-bold.svg') format('svg'),
url('/public/fonts/opensans-bold.woff') format('woff');
}
@font-face {
font-family: 'minecraft-title';
src: url('/public/fonts/minecraft-title.ttf') format('truetype'),
url('/public/fonts/minecraft-title.eot') format('embedded-opentype'),
url('/public/fonts/minecraft-title.svg') format('svg'),
url('/public/fonts/minecraft-title.woff') format('woff');
}
@font-face {
font-family: 'minecraft-text';
src: url('/public/fonts/minecraft-text.ttf') format('truetype'),
url('/public/fonts/minecraft-text.eot') format('embedded-opentype'),
url('/public/fonts/minecraft-text.svg') format('svg'),
url('/public/fonts/minecraft-text.woff') format('woff');
}
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
.flex {
display: flex;
}
.row {
flex-direction: row;
}
.row-rev {
flex-direction: row-reverse;
}
.wrap {
flex-flow: row wrap;
}
.wrap-rev {
flex-flow: row wrap-reverse;
}
.column {
flex-direction: column;
}
.column-rev {
flex-direction: column-reverse;
}
.between {
justify-content: space-between;
}
.around {
justify-content: space-around;
}
.start {
justify-content: flex-start;
}
.end {
justify-content: flex-end;
}
.center {
justify-content: center;
}
.full-width {
width: 100%;
}
.full-height {
height: 100%;
}
.centered {
margin-left: auto;
margin-right: auto;
}
/* flex end */
/* main css */
a {
color: var(--link);
text-decoration: none;
}
a:hover {
color: var(--linkhover);
text-decoration: none;
}
h1 {
font-family: 'minecraft-title', sans-serif;
text-shadow: 0 3px var(--pureblack), 3px 0 var(--pureblack);
letter-spacing: 3px;
color: var(--white);
font-size: 4em;
margin-bottom: 30px;
font-weight: normal;
}
h2 {
font-family: 'opensans-bold', sans-serif;
font-size: 1.6em;
color: var(--font-color);
transition: 0.5s ease;
}
h3 {
font-family: 'opensans-bold', sans-serif;
font-size: 1.4em;
color: var(--font-color);
transition: 0.5s ease;
}
h4 {
font-family: 'opensans-bold', sans-serif;
font-size: 1em;
color: var(--font-color);
transition: 0.5s ease;
font-weight: 700;
}
p {
font-family: 'opensans', sans-serif;
font-size: 1em;
color: var(--font-color);
transition: 0.5s ease;
}
ol {
padding-left: 100px;
font-family: opensans, sans-serif;
color: var(--font-color);
transition: 0.5s ease;
}
ol li {
padding-bottom: 10px;
}
.paragraph {
width: 50%;
line-height: 1.5em;
}
.paragraph h2, .paragraph h3, .paragraph p, .columnParagraph h2, .columnParagraph p {
padding-bottom: 15px;
}
tr {
color: var(--font-color);
transition: 0.5s ease;
}
main .container {
padding: 80px 0;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.container {
width: 80%;
max-width: 1020px;
margin: auto;
display: flex;
align-items: center;
}
.title {
height: calc(100% - 110px);
display: flex;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;
width: 80%;
max-width: 1020px;
margin: 110px auto 0;
}
.title h2 {
color: var(--white);
line-height: 1.5em;
font-size: 1.3em;
text-shadow: 0 2px var(--pureblack), 2px 0 var(--pureblack);
font-family: 'minecraft-text', sans-serif;
}
// Column styling
.columnSection {
width: 80%;
padding-top: 60px;
max-width: 1020px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
flex: 1 0 auto;
}
.columnContainer {
width: 50%;
box-sizing: border-box;
padding: 0 15px;
}
.columnParagraph {
line-height: 1.5em;
padding-bottom: 30px;
}
.columnParagraph img {
padding: 30px 0;
display: block;
margin: 0 auto;
}
.columnParagraph > ul {
color: var(--font-color);
transition: 0.5s ease;
}
// Call to Action button
.button-outer {
display: inline-block;
font-family: 'minecraft-text', sans-serif;
font-size: 0.8em;
padding: 15px 35px;
background: var(--link-color);
color: #ffffff;
letter-spacing: 1px;
border: none;
border-radius: 5px;
height: auto;
transition: all 100ms cubic-bezier(0.55, 0.085, 0.68, 0.53), 0.5s background ease;
cursor: pointer;
text-shadow: 1px 1px 0 black;
}
.button-inner > span {
display: inline-block;
background: none;
min-width: 10px;
min-height: 10px;
height: auto;
padding: 0;
margin: 0;
line-height: 1;
font-size: inherit;
color: inherit;
}
.button-inner:before {
content: '';
}
.button-inner:before {
display: none;
}
.button-outer:hover {
color: var(--pureblack);
text-shadow: 1px 1px 0 white;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
transform: scale(1.1);
}
.button-outer:focus, .button-outer:active {
color: var(--white);
background: #8b8a8f;
}
.checkbox-field mat-checkbox {
color: var(--font-color);
}
.mat-mdc-checkbox .mdc-form-field label {
color: var(--font-color);
}
// Darkmode sections
.darkmodeSection {
background-color: var(--color-secondary);
transition: 0.5s background ease;
}
.darkmodeSectionTwo {
background-color: var(--color-tertiary);
transition: 0.5s background ease;
}
.darkmodeSectionThree {
background-color: var(--color-quaternary);
transition: 0.5s background ease;
}
// Scroll-up button
.scroll-up-button.active:hover {
opacity: 1.0;
}
.scroll-up-button.active {
opacity: 0.5;
}
.scroll-up-button {
opacity: 0.0;
width: 60px;
height: 60px;
border-radius: 5px;
background-color: var(--link-color);
position: fixed;
right: 30px;
bottom: 30px;
transition: opacity 0.3s, 0.5s ease;
}
.scroll-up-button span::after {
position: absolute;
top: 50%;
left: 50%;
content: '';
width: 8px;
height: 8px;
margin: -2px 0 0 -5px;
border-left: 2px solid #fff;
border-bottom: 2px solid #fff;
-webkit-transform: rotate(135deg);
transform: rotate(135deg);
box-sizing: border-box;
}
.scroll-up-button span::before {
position: absolute;
top: 0;
left: 0;
z-index: -1;
content: '';
width: 60px;
height: 60px;
box-shadow: 0 0 0 0 rgba(255, 255, 255, .1);
border-radius: 100%;
opacity: 0;
box-sizing: border-box;
}
// Different resolution changes
@media (max-width: 1150px) {
.container, .customContainer, .columnSection {
width: 90%;
}
h1 {
font-size: 3em;
}
.title {
height: calc(100% - 150px);
margin-top: 0;
}
}
@media (max-width: 690px) {
main .container {
text-align: center;
width: 90%;
padding: 30px 0;
}
.title {
height: calc(100% - 110px);
margin-top: 100px;
}
.title h2 {
font-size: 0.9em;
}
.columnContainer {
width: 100%;
text-align: center;
}
.paragraph {
width: 100%;
}
}