Ekapp/skolehjem/public/css/webapp.css

806 lines
12 KiB
CSS

@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;
}
form {
max-width: 100%;
padding: 0 0.45rem 0 0.45rem;
display: flex;
flex-direction: column;
justify-content: center;
}
.btn {
border: 0;
border-radius: 4px;
padding: 0.5rem;
cursor: pointer;
font-weight: 700;
font-size: 1.05rem;
background-color: white;
color: #333333;
margin-bottom: 0.5rem;
}
.btn-dark {
color: white;
background-color: #333333;
}
.btn-sde-blue {
color: white;
background-color: #00788a;
}
.btn-disabled {
color: white;
background-color: #cccccc;
}
.form-inline {
display: inline-flex;
}
input {
border: grey solid 2px;
border-radius: 4px;
background-color: transparent;
font-size: 1rem;
line-height: 2rem;
margin-bottom: 1rem;
}
input.appinput {
border: none;
border-bottom: white solid 2px;
background-color: transparent;
font-size: 1rem;
color: white;
line-height: 2rem;
margin-bottom: 1rem;
}
.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;
}
.cursor-normal {
cursor: default;
}
.cursor-pointer {
cursor: pointer;
}
.text-white {
color: #ffffff;
}
.text-center {
text-align: center;
}
.sde-blue {
color: #00788a;
}
.sde-black-80 {
color: #333333;
}
.sde-black-20 {
color: #cccccc;
}
.regular {
font-weight: 400;
}
.semi-bold {
font-weight: 600;
}
.bold {
font-weight: 700;
}
.toggle__label.sde-blue::before {
border-color: #00788a;
}
.sde-blue.toggle__text::before {
border-color: #00788a;
}
span.toggle__text.sde-blue {
font-size: 5vw;
}
.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-1 {
margin-left: 0.75rem;
}
.mr-1 {
margin-right: 0.75rem;
}
.mb-1 {
margin-bottom: 0.75rem;
}
.mt-1 {
margin-top: 0.75rem;
}
.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;
}
* {
font-family: "Titillium Web";
}
html,
body {
width: 100%;
margin: 0;
padding: 0;
height: 100%;
}
::-moz-placeholder {
opacity: 1;
}
:-ms-input-placeholder {
opacity: 1;
}
::-ms-input-placeholder {
opacity: 1;
}
::placeholder {
opacity: 1;
}
a {
color: #000000;
text-decoration: none;
}
.w-100 {
width: 100%;
}
.w-85 {
width: 85%;
}
.w-75 {
width: 75%;
}
.w-50 {
width: 50%;
}
.w-25 {
width: 25%;
}
.w-15 {
width: 15%;
}
.h-100 {
height: 100%;
}
.h-90 {
height: 90%;
}
.h-10 {
height: 10%;
}
.bg-sde-blue {
background-color: #00788a;
}
.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: 0.5428em;
left: 0.2em;
z-index: 3;
transform-origin: left top;
transform: rotate(-40deg) skew(10deg);
}
.toggle__input:not(:disabled):checked ~ .toggle__label .toggle__text::before {
width: 0.5em;
height: 0.25em;
border-left-width: var(--uiToggleArrowWidth);
border-bottom-width: var(--uiToggleArrowWidth);
will-change: width, height;
transition: width 0.1s ease-out 0.2s, height 0.2s ease-out;
margin-top: 3px;
}
.toggle__input:disabled ~ .toggle__label {
opacity: 0.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 0.1s ease-out 0.3s, width 0.1s ease-out 0.5s, height 0.2s ease-out 0.3s;
}
.toggle {
--toggleColor: transparent;
--toggleBgColor: transparent;
--toggleSize: 1.25rem;
}
main {
max-width: 900px;
display: flex;
flex-direction: column;
justify-content: center;
margin: auto;
padding: 0 1.25rem 0 1.25rem;
}
@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: 12px;
}
p {
font-size: 4vw;
}
}
.mock-up-link {
display: none;
}
@media (min-width: 768px) {
.mock-up-link {
display: block;
}
}
.main-container-wrapper {
background-color: #F8FAFA;
min-width: 320px;
min-height: 568px;
max-width: 414px;
overflow-y: auto;
}
@media (min-width: 415px) {
.main-container-wrapper {
box-shadow: 0px 32px 47px rgba(32, 23, 23, 0.09);
margin: 24px auto;
}
}
.header__btn {
background-color: #00788a;
border: 2px solid #fff;
border-radius: 50%;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
cursor: pointer;
height: 80px;
padding-top: 18px;
position: absolute;
top: -25px;
width: 80px;
}
.header__btn:hover,
.header__btn:focus {
background: #005561;
transition: all 0.3s ease-in;
outline: none;
}
.header__btn .icon {
display: inline-block;
}
.header__btn--left {
left: -25px;
padding-left: 38px;
text-align: left;
}
.header__btn--right {
padding-right: 32px;
right: -25px;
text-align: right;
}
.calendar-container {
background-color: #fff;
padding: 16px;
margin-bottom: 24px;
}
.calendar-container__header {
display: flex;
justify-content: space-between;
}
.calendar-container__btn {
background: transparent;
border: 0;
cursor: pointer;
font-size: 16px;
outline: none;
color: #E9E8E8;
}
.calendar-container__btn:hover,
.calendar-container__btn:focus {
color: #9FAAB7;
transition: all 0.3s ease-in;
}
.calendar-container__title {
color: #222741;
font-size: 20px;
font-weight: 700;
}
.calendar-table {
margin-top: 12px;
width: 100%;
}
.calendar-table__item {
border: 2px solid transparent;
border-radius: 50%;
color: #424588;
font-size: 12px;
font-weight: 700;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.calendar-table__item:hover {
background: RGBA(0, 120, 138, 0.6);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
transition: 0.2s all ease-in;
}
.calendar-table__item:hover > span {
color: white;
}
.calendar-table__row {
display: flex;
justify-content: center;
}
.calendar-table__header {
border-bottom: 2px solid #F2F6F8;
margin-bottom: 4px;
}
.calendar-table__header .calendar-table__col {
display: inline-block;
color: #99A4AE;
font-size: 12px;
font-weight: 700;
padding: 12px 3px;
text-align: center;
text-transform: uppercase;
width: 40px;
height: 38px;
}
@media (min-width: 360px) {
.calendar-table__header .calendar-table__col {
width: 46px;
}
}
@media (min-width: 410px) {
.calendar-table__header .calendar-table__col {
width: 54px;
}
}
.calendar-table__body .calendar-table__col {
width: 40px;
height: 42px;
padding-bottom: 2px;
}
@media (min-width: 360px) {
.calendar-table__body .calendar-table__col {
width: 46px;
height: 48px;
}
}
@media (min-width: 410px) {
.calendar-table__body .calendar-table__col {
width: 54px;
height: 56px;
}
}
.calendar-table__today .calendar-table__item {
border-color: #FEFEFE;
background-color: #00788a;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.calendar-table__event .calendar-table__item {
background-color: #00788a;
border-color: #FEFEFE;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
color: #fff;
}
.calendar-table__event--long {
overflow-x: hidden;
}
.calendar-table__event--long .calendar-table__item {
border-radius: 0;
border-width: 2px 0;
}
.calendar-table__event--start .calendar-table__item {
border-left: 2px solid #fff;
border-radius: 50% 0 0 50%;
}
.calendar-table__event--start.calendar-table__col:last-child .calendar-table__item {
border-width: 2px;
}
.calendar-table__event--end .calendar-table__item {
border-right: 2px solid #fff;
border-radius: 0 50% 50% 0;
}
.calendar-table__event--end.calendar-table__col:first-child .calendar-table__item {
border-width: 2px;
}
.calendar-table__inactive .calendar-table__item {
color: #DCDCE3;
cursor: default;
}
.calendar-table__inactive .calendar-table__item:hover {
background: transparent;
box-shadow: none;
}
.calendar-table__inactive.calendar-table__event .calendar-table__item {
color: #fff;
opacity: 0.25;
}
.calendar-table__inactive.calendar-table__event .calendar-table__item:hover {
background: #00788a;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
.calendar-table__today > .calendar-table__item > span {
color: white;
}
.events-container {
padding: 0 15px;
}
.events__title {
color: #BEC1CA;
display: inline-block;
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.events__tag {
background: #00788a;
border: 2px solid #FEFEFE;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
border-radius: 20px;
color: #fff;
font-size: 10px;
font-weight: 600;
width: 60px;
margin-left: 16px;
padding: 5px 2px;
text-align: center;
}
.events__tag--highlighted {
background: #FDCA40;
}
.events__item {
background: #fff;
border-left: 8px solid #00788a;
border-radius: 2px;
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.05);
padding: 15px 16px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.events__item--left {
width: calc(100% - 76px);
}
.events__name {
font-size: 12px;
font-weight: 700;
color: #222741;
display: block;
margin-bottom: 6px;
}
.events__date {
font-size: 12px;
color: #9FAAB7;
display: inline-block;
}