-
Rémi PAILHAREY authoredRémi PAILHAREY authored
popups.scss 2.66 KiB
@import '../../styles/config/colors';
.popups {
.disabled {
opacity: 0.5;
}
.partnersInfo,
.customPopup {
h2.title {
margin: 1rem 0;
}
}
.partnersInfo {
margin: 2rem 0;
h1 {
margin-bottom: 1rem;
}
p {
color: $text-grey;
}
}
.customPopup {
.currentPopup {
display: flex;
margin-bottom: 1rem;
.switch_div {
padding-top: 0;
}
p.endDate {
color: $gold-dark;
font-weight: bold;
}
}
}
.popupTitle {
margin-bottom: 1.5rem;
}
.popupTitle,
.popupDescription,
.popupEndDate {
display: flex;
flex-direction: column;
gap: 0.5rem;
label {
text-transform: uppercase;
font-weight: 700;
}
input,
textarea {
background: inherit;
border-radius: 4px;
border: 1px solid $text-chart;
max-width: 600px;
padding: 1rem;
color: $text-grey;
font-size: 1rem;
}
.count {
color: $text-dark;
max-width: 600px;
height: 19px;
font-weight: 400;
font-size: 0.8rem;
display: flex;
justify-content: flex-end;
}
}
.popupEndDate {
margin-top: 1rem;
.durationInput {
display: flex;
gap: 1.5rem;
max-height: 36px;
input,
select {
background: #383941;
border: 1px solid $text-chart;
border-radius: 2px;
}
input {
max-width: 100px;
}
select {
max-width: 180px;
padding: 0.5rem 1rem;
option {
background-color: $grey-light;
}
}
}
}
.buttons {
display: flex;
justify-content: center;
gap: 1rem;
button {
margin: 0;
}
}
.switch_div {
display: inline-block;
padding: 1rem 1rem;
min-width: 135px;
span {
color: $text-dark;
}
input[type='checkbox'] {
width: 0;
height: 0;
visibility: hidden;
margin-bottom: 15px;
}
label {
display: block;
width: 50px;
height: 20px;
background-color: grey;
border-radius: 15px;
position: relative;
cursor: pointer;
transition: 0.5s;
box-shadow: 0 0 20px #80808050;
}
label::after {
content: '';
width: 17px;
height: 17px;
background-color: #e8f5f7;
position: absolute;
border-radius: 13px;
top: 2px;
left: 2px;
transition: 0.5s;
}
input:checked + label:after {
left: calc(100% - 3px);
transform: translateX(-100%);
}
input:checked + label {
background-color: #e3b82a;
}
label:active:after {
width: 34px;
}
}
}