@layer content {
.prose {
- --#{$prefix}content-font-size: 16px;
- --#{$prefix}content-gap: 24px;
+ --#{$prefix}content-font-size: var(--#{$prefix}font-size-sm);
+ --#{$prefix}content-gap: 20px;
--#{$prefix}heading-color: light-dark(var(--bs-gray-900), var(--bs-white));
position: relative;
+ display: flex;
+ flex-direction: column;
+ gap: var(--#{$prefix}content-gap);
max-width: 1000px;
margin-inline: auto;
font-size: var(--#{$prefix}content-font-size);
- line-height: var(--#{$prefix}content-gap);
+ line-height: 1.5;
+
+ @media (width >= 1024px) {
+ --#{$prefix}content-font-size: var(--#{$prefix}font-size-md);
+ --#{$prefix}content-gap: 24px;
+ }
p,
ul,
pre,
table,
blockquote {
- margin-bottom: var(--#{$prefix}content-gap);
+ margin-block: 0;
}
li:not(:last-child) {
h4,
h5,
h6 {
- --bs-heading-color: var(--bs-emphasis-color);
-
margin-top: 0;
- margin-bottom: calc(var(--#{$prefix}content-gap) / 2);
+ margin-bottom: calc(var(--#{$prefix}content-gap) / -2);
font-weight: 500;
line-height: 1.25;
+
+ code {
+ font-weight: 600;
+ color: inherit;
+ }
}
h1,
border-collapse: collapse;
}
- td,
- th {
- padding: 6px 12px;
- text-align: inherit;
- border: 1px solid var(--#{$prefix}border-color);
+ :where(table:not([class])) {
+ td,
+ th {
+ padding: 6px 12px;
+ text-align: inherit;
+ border: 1px solid var(--#{$prefix}border-color);
+ }
}
-
dt {
font-weight: 500;
}
{
frontmatter.reference && (
- <div class="mb-5">
- <ReferenceTable reference={frontmatter.reference} />
- </div>
+ <ReferenceTable reference={frontmatter.reference} />
)
}
{
frontmatter.utility && (
- <div class="mb-5">
- <UtilityReferenceTable utility={frontmatter.utility} />
- </div>
+ <UtilityReferenceTable utility={frontmatter.utility} />
)
}
{
frontmatter.classes && (
- <div class="mb-5">
- <HelperReferenceTable classes={frontmatter.classes} />
- </div>
+ <HelperReferenceTable classes={frontmatter.classes} />
)
}
--bd-example-padding: 1.25rem;
--bd-example-inner-radius: calc(var(--bs-border-radius) - 1px);
- margin: 0 ($bd-gutter-x * -.5) 1rem;
+ margin: 0 ($bd-gutter-x * -.5);
font-size: var(--#{$prefix}font-size-sm);
background-color: var(--bd-pre-bg);
border: solid var(--bs-border-color);
font-size: var(--#{$prefix}font-size-md);
}
- > p {
- margin-bottom: 1.25rem;
- }
-
- > h2,
- > h3,
- > h4 {
- --bs-heading-color: var(--bs-fg);
- }
-
- // Offset content from fixed navbar when jumping to headings
- > h2:not(:first-child) {
- margin-top: 3rem;
- }
-
- > h3 {
- margin-top: 2rem;
-
- code {
- font-weight: 600;
- color: inherit;
- }
- }
-
> ul li,
> ol li {
margin-bottom: .25rem;