Added Images, fonts, vagttelefon and menuplan

This commit is contained in:
Frederikmillingpytlick
2020-06-11 14:52:15 +02:00
parent 9c6d8c04cd
commit a341e61bad
32 changed files with 699 additions and 25 deletions
+119
View File
@@ -0,0 +1,119 @@
.toggle{
--uiToggleSize: var(--toggleSize, 20px);
--uiToggleIndent: var(--toggleIndent, .4em);
--uiToggleBorderWidth: var(--toggleBorderWidth, 2px);
--uiToggleColor: var(--toggleColor, #000);
--uiToggleDisabledColor: var(--toggleDisabledColor, #868e96);
--uiToggleBgColor: var(--toggleBgColor, #fff);
--uiToggleArrowWidth: var(--toggleArrowWidth, 2px);
--uiToggleArrowColor: var(--toggleArrowColor, #fff);
margin-bottom: 1.5rem;
display: inline-block;
position: relative;
}
.toggle__input{
position: absolute;
left: -99999px;
}
.toggle__label{
display: inline-flex;
min-height: var(--uiToggleSize);
padding-left: calc(var(--uiToggleSize) + var(--uiToggleIndent));
}
.toggle__input:not(:disabled) ~ .toggle__label{
cursor: pointer;
}
.toggle__label::before,
.toggle__label::after{
content: "";
box-sizing: border-box;
width: 1em;
height: 1em;
font-size: var(--uiToggleSize);
position: absolute;
left: 0;
top: 0;
}
.toggle__label:before{
border: var(--uiToggleBorderWidth) solid var(--uiToggleColor);
z-index: 2;
}
.toggle__input:disabled ~ .toggle__label::before{
border-color: var(--uiToggleDisabledColor);
}
.toggle__input:focus ~ .toggle__label::before{
box-shadow: 0 0 0 2px var(--uiToggleBgColor), 0 0 0 4px var(--uiToggleColor);
}
.toggle__input:not(:disabled):checked:focus ~ .toggle__label::after{
box-shadow: 0 0 0 2px var(--uiToggleBgColor), 0 0 0 4px var(--uiToggleColor);
}
.toggle__input:not(:disabled) ~ .toggle__label::after{
background-color: var(--uiToggleColor);
opacity: 0;
}
.toggle__input:not(:disabled):checked ~ .toggle__label::after{
opacity: 1;
}
.toggle__text{
margin-top: auto;
margin-bottom: auto;
}
.toggle__text::before{
content: "";
box-sizing: border-box;
width: 0;
height: 0;
font-size: var(--uiToggleSize);
border-left-width: 0;
border-bottom-width: 0;
border-left-style: solid;
border-bottom-style: solid;
border-color: var(--uiToggleArrowColor);
position: absolute;
top: .5428em;
left: .2em;
z-index: 3;
transform-origin: left top;
transform: rotate(-40deg) skew(10deg);
}
.toggle__input:not(:disabled):checked ~ .toggle__label .toggle__text::before{
width: .5em;
height: .25em;
border-left-width: var(--uiToggleArrowWidth);
border-bottom-width: var(--uiToggleArrowWidth);
will-change: width, height;
transition: width .1s ease-out .2s, height .2s ease-out;
margin-top: 3px;
}
.toggle__input:disabled ~ .toggle__label{
opacity: .24;
cursor: not-allowed;
}
.toggle__label::before,
.toggle__label::after{
border: 2px solid;
border-color: white;
}
.toggle__input:not(:disabled) ~ .toggle__label::before,
.toggle__input:not(:disabled) ~ .toggle__label::after{
opacity: 1;
transform-origin: center center;
margin-top: 3px;
}
.toggle__text::before{
opacity: 0;
}
.toggle__input:not(:disabled):checked ~ .toggle__label .toggle__text::before{
opacity: 1;
transition: opacity .1s ease-out .3s, width .1s ease-out .5s, height .2s ease-out .3s;
}
.toggle{
--toggleColor: transparent;
--toggleBgColor: transparent;
--toggleSize: 1.25rem;
}
+76
View File
@@ -0,0 +1,76 @@
* {
font-family: $font-family-sans-serif;
}
html, body {
width: 100%;
margin: 0;
height: 100%;
}
::placeholder {
opacity: 1;
}
a {
color: #000000;
text-decoration: none;
}
// Mobile
@media only screen
and (max-width : 900px)
{
main {
max-width: 460px;
display: flex;
flex-direction: column;
justify-content: center;
margin: auto;
padding: 0 1.25rem 0 1.25rem;
}
.brand {
padding: 0 1rem 0 1rem;
margin: 7rem 0 5rem 0;
}
header, #menu {
padding: 1.25rem 1.75rem 0 1.75rem;
}
#menu {
padding-top: 4rem;
}
#menu > a {
color: white;
font-size: 8vw;
font-weight: 600;
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}
#menu > a > img {
height: 1em;
margin-right: 8px;
}
h1 {
font-size: 12vw;
}
h3 {
font-size: 8vw;
}
span {
font-size: 5vw;
}
p {
font-size: 4vw;
}
}
+21
View File
@@ -0,0 +1,21 @@
.d-flex {
display: flex;
}
.d-none {
display: none !important;
}
.row {
display: flex;
flex-direction: row;
}
.align-items-center {
align-items: center;
}
.col {
display: flex;
flex-direction: column;
}
+51 -20
View File
@@ -1,23 +1,54 @@
input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #CCC;
border-radius: 4px;
box-sizing: border-box;
resize: vertical;
}
/* Mobile */
@media only screen
and (max-width : 900px)
{
form {
max-width: 100%;
padding: 0 .45rem 0 .45rem;
display: flex;
flex-direction: column;
justify-content: center;
}
label {
padding: 12px 12px 12px 0;
display: inline-block;
}
input[type="email"], input[type="password"] {
border: none;
border-bottom: white solid 2px;
background-color: transparent;
font-size: 1rem;
color: rgba(255,255,255,1);
line-height: 2rem;
margin-bottom: 1rem;
}
.btn {
border: 0;
border-radius: 4px;
padding: .75rem;
cursor: pointer;
font-weight: 700;
font-size: 1.05rem;
background-color: white;
color: $sde-black-80;
margin-bottom: .5rem;
}
.btn-dark {
color: white;
background-color: $sde-black-80;
}
.btn-sde-blue {
color: white;
background-color: $sde-blue;
}
.btn-disabled {
color: white;
background-color: $sde-black-20;
}
.form-inline {
display: inline-flex;
}
input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
float: right;
}
+67
View File
@@ -0,0 +1,67 @@
.m-auto {
margin: auto;
}
.mr-auto {
margin-right: auto;
}
.ml-auto {
margin-left: auto;
}
.mt-auto {
margin-top: auto;
}
.mb-auto {
margin-bottom: auto;
}
.ml-0 {
margin-left: 0;
}
.mr-0 {
margin-right: 0;
}
.mb-0 {
margin-bottom: 0;
}
.mt-0 {
margin-top: 0;
}
.ml-2 {
margin-left: 3rem;
}
.mr-2 {
margin-right: 3rem;
}
.mb-2 {
margin-bottom: 3rem;
}
.mt-2 {
margin-top: 3rem;
}
.ml-3 {
margin-left: 3rem;
}
.mr-3 {
margin-right: 4.75rem;
}
.mb-3 {
margin-bottom: 4.75rem;
}
.mt-3 {
margin-top: 4.75rem;
}
+23
View File
@@ -0,0 +1,23 @@
.w-100 {
width: 100%;
}
.w-75 {
width: 75%;
}
.w-50 {
width: 50%;
}
.w-25 {
width: 25%;
}
.min-height-100 {
min-height: 100%;
}
.bg-sde-blue {
background-color: $sde-blue;
}
+43
View File
@@ -0,0 +1,43 @@
.text-white {
color: #ffffff;
}
.text-center {
text-align: center;
}
.sde-blue {
color: $sde-blue;
}
.sde-black-80 {
color: $sde-black-80;
}
.sde-black-20 {
color: $sde-black-20;
}
.regular {
font-weight: 400;
}
.semi-bold {
font-weight: 600;
}
.bold {
font-weight: 700;
}
.toggle__label.sde-blue::before {
border-color: $sde-blue;
}
.sde-blue.toggle__text::before {
border-color: $sde-blue;
}
span.toggle__text.sde-blue {
font-size: 5vw;
}
+9 -2
View File
@@ -2,7 +2,7 @@
$body-bg: #f8fafc;
// Typography
$font-family-sans-serif: 'Nunito', sans-serif;
$font-family-sans-serif: 'Titillium Web';
$font-size-base: 0.9rem;
$line-height-base: 1.6;
@@ -18,4 +18,11 @@ $green: #38c172;
$teal: #4dc0b5;
$cyan: #6cb2eb;
$sde-blue: #00788A;
// SDE Colors
$sde-blue: rgb(0, 120, 138);
$sde-black-100: rgb(0, 0, 0);
$sde-black-80: rgb(51, 51, 51);
$sde-black-60: rgb(102, 102, 102);
$sde-black-40: rgb(153, 153, 153);
$sde-black-20: rgb(204, 204, 204);
+36 -1
View File
@@ -1,8 +1,43 @@
// Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
@font-face {
font-family: 'Titillium Web';
src: url('/fonts/TitilliumWeb-Regular.ttf');
font-weight: normal;
}
@font-face {
font-family: 'Titillium Web';
src: url('/fonts/TitilliumWeb-SemiBold.ttf');
font-weight: 600;
}
@font-face {
font-family: 'Titillium Web';
src: url('/fonts/TitilliumWeb-Bold.ttf');
font-weight: 700;
}
// Variables
@import 'variables';
// Defaults
@import "default";
// Forms
@import "forms";
// Displays
@import "displays";
// Texts
@import "texts";
// Margins
@import "margins";
// Sizes
@import "sizes";
// Checkboxes
@import "checkboxes";
// Bootstrap
//@import '~bootstrap/scss/bootstrap';