Skip to content

Commit

Permalink
Use $doc-font-size in _reset.scss, fix #4983
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 19, 2024
1 parent 075fad7 commit 6be43f7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)

### Documentation & Maintenance

Expand Down
8 changes: 4 additions & 4 deletions _sass/minimal-mistakes/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ html {
/* apply a natural box layout model to all elements */
box-sizing: border-box;
background-color: $background-color;
font-size: 16px;
font-size: $doc-font-size;

@include breakpoint($medium) {
font-size: 18px;
font-size: $doc-font-size-medium;
}

@include breakpoint($large) {
font-size: 20px;
font-size: $doc-font-size-large;
}

@include breakpoint($x-large) {
font-size: 22px;
font-size: $doc-font-size-x-large;
}

-webkit-text-size-adjust: 100%;
Expand Down
5 changes: 4 additions & 1 deletion _sass/minimal-mistakes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
Typography
========================================================================== */

$doc-font-size: 16 !default;
$doc-font-size: 16px !default;
$doc-font-size-medium: $doc-font-size * 1.125 !default;
$doc-font-size-large: $doc-font-size * 1.25 !default;
$doc-font-size-x-large: $doc-font-size * 1.375 !default;

/* paragraph indention */
$paragraph-indent: false !default; // true, false (default)
Expand Down
3 changes: 2 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: "/docs/history/"
excerpt: Change log of enhancements and bug fixes made to the theme.
sidebar:
nav: docs
last_modified_at: '2024-09-17T16:37:54+08:00'
last_modified_at: '2024-09-20T02:38:49+08:00'
toc: false
---

Expand All @@ -31,6 +31,7 @@ toc: false

- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)
- Fix reset stylesheet overruling `$doc-font-size`. [#4983](https://github.com/mmistakes/minimal-mistakes/issues/4983)

### Documentation & Maintenance

Expand Down

0 comments on commit 6be43f7

Please sign in to comment.