Skip to content

Commit 4795a84

Browse files
committed
Improve web content spacing
1 parent b8a6a9b commit 4795a84

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

websiteBuilder/src/main/kotlin/com/linuxcommandlibrary/desktop/HtmlMarkdownRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ object HtmlMarkdownRenderer {
2828
text.elements.forEach { element ->
2929
append(renderTextElement(element))
3030
}
31-
append("</span><br>")
31+
append("</span>")
3232
}
3333

3434
private fun renderBlockquote(blockquote: TipSectionElement.Blockquote): String = buildString {

websiteBuilder/src/main/kotlin/com/linuxcommandlibrary/desktop/WebsiteBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class WebsiteBuilder(
119119
private val pastSponsors: List<Pair<String, String>> = emptyList(),
120120
) {
121121

122-
private val cacheVersion = 13
122+
private val cacheVersion = 14
123123

124124
/**
125125
* Get sorted list of command names from markdown files.

websiteBuilder/src/main/resources/stylesheets/main.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,19 @@ pre {
469469
font-size: 20px;
470470
}
471471

472+
.code-group > .code-wrapper + span,
473+
.panel > div > .code-wrapper + span,
474+
.panel > p > .code-wrapper + span {
475+
margin-top: 16px;
476+
}
477+
478+
.code-group > span,
479+
.panel > div > span,
480+
.panel > p > span {
481+
display: block;
482+
padding-bottom: 8px;
483+
}
484+
472485
.copy-button img {
473486
margin-left: 4px;
474487
margin-top: 2px;
@@ -516,6 +529,10 @@ table {
516529
border-spacing: 4px 1px;
517530
}
518531

532+
table th {
533+
text-align: left;
534+
}
535+
519536
@media screen and (max-width: 410px) {
520537
#logo-icon-wrapper {
521538
display: none !important;

0 commit comments

Comments
 (0)