Skip to content

Commit a7e2739

Browse files
Merge pull request #4664 from gruntwork-io/web-835
Fixes for docs markdown
2 parents 44fdc9e + 566c50d commit a7e2739

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs-starlight/src/styles/global.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
/* Docs Dark mode colors. */
5656
:root {
5757
--sl-nav-height: 96px;
58+
--sl-color-asides-border: hsl(41, 90%, 60%);
5859
--sl-color-bg-nav: #0F1731;
5960
--sl-color-bg-sidebar: #0F1731;
6061
--sl-color-hairline-shade: #2E375A;
@@ -91,6 +92,7 @@
9192
/* Docs Light mode colors. */
9293
:root[data-theme='light'] {
9394
--sl-nav-height: 96px;
95+
--sl-color-asides-border: hsl(41, 90%, 60%);
9496
--sl-color-bg-nav: #0F1731;
9597
--sl-color-bg-sidebar: #ffffff;
9698
--sl-color-bg: #ffffff;
@@ -213,7 +215,6 @@ ol li {
213215

214216
h1, h2, h3, h4, h5, h6 {
215217
font-weight: 400;
216-
margin: 0;
217218
}
218219

219220
header {
@@ -519,3 +520,22 @@ starlight-toc li a:hover {
519520
.right-sidebar {
520521
border-inline-start: 1px dashed var(--sl-color-docs-stroke);
521522
}
523+
524+
.sl-markdown-content h2:not(:first-child) {
525+
margin-top: 1.5em;
526+
}
527+
528+
.sl-markdown-content .expressive-code {
529+
margin: 1.5em 0;
530+
}
531+
532+
.sl-markdown-content aside {
533+
border-left: 5px solid var(--sl-color-asides-border);
534+
margin: 1.5em 0;
535+
}
536+
537+
article.card {
538+
background-color: transparent;
539+
border: 1px solid var(--sl-color-gray-5);
540+
margin: 1.5em 0;
541+
}

0 commit comments

Comments
 (0)