Skip to content

Commit 2627f43

Browse files
committed
Card: Add variable for spacing
1 parent 8037402 commit 2627f43

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

assets/css/v2/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ textarea:not([rows]) {
210210
--table-inner-padding: 6px 10px;
211211
--table-color-divider: 0.7 0 0;
212212

213+
/* Cards */
214+
--card-spacing: 1.5rem;
215+
213216
/* Details */
214217
--details-margin: 0.5rem 0rem;
215218

@@ -1542,8 +1545,8 @@ a:hover {
15421545
.card-section {
15431546
display: flex;
15441547
flex-direction: column;
1545-
gap: 1.5rem;
1546-
margin-block-end: 1.5rem;
1548+
gap: var(--card-spacing);
1549+
margin-block-end: var(--card-spacing);
15471550

15481551
&.featured-section {
15491552
/* Hide all the cards past 3 if it is a featured card section */
@@ -1566,7 +1569,7 @@ a:hover {
15661569
&.card-grid {
15671570
display: grid;
15681571
grid-template-columns: repeat(var(--grid-columns), 1fr);
1569-
gap: 1.5rem;
1572+
gap: var(--card-spacing);
15701573

15711574
@media (max-width: 55rem) {
15721575
grid-template-columns: 1fr;

0 commit comments

Comments
 (0)