disaster-recovery-website/_sass/base.scss

822 lines
13 KiB
SCSS
Raw Permalink Normal View History

2024-06-26 15:57:15 +00:00
@charset "utf-8";
@font-face {
font-family: 'Rubik';
src: url('fonts/Rubik-VariableFont_wght.ttf') format('truetype');
}
$base-font-family: 'Rubik', monospace !default;
$base-font-size: 1.125rem !default;
$mobile-font-size: 1.125rem !default;
$base-line-height: 1.5 !default;
$container-width: 90% !default;
2024-10-12 18:38:31 +00:00
$container-max-width: 1000px !default;
html {
transition: none !important;
}
:root {
--base-color: rgba(0, 0, 0, 0.87);
--header-color: black;
--border: dashed 1px rgba(0, 0, 0, 1);
--selection-background: rgba(0, 0, 0, 0.40);
--selection-text: #FFF;
--background-color: #FFF;
--text-color: var(--base-color);
--placeholder-color: var(--base-color);
--link-color: blue;
--navbar-link-color: black;
--navbar-link-hover-color: gray;
--theme-slider-state: translateX(0px);
--code-color-1: #aaaaaa;
--code-color-2: #ffffcc;
--code-color-3: #F00000;
}
:root.dark-theme {
--base-color: rgba(255, 255, 255, 0.87);
--header-color: white;
--border: solid 2px rgba(219, 219, 219, 0.9);
--selection-background: rgba(219, 219, 219, 0.99);
--selection-text: #000;
--background-color: #141414;
--text-color: var(--base-color);
--placeholder-color: rgba(0, 0, 0, 0.5);
--link-color: var(--base-color);
--navbar-link-color: white;
--navbar-link-hover-color: gray;
--theme-slider-state: translateX(26px);
/* yoinkt from Material Design 2014, Light Blue A200 */
--mega-color: #40C4FF;
--code-color-1: #569fe8;
--code-color-2: #ffffcc;
--code-color-3: #F00000;
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
:root {
--base-color: rgba(255, 255, 255, 0.87);
--header-color: white;
--border: solid 2px rgba(219, 219, 219, 0.9);
--selection-background: rgba(219, 219, 219, 0.99);
--selection-text: #000;
--background-color: #141414;
--text-color: var(--base-color);
--placeholder-color: rgba(0, 0, 0, 0.5);
--link-color: var(--base-color);
--navbar-link-color: white;
--navbar-link-hover-color: gray;
--theme-slider-state: translateX(26px);
/* yoinkt from Material Design 2014, Light Blue A200 */
--mega-color: #40C4FF;
--code-color-1: #569fe8;
--code-color-2: #ffffcc;
--code-color-3: #F00000;
}
}
/* Theme toggle button */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--code-color-1);
}
input:checked + .slider:before {
transform: var(--theme-slider-state);
}
2024-06-26 15:57:15 +00:00
/**
* Global
*/
body {
background-color: var(--background-color);
margin: 0 auto;
padding: 0;
font-family: $base-font-family;
font-size: $base-font-size;
color: var(--text-color);
text-align: left;
line-height: $base-line-height !important;
}
h1 {
font-size: 32px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 20px;
}
h5 {
font-size: 18px;
}
h6 {
font-size: 16px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0px;
margin-top: 0px;
margin-bottom: 12px;
font-weight: bold;
2024-10-12 18:38:31 +00:00
color: var(--header-color);
2024-06-26 15:57:15 +00:00
}
p,
ul,
ol {
margin: 0px;
color: var(--text-color);
}
a {
text-decoration: underline;
color: var(--link-color);
2024-10-12 18:38:31 +00:00
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
2024-06-26 15:57:15 +00:00
}
a:hover {
2024-10-12 18:38:31 +00:00
color: var(--base-color);
background-color: var(--background-color);
2024-06-26 15:57:15 +00:00
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
@media only screen and (max-device-width: 500px) {
* {
font-size: $mobile-font-size;
}
}
/**
* Layout
*/
.container {
width: $container-width;
max-width: $container-max-width;
margin-right: auto;
margin-left: auto;
}
p {
margin-top: 16px;
margin-bottom: 16px;
}
footer {
color: var(--text-color);
border-top: var(--border);
margin-top: 24px;
padding-top: 12px;
text-align: right;
}
header {
2024-10-12 18:38:31 +00:00
padding: 24px;
2024-06-26 15:57:15 +00:00
margin-bottom: 24px;
2024-10-12 18:38:31 +00:00
border-bottom: 1px solid rgba(255, 255, 255, 0.13);
2024-06-26 15:57:15 +00:00
}
header p {
text-align: left;
margin: 0;
}
footer {
margin-bottom: 20px;
}
hr {
margin-top: 20px;
}
/**
* Navbar
*/
.menu-logo {
2024-10-12 18:38:31 +00:00
height: 48px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
#home-link {
color: var(--base-color);
background: var(--background-color);
2024-06-26 15:57:15 +00:00
text-decoration: none;
}
2024-10-12 18:38:31 +00:00
#home-link:hover {
color:var(--navbar-link-hover-color);
}
2024-06-26 15:57:15 +00:00
.header-page-links li:before {
content: ''
}
.header-page-links a {
margin: 0px 4px;
font-size: 1.1rem;
text-decoration: none;
2024-10-12 18:38:31 +00:00
color: var(--navbar-link-color);
2024-06-26 15:57:15 +00:00
}
.header-page-links a:hover {
2024-10-12 18:38:31 +00:00
color: var(--navbar-link-hover-color);
}
.left-menu {
display: flex;
align-items: center;
}
.left-menu img {
display: flex;
2024-06-26 15:57:15 +00:00
}
.right-menu {
width: 74%;
display: flex;
justify-content: flex-end;
align-items: center;
}
.menu-button-container {
display: none;
width: 50px;
height: 50px;
cursor: pointer;
flex-direction: column;
justify-content: center;
align-items: center;
}
#menu-toggle {
display: none;
}
.menu-button,
.menu-button::before,
.menu-button::after {
display: block;
2024-10-12 18:38:31 +00:00
background-color: var(--background-color);
2024-06-26 15:57:15 +00:00
position: absolute;
height: 4px;
width: 30px;
transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
border-radius: 2px;
}
.menu-button::before {
content: '';
margin-top: -8px;
}
.menu-button::after {
content: '';
margin-top: 8px;
}
#menu-toggle:checked+.menu-button-container .menu-button::before {
margin-top: 0px;
transform: rotate(405deg);
}
#menu-toggle:checked+.menu-button-container .menu-button {
background: rgba(255, 255, 255, 0);
}
#menu-toggle:checked+.menu-button-container .menu-button::after {
margin-top: 0px;
transform: rotate(-405deg);
}
.menu-content {
position: absolute;
display: none;
background: #282828;
text-align: right;
margin-top: 100px;
width: 100%;
z-index: 2;
}
.inner-menu-content {
border-bottom: 1px solid white;
}
.menu-content div {
margin: 50px 30px 50px 30px;
}
@media (max-width: 1020px) {
.right-menu {
width: 40px;
height: 40px;
}
.menu-button-container {
display: flex;
}
#menu-toggle~.menu li {
height: 0;
margin: 0;
padding: 0;
border: 0;
transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
#menu-toggle:checked~.menu li {
border: 1px solid #333;
height: 2.5em;
padding: 0.5em;
transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu>li {
display: flex;
justify-content: center;
margin: 0;
padding: 0.5em 0;
width: 100%;
color: white;
background-color: #222;
}
.menu>li:not(:last-child) {
border-bottom: 1px solid #444;
}
}
/**
* Buttons
*/
2024-10-12 18:38:31 +00:00
.button {
2024-06-26 15:57:15 +00:00
display: inline-block;
padding: 10px 20px 9px 20px;
margin-top: 10px;
2024-10-12 18:38:31 +00:00
color: var(--base-color);
background-color: var(--background-color);
border: 2px solid white;
2024-06-26 15:57:15 +00:00
text-decoration: none;
2024-10-12 18:38:31 +00:00
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.button:hover {
/* invert */
background-color: var(--base-color);
color: var(--background-color);
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
/* important button */
.mega.button {
background-color: var(--mega-color);
color: var(--base-color);
border: 2px solid var(--mega-color);
}
.mega.button:hover {
/* invert */
background-color: color-mix(in srgb, var(--mega-color), white 10%);
color: var(--base-color);
2024-06-26 15:57:15 +00:00
}
.button-container {
padding: 30px 0px;
}
/**
* Highlight/Markup
*/
::selection {
background: var(--selection-background);
color: var(--selection-text);
}
::-moz-selection {
background: var(--selection-background);
color: var(--selection-text);
}
/**
* Lists
*/
:not(.menu)>ul {
list-style: none;
}
:not(.menu)>ul {
list-style-type: none;
}
:not(.menu)>ul>li:before {
content: "-";
margin-right: 9px;
}
.right-menu>ul>li:before {
content: "" !important;
margin-right: 4px;
}
/**
* Header/Navigation
*/
.menu {
2024-10-12 18:38:31 +00:00
/* border-bottom: var(--border); */
2024-06-26 15:57:15 +00:00
display: flex;
justify-content: space-between;
align-items: center;
}
.menu ul {
padding-left: 0px;
list-style-type: none;
text-align: right;
}
.menu ul li {
display: inline;
margin-left: 10px;
}
/**
* Form
*/
input,
select,
textarea {
padding: 0;
margin: 0;
-webkit-appearance: none;
-webkit-border-radius: 0;
border: none;
}
input[type=text],
select,
textarea {
width: 100%;
resize: none;
2024-10-12 18:38:31 +00:00
background-color: white;
color: black;
caret-color: black;
2024-06-26 15:57:15 +00:00
}
input,
select,
textarea,
textarea::-webkit-input-placeholder {
text-indent: 0px;
}
::placeholder {
color: var(--placeholder-color);
opacity: 1;
}
:-ms-input-placeholder {
color: var(--placeholder-color);
}
::-ms-input-placeholder {
color: var(--placeholder-color);
}
input[type=submit] {
font-size: $base-font-size;
font-family: $base-font-family;
line-height: $base-line-height;
cursor: pointer;
color: var(--link-color);
background-color: var(--background-color);
}
input[type=submit]:hover {
color: var(--background-color);
background-color: var(--base-color);
}
*:focus {
outline: none;
}
textarea {
vertical-align: top;
}
/**
2024-10-12 18:38:31 +00:00
* Contact Form
2024-06-26 15:57:15 +00:00
*/
2024-10-12 18:38:31 +00:00
.required:after {
content: "*";
color: red;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-label {
display: block;
margin-bottom: 5px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-input,
.form-select,
.form-textarea {
2024-06-26 15:57:15 +00:00
width: 100%;
2024-10-12 18:38:31 +00:00
padding: 8px;
margin-bottom: 10px;
height: 40px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-textarea {
height: 100px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-checkbox-container {
2024-06-26 15:57:15 +00:00
display: flex;
2024-10-12 18:38:31 +00:00
flex-direction: column;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-submit-button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
height: 40px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.form-submit-button:hover {
background-color: #45a049;
2024-06-26 15:57:15 +00:00
}
/**
2024-10-12 18:38:31 +00:00
* Homepage
2024-06-26 15:57:15 +00:00
*/
2024-10-12 18:38:31 +00:00
.particles-wrapper {
background-color: #222;
width: 100%;
height: 100%;
2024-06-26 15:57:15 +00:00
padding: 0;
margin: 0;
2024-10-12 18:38:31 +00:00
overflow: hidden;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.flex-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.flex-container-inner {
width: 100%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
section {
margin-top: 48px;
margin-bottom: 120px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.text-well {
max-width: 100%;
padding-right: 35px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
/* Literal.Number.Integer.Long */
2024-06-26 15:57:15 +00:00
2024-10-12 18:38:31 +00:00
.hide {
display: none;
width: 100%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.show {
display: inline-block;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
/**
* Blog
*/
.post img {
max-width: 100%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
#lp-post-img {
max-width: 100%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
/** end blog */
2024-06-26 15:57:15 +00:00
2024-10-12 18:38:31 +00:00
*,
*::before,
*::after {
box-sizing: border-box;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
body {
font-family: 'Work Sans', sans-serif;
font-weight: 400;
width: 100%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.wrapper {
background: linear-gradient(60deg, #420285, #08BDBD);
height: 100%;
width: 100%;
display: flex;
justify-content: center;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.title {
text-transform: uppercase;
font-size: 20px;
margin-top: 10px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.timeline {
position: relative;
width: 100%;
height: 50px;
display: flex;
align-items: center;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.segment {
height: 5px;
background-color: white;
width: 33.33%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.active-segment {
background-color: #33ff57;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.marker {
height: 30px;
position: absolute;
width: 120px;
border-left: 2px solid black;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
/**
* timeline
*/
2024-06-26 15:57:15 +00:00
2024-10-12 18:38:31 +00:00
#to-date,
#from-date {
2024-06-26 15:57:15 +00:00
width: 100%;
2024-10-12 18:38:31 +00:00
text-align: center;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
#from-date-arrow,
#to-date-arrow {
font-size: 25px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.date-container {
width: 120px;
position: absolute;
margin-left: -60px;
margin-top: -5px;
text-align: center;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.from-date-container {
left: 33.33%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.to-date-container {
left: 66.66%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.marker-1 {
left: 33.33%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.marker-2 {
left: 66.66%;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
2024-06-26 15:57:15 +00:00
/**
2024-10-12 18:38:31 +00:00
* wizard
2024-06-26 15:57:15 +00:00
*/
2024-10-12 18:38:31 +00:00
.hidden {
display: none;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
input,
select,
textarea,
textarea::-webkit-input-placeholder {
border: 1px solid white;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
#wizard-container {
border: 1px solid white;
border-radius: 20px;
padding: 30px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
.divider {
color: white;
margin: 50px 0px;
2024-06-26 15:57:15 +00:00
}
2024-10-12 18:38:31 +00:00
#generated-policy-form {
height: 400px;
padding: 30px;
margin-top: 30px;
border-radius: 20px;
2024-06-26 15:57:15 +00:00
}
/**
* media queries
*/
@media (max-width: 1020px) {
.flex-container-inner {
width: 100% !important;
}
.flex-container {
display: inline-block;
}
.hide {
display: inline-block;
}
.show {
display: none;
}
}
@media (max-width: 600px) {
.companies {
flex-wrap: wrap;
}
.companies div {
width: 100%;
height: 170px;
border-bottom: none;
}
.carousel-container {
padding-top: 50px;
padding-left: 10px;
}
2024-10-12 18:38:31 +00:00
}