File: D:/HostingSpaces/SBogers10/farmfun.komma.pro/resources/sass/site/6-Organisms/_organisms.modal.scss
$o-modal-gutter: space(3);
.o-modal {
@include z(z-modal);
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
transition: opacity 200ms linear;
}
.o-modal__shader {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: palette(secondary, 900);
cursor: pointer;
opacity: 0.8;
transition: background-color .15s linear;
}
.o-modal__main {
position: relative;
z-index: 2;
width: 100%;
min-height: 100%;
padding: 5vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
pointer-events: none;
}
.o-modal__content {
position: relative;
z-index: 3;
width: 90vw;
padding-bottom: space(3);
background-color: palette(neutral, 0);
opacity: 0;
transform: translateY(25px);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(.17, .84, .44, 1), linear;
transition-duration: 300ms, 300ms;
transition-delay: 0s;
@include mq(400) {
max-width: 384px;
}
.is-modal-visible & {
opacity: 1;
pointer-events: all;
transform: translateY(0px);
transition-delay: 150ms, 150ms;
}
}
.o-modal__header {
position: relative;
background-color: palette(secondary, 700);
color: palette(neutral, 0);
padding: space(2) $o-modal-gutter;
display: flex;
flex-direction: row-reverse;
}
.o-model__selected {
position: relative;
padding: space(2) $o-modal-gutter;
}
.o-modal__edit {
position: absolute;
top: space(2);
right: $o-modal-gutter;
display: flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
background-color: palette(primary, 500);
border-radius: 8px;
transition: background-color 0.2s;
color: white;
cursor: pointer;
&:hover {
background-color: lighten(palette(primary, 500), 2%);
color: palette(secondary, 700);
}
}
.o-modal__close {
flex: none;
width: 20px;
height: 20px;
margin-top: 7px;
appearance: none;
background-color: transparent;
border: none;
cursor: pointer;
opacity: 0.5;
transform: rotate(45deg);
transition: opacity .2s,transform .4s;
&::after,
&::before {
content: "";
position: absolute;
left: 0;
top: calc(50% - 2px);
display: block;
background-color: #fff;
width: 100%;
height: 2px;
}
&::after {
transform: rotate(90deg);
}
&:hover {
opacity: 1;
}
}
.o-modal__title {
flex: auto;
padding-right: space(2);
@include font-size(xl);
font-weight: bold;
}
.o-modal__location {
margin-top: space(0.5);
padding-left: 24px;
background-repeat: no-repeat;
background-position: space(-0.5) center;
background-size: 24px 24px;
background-image: url('/img/location--green.svg');
}
.o-modal__details {
background-color: palette(primary, 500);
padding: space(2) $o-modal-gutter space(3);
}
.o-modal__current {
}
.o-modal__notification {
margin-top: space(2);
}
.o-modal__notification-message {
padding: space(1.5) space(2);
@include border-radius(s);
@include font-size(s);
line-height: 1.5;
background-color: rgba(white, 0.3);
}
.o-modal__remarks,
.o-modal__notes{
margin-top: space(3);
padding: 0 $o-modal-gutter;
}
.o-modal__notes {
> * + * {
margin-top: space(1);
}
}
.o-modal__confirm {
margin: space(3) 0;
padding: 0 $o-modal-gutter;
}
.o-modal__errors {
padding: 0 $o-modal-gutter;
> * + * {
margin-top: space(1);
}
}
.o-modal__submit {
margin-top: space(3);
padding: 0 $o-modal-gutter;
&.is-disabled {
opacity: 0.4;
pointer-events: none;
}
}
.o-modal__cancel {
text-align: center;
margin-top: space(2);
padding: 0 $o-modal-gutter;
}