Generateurv2/frontend/styles/exos/Card.module.css
Kilton937342 035af2a3b7 modifs
2022-06-11 23:39:03 +02:00

281 lines
5.3 KiB
CSS

.ex_card--full {
z-index: 1;
background-color: #1d1a5a;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
border-radius: 2px;
cursor: pointer;
position: relative;
-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
-webkit-transition: 0.4s;
transition: 0.4s;
}
.ex_card--full:not(.card-deleted):hover {
/* border: 1px solid $primary;
*/
-webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
-webkit-transform: translate(5px, -8px);
transform: translate(5px, -8px);
-webkit-transition: -webkit-transform 0.4s;
transition: -webkit-transform 0.4s;
transition: transform 0.4s;
transition: transform 0.4s, -webkit-transform 0.4s;
}
.ex_card--full:hover .card_icons {
opacity: 1;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.no_hover:hover {
border: none;
-webkit-transform: none;
transform: none;
}
.ex_card--content:not(.no_hover):hover ~ .card-hover, .card-hover:not(.no_hover):hover {
border: 1px solid #FCBF49;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.ex_card--content {
color: grey;
font-size: 0.95em;
margin-top: 0;
z-index: 3;
}
.ex_card--title {
font-size: 1.3em;
margin: 5%;
font-weight: 900;
cursor: pointer;
margin: 0;
max-width: 90%;
}
.ex_card--title p,
.ex_card--title a {
position: relative;
margin: 0;
z-index: 15;
}
.ex_card--title p:not(.no_hover):hover,
.ex_card--title a:not(.no_hover):hover {
color: #FCBF49;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.ex_card--body {
display: -ms-grid;
display: grid;
-ms-grid-columns: 1fr;
grid-template-columns: 1fr;
padding: 8%;
grid-gap: calc(1 * 8px);
margin-bottom: 10%;
}
.exemple {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 80%;
}
.card-hover {
border: 1px solid #181553;
width: 100%;
height: 100%;
z-index: 10;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.card-hover:not(.no_hover):hover ~ .ex_card--footer {
border: 1px solid #FCBF49;
border-top: none;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.card-hover.no_hover span {
position: absolute;
top: 50%;
right: 50%;
width: 30px;
height: 30px;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-animation: rotation 1s infinite linear;
animation: rotation 1s infinite linear;
}
@-webkit-keyframes rotation {
0% {
-webkit-transform: translate(0%, -50%) rotate(0deg);
transform: translate(0%, -50%) rotate(0deg);
}
100% {
-webkit-transform: translate(0%, -50%) rotate(360deg);
transform: translate(0%, -50%) rotate(360deg);
}
}
@keyframes rotation {
0% {
-webkit-transform: translate(0%, -50%) rotate(0deg);
transform: translate(0%, -50%) rotate(0deg);
}
100% {
-webkit-transform: translate(0%, -50%) rotate(360deg);
transform: translate(0%, -50%) rotate(360deg);
}
}
.ex_card--footer-not-tag {
display: -ms-grid;
display: grid;
-ms-grid-columns: 85% auto;
grid-template-columns: 85% auto;
grid-gap: 8px;
}
.ex_card--footer {
background-color: #171446;
min-height: 0;
position: absolute;
bottom: 0;
width: 100%;
-webkit-transition: 0.8s;
transition: 0.8s;
border: 1px solid #171446;
margin: 0;
z-index: 100;
border-top: none;
-webkit-transition: 0.4s;
transition: 0.4s;
-webkit-transition: min-height 0.7s border 0.4s;
transition: min-height 0.7s border 0.4s;
}
.footer-size {
opacity: 0;
width: 100%;
}
.tag_card {
position: absolute;
min-height: 100%;
-webkit-transition: 0.7s;
transition: 0.7s;
bottom: 0;
z-index: 100;
padding: 2%;
}
.tag--container {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow: auto;
overflow-y: hidden;
scrollbar-width: thin;
scrollbar-color: #5396e7 #1a0f7a;
scrollbar-color: #5396e7 #1a0f7a;
}
.tag--container::-webkit-scrollbar {
height: 5px;
}
.tag--container::-webkit-scrollbar-track {
background-color: #1a0f7a;
}
.tag--container::-webkit-scrollbar-thumb {
background-color: #5396e7;
}
.ex_card--add-tag {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
z-index: 4;
}
.ex_card--add-tag hr {
width: 2%;
height: 70%;
border: none;
background-color: black;
}
.ex_card--add-tag p {
margin: auto;
font-size: 1.2em;
font-weight: 900;
width: 100%;
text-align: center;
-webkit-transition: 0.5s;
transition: 0.5s;
}
.ex_card--add-tag p:hover {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.card-progress {
margin-top: auto;
}
.card-deleted {
opacity: 0.5;
}
.icon-container {
position: absolute;
right: 0;
top: 0;
margin: 5%;
z-index: 100;
}
.icon-container svg {
opacity: .5;
-webkit-transition: .3s;
transition: .3s;
}
.icon-container svg:hover {
opacity: 1;
}
.registered svg {
opacity: 1;
fill: red;
}
/*# sourceMappingURL=Card.module.css.map */