Skip to content

Commit 14db103

Browse files
committed
Improve guide style
Aligns it more with the standalone asciidoc style, which has much nicer margins/padding and a single pixel top border for main sections Signed-off-by: Robert Young <[email protected]>
1 parent 84a381a commit 14db103

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

_layouts/guide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This documentation covers a non-current version of Kroxylicious. The latest version is {{ site.data.kroxylicious.latestRelease }}.
99
</div>
1010
{%- endif -%}
11-
<div class="row justify-content-center gx-0">
11+
<div class="row justify-content-center gx-0 kroxylicious-guide">
1212
<div class="col-lg-3">
1313
<div class="card shadow my-lg-5 ms-lg-5 me-1">
1414
<div class="card-body mx-2" role="navigation" aria-label="{{ page.title }} page navigation">

_sass/kroxylicious.scss

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ a {
161161
// ensure padding for code blocks
162162
.highlight {
163163
text-wrap: wrap;
164-
padding: 0.5em;
164+
padding: 1rem;
165165
border-radius: 4px;
166166
margin-bottom: 0;
167167
}
@@ -307,10 +307,30 @@ b.conum * {
307307
pointer-events: none; /* Clicks will "pass through" the watermark */
308308
}
309309

310-
.imageblock img {
310+
311+
/* Kroxylicious Guide CSS Specializations */
312+
313+
.kroxylicious-guide .imageblock img {
311314
max-width: 100%;
312315
}
313316

314-
.listingblock {
317+
.kroxylicious-guide .listingblock {
318+
margin-bottom: 0.75rem;
319+
}
320+
321+
.kroxylicious-guide h2,h3,h4 {
322+
margin-top: 1rem;
315323
margin-bottom: 0.75rem;
316324
}
325+
326+
.kroxylicious-guide p, summary {
327+
margin-bottom: 0.625rem;
328+
}
329+
330+
.kroxylicious-guide .sect1 {
331+
padding-bottom: 1.25rem;
332+
}
333+
334+
.kroxylicious-guide .sect1+.sect1 {
335+
border-top: 1px solid $kroxy-light;
336+
}

0 commit comments

Comments
 (0)