Skip to content

Commit 47737c6

Browse files
authored
Merge pull request #221 from javaevolved/brunoborges-polish-site-ui
Tighten homepage comparison spacing
2 parents c9e99a8 + 4669fe0 commit 47737c6

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

site/styles.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,14 @@ nav {
439439
margin-bottom: 12px;
440440
}
441441

442+
.comparisons-section {
443+
padding-block: 24px;
444+
}
445+
446+
.comparisons-section .section-header {
447+
margin-bottom: 24px;
448+
}
449+
442450
/* ---------- Tips / Card Grid ---------- */
443451
.tips-grid {
444452
display: grid;
@@ -463,8 +471,8 @@ nav {
463471
flex-direction: column;
464472
align-items: center;
465473
max-width: 540px;
466-
margin: 32px auto 0;
467-
padding: 36px 24px;
474+
margin: 24px auto 0;
475+
padding: 28px 24px;
468476
text-align: center;
469477
color: var(--text);
470478
border: 1px dashed var(--border-light);
@@ -727,7 +735,7 @@ nav {
727735
justify-content: center;
728736
align-items: center;
729737
gap: 10px;
730-
margin: 16px 0;
738+
margin: 0;
731739
}
732740

733741
/* ---------- JDK Dropdown ---------- */
@@ -892,7 +900,7 @@ nav {
892900
display: flex;
893901
justify-content: center;
894902
gap: 32px;
895-
padding: 40px 24px;
903+
padding: 24px 24px 32px;
896904
flex-wrap: wrap;
897905
}
898906

@@ -1981,6 +1989,10 @@ footer a:hover {
19811989
padding: 40px 16px;
19821990
}
19831991

1992+
.comparisons-section {
1993+
padding-block: 24px;
1994+
}
1995+
19841996
.tips-grid {
19851997
grid-template-columns: 1fr;
19861998
}

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ <h1>{{site.tagline_line1}}<br><span class="gradient">{{site.tagline_line2}}</spa
259259
</div>
260260
</section>
261261

262-
<section class="section" id="all-comparisons" style="padding-top:24px">
262+
<section class="section comparisons-section" id="all-comparisons">
263263
<div class="section-header">
264264
<h2 class="section-title">{{site.allComparisons}}</h2>
265265
</div>

0 commit comments

Comments
 (0)