Skip to content

Commit 7024d5f

Browse files
committed
Reduce spacing between first library and heading
In the front page, using the same spacing for each block makes the first one have too much. Use an if statement in the template to adjust in the case of the first one.
1 parent 826cb4c commit 7024d5f

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

css/style.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,48 @@ a.button-link-light {
438438
padding-bottom: var(--space-4xl);
439439
}
440440

441+
.padding-bottom-l {
442+
padding-bottom: var(--space-l);
443+
}
444+
445+
.padding-bottom-xl {
446+
padding-bottom: var(--space-xl);
447+
}
448+
449+
450+
.padding-bottom-2xl {
451+
padding-bottom: var(--space-2xl);
452+
}
453+
454+
.padding-bottom-3xl {
455+
padding-bottom: var(--space-3xl);
456+
}
457+
458+
.padding-bottom-4xl {
459+
padding-bottom: var(--space-4xl);
460+
}
461+
462+
.padding-top-l {
463+
padding-top: var(--space-l);
464+
}
465+
466+
.padding-top-xl {
467+
padding-top: var(--space-xl);
468+
}
469+
470+
471+
.padding-top-2xl {
472+
padding-top: var(--space-2xl);
473+
}
474+
441475
.padding-top-3xl {
442476
padding-top: var(--space-3xl);
443477
}
444478

479+
.padding-top-4xl {
480+
padding-top: var(--space-4xl);
481+
}
482+
445483
.margin-top-l {
446484
margin-top: var(--space-l);
447485
}

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ can get outdated over time.
7676
</div>
7777

7878
{%- for lib in page.libraries %}
79-
<div id="{{ lib. id }}" class="padding-vertical-3xl {{ loop.cycle('', 'background-semilight box-shadow') }}">
79+
<div id="{{ lib. id }}" class="{% if loop.first %}padding-top-xl padding-bottom-3xl{% else %}padding-vertical-3xl{% endif %} {{ loop.cycle('', 'background-semilight box-shadow') }}">
8080
<div class="{{ loop.cycle('row', 'row-reverse') }} content-wide">
8181
<div class="col-large flow">
8282
<h3>{{ lib.title }}</h3>

0 commit comments

Comments
 (0)