Generateurv2/frontend/styles/exos/ModelInput.module.scss

130 lines
2.1 KiB
SCSS
Raw Normal View History

2022-06-11 23:39:03 +02:00
@import "../variables";
.open-btn {
2022-05-18 10:15:54 +02:00
height: max-content;
}
.button-lang {
2022-06-11 23:39:03 +02:00
//height: 3.5vh;
width: 5%;
min-width: max-content;
border: none;
border-radius: 5px;
color: white;
font-weight: bolder;
margin: 2%;
margin-left: 0;
display: flex;
align-items: center;
padding: 10px;
margin-right: 0;
gap: 5px;
& > svg {
height: 120%;
}
2022-05-18 10:15:54 +02:00
}
.button-lang-python {
2022-06-11 23:39:03 +02:00
background-color: $bleu;
transition:.3s;
border: 1px solid $bleu;
box-shadow: 0px 0px 10px 1px rgba(11, 2, 72, 0.72);
&:hover {
background-color: darken($color: $bleu, $amount: 15);
box-shadow: 0px 0px 10px 1px rgba(11, 2, 65, 0.72);
2022-05-18 10:15:54 +02:00
2022-06-11 23:39:03 +02:00
border: 1px solid darken($color: $bleu, $amount: 15);
}
}
2022-05-18 10:15:54 +02:00
2022-06-11 23:39:03 +02:00
.btn-disabled {
2022-05-18 10:15:54 +02:00
background-color: grey;
2022-06-11 23:39:03 +02:00
&:hover {
2022-05-18 10:15:54 +02:00
background-color: grey;
}
}
.input-container {
display: flex;
align-items: center;
& > svg {
height: 100%;
width: 5%;
}
2022-06-11 23:39:03 +02:00
& > p {
margin: 1%;
font-weight: 600;
}
}
.inputfile {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
& + label {
font-size: 1;
font-weight: 700;
color: black;
background-color: $primary;
display: inline-block;
padding: 10px;
border-radius: 5px;
white-space: nowrap;
transition:.3s;
&:hover {
background-color: $primary-dark;
}
}
}
.fileinput-container {
display: flex;
border: $primary 1px solid;
border-radius: 5px;
align-items: center;
}
.filename {
max-width: 200px;
text-align: center;
min-width: 100px;
color: $primary;
font-weight: 700;
text-overflow: ellipsis;
overflow: hidden;
padding: 10px;
white-space: nowrap;
cursor: default;
display: flex;
align-items: center;
justify-content: center;
gap: 5%;
& svg {
cursor: pointer;
}
}
.inputfile + label {
cursor: pointer; /* "hand" cursor */
}
/* .inputfile:focus + label,
.inputfile + label:hover {
background-color: $primary-dark;
}
*/
.inputfile + label svg {
width: 1em;
height: 1em;
vertical-align: middle;
fill: currentColor;
margin-top: -0.25em;
/* 4px */
margin-right: 0.25em;
/* 4px */
2022-05-18 10:15:54 +02:00
}