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

138 lines
2.1 KiB
SCSS
Raw Normal View History

2022-05-18 10:15:54 +02:00
@import "../variables";
@import "./Card.module.scss";
2022-06-11 23:39:03 +02:00
@import "../mixins";
2022-05-18 10:15:54 +02:00
.ex_card--full:hover {
2022-06-11 23:39:03 +02:00
transform: none;
2022-05-18 10:15:54 +02:00
}
2022-06-11 23:39:03 +02:00
.ex_card--full {
background-color: $background-light;
@include down(840) {
2022-05-18 10:15:54 +02:00
height: 100%;
}
}
2022-06-11 23:39:03 +02:00
.ex_card--full:not(.card-deleted):hover {
2022-05-18 10:15:54 +02:00
transform: none;
}
2022-06-11 23:39:03 +02:00
.updating {
2022-05-18 10:15:54 +02:00
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
2022-06-11 23:39:03 +02:00
& span {
2022-05-18 10:15:54 +02:00
width: 30px;
height: 30px;
}
}
.ex_card--body {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(5, auto);
background-color: $background-light;
//width: max-content;
min-width: 820px;
max-width: 40vw;
min-height: 1px;
2022-06-11 23:39:03 +02:00
transition: 0.3s;
2022-05-18 10:15:54 +02:00
max-height: 80vh;
overflow: scroll;
@include no-scroll();
2022-06-11 23:39:03 +02:00
@include down(840) {
2022-05-18 10:15:54 +02:00
width: 100%;
height: 100%;
2022-06-24 13:42:16 +02:00
display: flex;
2022-05-18 10:15:54 +02:00
max-width: 200%;
min-width: 1px;
padding: 8vmin;
2022-06-24 13:42:16 +02:00
flex-direction: column;
2022-05-18 10:15:54 +02:00
}
}
.ex_card--title {
grid-column: 1 / 3;
grid-row: 1;
2022-06-11 23:39:03 +02:00
cursor: default;
& a {
font-size: 0.6em;
font-weight: 300;
//z-index: 1000;
color: grey;
cursor: pointer;
transition: .3s;
text-decoration: underline transparent;
margin-left: 10px;
&:hover {
color: $contrast!important;
font-weight: 600;
text-decoration: underline;
}
}
2022-06-24 13:42:16 +02:00
& p.author{
display: inline;
font-size: 0.7em;
font-weight: 400;
margin-left: 10px;
font-style:italic;
&:hover{
color: inherit;
}
}
2022-05-18 10:15:54 +02:00
}
.icon-container {
position: absolute;
width: 100%;
2022-06-11 23:39:03 +02:00
margin: 0;
2022-05-18 10:15:54 +02:00
display: flex;
justify-content: space-between;
top: 0;
right: 0;
2022-06-11 23:39:03 +02:00
padding: 3%;
z-index: 70;
& > * > .icon:hover,
& > .icon:hover {
2022-05-18 10:15:54 +02:00
transform: scale(1.1);
}
2022-06-11 23:39:03 +02:00
& > div {
2022-05-18 10:15:54 +02:00
display: flex;
}
}
2022-06-11 23:39:03 +02:00
.icon {
transition: 0.3s;
2022-05-18 10:15:54 +02:00
width: 20px;
height: 20px;
2022-06-11 23:39:03 +02:00
margin: 0.5%;
2022-05-18 10:15:54 +02:00
}
2022-06-11 23:39:03 +02:00
.delete {
2022-05-18 10:15:54 +02:00
color: red;
}
2022-06-11 23:39:03 +02:00
.edit {
2022-05-18 10:15:54 +02:00
color: green;
}
2022-06-11 23:39:03 +02:00
.ex_card-fade {
transition: 0.3s;
2022-05-18 10:15:54 +02:00
opacity: 0;
}
2022-06-11 23:39:03 +02:00
.ex_card--big {
2022-05-18 10:15:54 +02:00
width: 100vw;
2022-06-11 23:39:03 +02:00
min-width: 100vw;
2022-05-18 10:15:54 +02:00
min-height: 100vh;
2022-06-11 23:39:03 +02:00
// height: 100vh;
transition: 0.5s;
2022-05-18 10:15:54 +02:00
padding: 1% 2% 3% 2%;
display: block;
}
2022-06-11 23:39:03 +02:00
.edit-card {
2022-05-18 10:15:54 +02:00
display: flex;
flex-direction: column;
2022-06-11 23:39:03 +02:00
}