Добавил компоненты карточек лабораторий и их списка + стили

This commit is contained in:
ifraimka committed 2024-11-07 16:34:43 +03:00
1 parent 58a1bb81ca
commit 8888f3a9c4
4 files changed
+167

No files matched your search

+80
View File
@@ -0,0 +1,80 @@
@import "../../assets/styles/theme.scss";
.row.lab-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 26px;
.card {
flex: 1 1 30%;
height: 300px;
overflow: hidden;
position: relative;
border-radius: 8px;
color: $text-secondary;
background: $bg-card-lab;
.image {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
opacity: 0.9;
transition: opacity .2s ease-out;
}
.content {
margin: 0;
position: absolute;
inset: auto 20px 10px 20px;
transition: inset .3s;
background: none !important;
h2 {
margin: 0;
font-size: 24px;
font-weight: 600;
line-height: 28px;
}
.hidden {
max-height: 0;
transition: max-height 0.3s ease-out, opacity 0.3s 0.3s ease-out;
opacity: 0;
max-width: 80%;
p {
font-size: 16px;
font-weight: 400;
line-height: 20px;
}
.link-label {
font-size: 20px;
font-weight: 500;
line-height: 24px;
}
}
}
&:hover .content {
bottom: 20px;
}
&:hover .content .hidden {
max-height: 200px;
opacity: 1;
transition: max-height 0.3s ease-out, opacity .1s ease-in;
}
&:hover .image {
transition: opacity .3s ease-in;
opacity: 0.5;
}
}
}