Skip to content

Commit

Permalink
why were headers blocked at 36rem
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Charlton committed Dec 8, 2024
1 parent 879631b commit ab99bd6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions _sass/_text.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Readable styles for body text
.text {

// Links in .text are always underlined
@if $link-underlines == false {
a[href] {
text-decoration: underline;
}
}

// Lists in .text are always styled
@if $reset-list-styles == true {
ul, ol, dd {
Expand All @@ -31,21 +31,21 @@
font-weight: bolder;
}
}

// Add margins to media and embed elements
> {
#{$media-elements, $embed-elements}, .embed-container {
display: block;
@include spacing(2);
}
}

// Constrain widths of text elements
#{$text-block-elements} { max-width: $text-max-width }
h1 { max-width: $text-max-width / strip-unit($h1-font-size) }
h2 { max-width: $text-max-width / strip-unit($h2-font-size) }
h3 { max-width: $text-max-width / strip-unit($h3-font-size) }
h4 { max-width: $text-max-width / strip-unit($h4-font-size) }
h5 { max-width: $text-max-width / strip-unit($h5-font-size) }
h6 { max-width: $text-max-width / strip-unit($h6-font-size) }
// #{$text-block-elements} { max-width: $text-max-width }
// h1 { max-width: $text-max-width / strip-unit($h1-font-size) }
// h2 { max-width: $text-max-width / strip-unit($h2-font-size) }
// h3 { max-width: $text-max-width / strip-unit($h3-font-size) }
// h4 { max-width: $text-max-width / strip-unit($h4-font-size) }
// h5 { max-width: $text-max-width / strip-unit($h5-font-size) }
// h6 { max-width: $text-max-width / strip-unit($h6-font-size) }
}

0 comments on commit ab99bd6

Please sign in to comment.