Update heading font sizes and make them responsive with RFS. Resolves #230 (#241)

Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
Pete Lumbis 2022-12-16 12:43:57 -05:00 committed by GitHub
parent a1f6f69bcb
commit adc2ec4098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 43 deletions

View File

@ -11,11 +11,6 @@ body {
font-size: $body-font-size;
line-height: 1.8em;
h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
code {
background-color: var(--code-background);
color: var(--code-color);
@ -42,26 +37,6 @@ body {
margin-top: -5rem;
}
> h2:not(:first-child) {
margin-top: 2rem;
font-size: 1.5rem;
}
> h3 {
margin-top: 2rem;
}
> ul li,
> ol li {
margin-bottom: .25rem;
// stylelint-disable selector-max-type, selector-max-compound-selectors
> p ~ ul {
margin-top: -.5rem;
margin-bottom: 1rem;
}
// stylelint-enable selector-max-type, selector-max-compound-selectors
}
// Override Bootstrap defaults
> .table,
@ -103,26 +78,11 @@ body {
}
}
.table-options {
td:nth-child(2) {
min-width: 160px;
}
}
.table-options td:last-child,
.table-utilities td:last-child {
min-width: 280px;
}
.bd-title {
@include font-size(2rem);
@include font-size(2.25rem);
font-weight: 600;
}
.bd-lead {
@include font-size(1.5rem);
font-weight: 300;
}
.bi {
width: 1em;
@ -137,3 +97,7 @@ blockquote {
line-height: 1.5rem;
font-size: 1rem
}
h1,h2,h3,h4,h5,h6 {
padding-top: 1rem;
}

View File

@ -566,12 +566,12 @@ $line-height-base: 1.5 !default;
$line-height-sm: 1.25 !default;
$line-height-lg: 2 !default;
$h1-font-size: $font-size-base * 2.5 !default;
$h1-font-size: $font-size-base * 2.25 !default;
$h2-font-size: $font-size-base * 2 !default;
$h3-font-size: $font-size-base * 1.75 !default;
$h4-font-size: $font-size-base * 1.5 !default;
$h5-font-size: $font-size-base * 1.25 !default;
$h6-font-size: $font-size-base !default;
$h6-font-size: $font-size-base * 1.15 !default;
// scss-docs-end font-variables
// scss-docs-start font-sizes

View File

@ -24,6 +24,7 @@
// Happy Bootstrapping!
// Import the entire Bootstrap library and let PurgeCSS optimize in production
@import "bootstrap/bootstrap";
@import "variables";
/* purgecss start ignore */