Generateurv2/frontend/styles/pdf_gen/selectExo.module.scss
2022-06-24 13:42:16 +02:00

177 lines
2.9 KiB
SCSS

@import "../variables";
@import "../mixins";
.exo-select {
border: 1px solid $border;
width: 100%;
height: 100%;
background-color: rgba($background, 0.5);
overflow-y: auto;
//scrollbar-color: $contrast $background;
@include down(840) {
width: 100%;
max-height: 80vh;
height: auto;
//height: max-content;
//min-height: 100%;
//max-height: 120vh;
}
}
.head {
display: flex;
justify-content: space-between;
font-weight: 900;
margin: 3%;
border-bottom: 1px solid $background;
padding-bottom: 1%;
& > p {
margin-top: 0;
transition: 0.3s;
}
& > .add:hover {
transform: rotate(180deg);
transition: 0.3s ease;
cursor: pointer;
}
& > .add {
font-size: 1.5em;
}
}
.modal-list-container {
width: max-content;
// min-width: 30vw;
max-width: 40vw;
min-height: 1px;
max-height: 70vh;
background-color: $background-light;
overflow-y: scroll;
scrollbar-width: thin;
scrollbar-color: $contrast $background;
padding: 2%;
min-width: 820px;
& > p {
cursor: pointer;
}
@include down(840) {
width: 100%;
height: 100%;
max-width: 200%;
max-height: 200%;
min-width: 1px;
}
}
.selected {
color: grey;
transition: 0.3s;
}
.item-in-modal {
display: flex;
align-items: center;
& > div {
margin-right: 0;
}
overflow: hidden;
width: 100%;
&:hover {
background-color: darken($color: $background-light, $amount: 3);
}
}
.modal-name {
min-width: max-content;
margin: 1.5%;
}
.tag-container {
& > div {
margin-right: 0;
}
}
.no-select {
text-align: center;
font-style: italic;
margin-bottom: 5%;
}
.error {
width: 100%;
text-align: center;
}
.error-empty {
text-decoration: underline;
font-weight: 700;
}
.search-container {
display: flex;
flex-direction: column;
}
.toggler-sort {
width: max-content;
padding: 0.8%;
transition: 0.3s;
border: 1px solid $border;
border-radius: 4px;
display: flex;
align-items: center;
margin: 0 1%;
&:hover {
background-color: darken($color: $background, $amount: 5);
}
}
.toggler-active {
background-color: darken($color: $background, $amount: 5);
}
.icon-container {
position: absolute;
top: 0;
right: 0;
// float: right;
transition: 0.3s;
// width: 100%;
margin: 1.5%;
//text-align: end;
& > .icon {
margin: 2%;
&:hover {
transform: scale(1.2);
}
}
}
.loader-container {
text-align: center;
& span {
width: 20px;
height: 20px;
}
}
.select {
border: none;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: medium;
background: transparent;
color: white;
width: max-content;
float: right;
border-bottom: $border 1px solid;
padding: 10px;
transition: 0.3s ease;
font-weight: 500;
&:focus {
border-bottom: $contrast 1px solid;
}
}