mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:59:45 +00:00
Уменьшение карточек проекта
This commit is contained in:
1 parent
a5b35437da
commit
5723cedcac
2 files changed
+10
-7
No files matched your search
@@ -22,7 +22,11 @@ const mock = [
|
|||||||
link: "/projects",
|
link: "/projects",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
image: project,
|
image: comBattle,
|
||||||
|
link: "/projects",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: comBattle,
|
||||||
link: "/projects",
|
link: "/projects",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -4,18 +4,17 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
row-gap: 32px;
|
gap: 32px;
|
||||||
|
|
||||||
.card:first-of-type {
|
.card:nth-child(-n + 2) {
|
||||||
width: 100%;
|
flex: 1.5 1 40%;
|
||||||
aspect-ratio: 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: calc(100%/3 - 16px);
|
flex: 1 0.5 30%;
|
||||||
aspect-ratio: 3/2;
|
height: 250px;
|
||||||
|
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
|||||||
Reference in new issue
Block a user