mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
Фикс стилей списка лабораторий: убрал лишний файл стилей, переделал под grid, вынес gap в глобальную переменную row-gap
This commit is contained in:
1 parent
04619ea3ae
commit
4a9a3baf94
4 files changed
+5
-87
No files matched your search
@@ -20,3 +20,5 @@ $btn-primary-bg: linear-gradient(93.25deg, #4942E4 0%, #11009E 50%, #4942E4 100%
|
||||
$navbar-height: 60px;
|
||||
$navbar-height-mini: 30px;
|
||||
$navbar-padding-tb: 10px;
|
||||
|
||||
$row-gap: 26px;
|
||||
@@ -1,13 +1,12 @@
|
||||
@import "../../assets/styles/theme.scss";
|
||||
|
||||
.row.lab-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, calc((100% - $row-gap * 2) / 3));
|
||||
justify-content: space-between;
|
||||
gap: 26px;
|
||||
gap: $row-gap;
|
||||
|
||||
.card {
|
||||
flex: 1 1 30%;
|
||||
height: 300px;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import BlockHeading from '../BlockHeading';
|
||||
import { LabList } from '../../../../components';
|
||||
|
||||
import './Labs.styles.scss';
|
||||
|
||||
function Labs() {
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
@import "../../../../assets/styles/theme.scss";
|
||||
|
||||
#labs {
|
||||
.row {
|
||||
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 {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user