mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-16 06:13:32 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
56c908e995 | ||
|
4151d4614e |
33
CHANGELOG.md
33
CHANGELOG.md
@@ -26,6 +26,39 @@ Docs changes in `main` that are *not* in the latest release:
|
|||||||
|
|
||||||
- N/A
|
- N/A
|
||||||
|
|
||||||
|
## Release v0.5.3
|
||||||
|
|
||||||
|
Hi all, this is a minor patch release that only includes one change: changing all text-based CSS properties to use `rem` instead of hard-coded `px` values. This has two effects:
|
||||||
|
|
||||||
|
1. All deprecation warnings are now fixed on build; you should now get a clean build with `jekyll build`.
|
||||||
|
2. We have **deprecated the `$root-font-size` SCSS variable**. We will remove it in an upcoming release of the theme.
|
||||||
|
|
||||||
|
If you use the stock Just the Docs theme, this release should have no impact on your final built site. If you change the `$root-font-size` SCSS variable, you might experience light layout shifts.
|
||||||
|
|
||||||
|
### Using Release `v0.5.3`
|
||||||
|
|
||||||
|
Users who have not pinned the theme version will be **automatically upgraded to `v0.5.3` the next time they build their site**.
|
||||||
|
|
||||||
|
To use this release explicitly as a remote theme:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
remote_theme: just-the-docs/just-the-docs@v0.5.3
|
||||||
|
```
|
||||||
|
|
||||||
|
To use this version explicitly as a gem-based theme, pin the version in your `Gemfile` and re-run `bundle install` or `bundle update just-the-docs`:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
gem "just-the-docs", "0.5.3"
|
||||||
|
```
|
||||||
|
|
||||||
|
To use and pin a previous version of the theme, replace the `0.5.3` with the desired release tag.
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
- Fixed: font-size scaling for text-related CSS properties by using `rem` instead of fixed `px` values; deprecate `$root-font-size` by [@mattxwang] in [#1169]
|
||||||
|
|
||||||
|
[#1169]: https://github.com/just-the-docs/just-the-docs/pull/1169
|
||||||
|
|
||||||
## Release v0.5.2
|
## Release v0.5.2
|
||||||
|
|
||||||
Hi all, this is a minor patch release that mostly focuses on accessibility. Since we follow semantic versioning, this should be a smooth upgrade with no breaking changes.
|
Hi all, this is a minor patch release that mostly focuses on accessibility. Since we follow semantic versioning, this should be a smooth upgrade with no breaking changes.
|
||||||
|
@@ -104,6 +104,6 @@ blockquote {
|
|||||||
// resets user-agent stylesheets for blockquotes
|
// resets user-agent stylesheets for blockquotes
|
||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
margin-inline-start: 0;
|
margin-inline-start: 0;
|
||||||
padding-left: 15px;
|
padding-left: 1rem;
|
||||||
border-left: 3px solid $border-color;
|
border-left: 3px solid $border-color;
|
||||||
}
|
}
|
||||||
|
@@ -21,7 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.site-title {
|
.site-title {
|
||||||
font-size: $root-font-size !important;
|
font-size: 1rem !important;
|
||||||
font-weight: 700 !important;
|
font-weight: 700 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing-sm + $sp-5};
|
padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing-sm + $sp-5};
|
||||||
font-size: 16px;
|
font-size: 1rem;
|
||||||
color: $body-text-color;
|
color: $body-text-color;
|
||||||
background-color: $search-background-color;
|
background-color: $search-background-color;
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
@include mq(md) {
|
@include mq(md) {
|
||||||
padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing + $sp-5};
|
padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing + $sp-5};
|
||||||
font-size: 14px;
|
font-size: 0.875rem;
|
||||||
background-color: $body-background-color;
|
background-color: $body-background-color;
|
||||||
transition: padding-left linear #{$transition-duration * 0.5};
|
transition: padding-left linear #{$transition-duration * 0.5};
|
||||||
}
|
}
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
@function rem($size, $unit: "") {
|
|
||||||
$rem-size: $size / $root-font-size;
|
|
||||||
|
|
||||||
@if $unit == false {
|
|
||||||
@return #{$rem-size};
|
|
||||||
} @else {
|
|
||||||
@return #{$rem-size}rem;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -3,7 +3,7 @@
|
|||||||
$body-font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI",
|
$body-font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI",
|
||||||
roboto, "Helvetica Neue", arial, sans-serif !default;
|
roboto, "Helvetica Neue", arial, sans-serif !default;
|
||||||
$mono-font-family: "SFMono-Regular", menlo, consolas, monospace !default;
|
$mono-font-family: "SFMono-Regular", menlo, consolas, monospace !default;
|
||||||
$root-font-size: 16px !default; // Base font-size for rems
|
$root-font-size: 16px !default; // DEPRECATED: previously base font-size for rems
|
||||||
$body-line-height: 1.4 !default;
|
$body-line-height: 1.4 !default;
|
||||||
$content-line-height: 1.6 !default;
|
$content-line-height: 1.6 !default;
|
||||||
$body-heading-line-height: 1.25 !default;
|
$body-heading-line-height: 1.25 !default;
|
||||||
@@ -11,18 +11,18 @@ $body-heading-line-height: 1.25 !default;
|
|||||||
// Font size
|
// Font size
|
||||||
// `-sm` suffix is the size at the small (and above) media query
|
// `-sm` suffix is the size at the small (and above) media query
|
||||||
|
|
||||||
$font-size-1: 9px !default;
|
$font-size-1: 0.5625rem !default;
|
||||||
$font-size-1-sm: 10px !default;
|
$font-size-1-sm: 0.625rem !default;
|
||||||
$font-size-2: 11px !default; // h4 - uppercased!, h6 not uppercased, text-small
|
$font-size-2: 0.6875rem !default; // h4 - uppercased!, h6 not uppercased, text-small
|
||||||
$font-size-3: 12px !default; // h5
|
$font-size-3: 0.75rem !default; // h5
|
||||||
$font-size-4: 14px !default;
|
$font-size-4: 0.875rem !default;
|
||||||
$font-size-5: 16px !default; // h3
|
$font-size-5: 1rem !default; // h3
|
||||||
$font-size-6: 18px !default; // h2
|
$font-size-6: 1.125rem !default; // h2
|
||||||
$font-size-7: 24px !default;
|
$font-size-7: 1.5rem !default;
|
||||||
$font-size-8: 32px !default; // h1
|
$font-size-8: 2rem !default; // h1
|
||||||
$font-size-9: 36px !default;
|
$font-size-9: 2.25rem !default;
|
||||||
$font-size-10: 42px !default;
|
$font-size-10: 2.625rem !default;
|
||||||
$font-size-10-sm: 48px !default;
|
$font-size-10-sm: 3rem !default;
|
||||||
|
|
||||||
// Colors
|
// Colors
|
||||||
|
|
||||||
@@ -95,22 +95,22 @@ $border-color: $grey-lt-100 !default;
|
|||||||
|
|
||||||
$gutter-spacing: $sp-6 !default;
|
$gutter-spacing: $sp-6 !default;
|
||||||
$gutter-spacing-sm: $sp-4 !default;
|
$gutter-spacing-sm: $sp-4 !default;
|
||||||
$nav-width: 264px !default;
|
$nav-width: 16.5rem !default;
|
||||||
$nav-width-md: 248px !default;
|
$nav-width-md: 15.5rem !default;
|
||||||
$nav-list-item-height: $sp-6 !default;
|
$nav-list-item-height: $sp-6 !default;
|
||||||
$nav-list-item-height-sm: $sp-8 !default;
|
$nav-list-item-height-sm: $sp-8 !default;
|
||||||
$nav-list-expander-right: true;
|
$nav-list-expander-right: true;
|
||||||
$content-width: 800px !default;
|
$content-width: 50rem !default;
|
||||||
$header-height: 60px !default;
|
$header-height: 3.75rem !default;
|
||||||
$search-results-width: $content-width - $nav-width !default;
|
$search-results-width: $content-width - $nav-width !default;
|
||||||
$transition-duration: 400ms;
|
$transition-duration: 400ms;
|
||||||
|
|
||||||
// Media queries in pixels
|
// Media queries in pixels
|
||||||
|
|
||||||
$media-queries: (
|
$media-queries: (
|
||||||
xs: 320px,
|
xs: 20rem,
|
||||||
sm: 500px,
|
sm: 31.25rem,
|
||||||
md: $content-width,
|
md: $content-width,
|
||||||
lg: $content-width + $nav-width,
|
lg: $content-width + $nav-width,
|
||||||
xl: 1400px,
|
xl: 87.5rem,
|
||||||
) !default;
|
) !default;
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
// If the key exists in the map
|
// If the key exists in the map
|
||||||
@if $value {
|
@if $value {
|
||||||
// Prints a media query based on the value
|
// Prints a media query based on the value
|
||||||
@media (min-width: rem($value)) {
|
@media (min-width: $value) {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
@import "./variables";
|
@import "./variables";
|
||||||
@import "./functions";
|
|
||||||
@import "./mixins/mixins";
|
@import "./mixins/mixins";
|
||||||
|
@@ -21,7 +21,7 @@ th,
|
|||||||
td {
|
td {
|
||||||
@include fs-3;
|
@include fs-3;
|
||||||
|
|
||||||
min-width: 120px;
|
min-width: 7.5rem;
|
||||||
padding: $sp-2 $sp-3;
|
padding: $sp-2 $sp-3;
|
||||||
background-color: $table-background-color;
|
background-color: $table-background-color;
|
||||||
border-bottom: $border rgba($border-color, 0.5);
|
border-bottom: $border rgba($border-color, 0.5);
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Gem::Specification.new do |spec|
|
Gem::Specification.new do |spec|
|
||||||
spec.name = "just-the-docs"
|
spec.name = "just-the-docs"
|
||||||
spec.version = "0.5.2"
|
spec.version = "0.5.3"
|
||||||
spec.authors = ["Patrick Marsceill", "Matthew Wang"]
|
spec.authors = ["Patrick Marsceill", "Matthew Wang"]
|
||||||
spec.email = ["patrick.marsceill@gmail.com", "matt@matthewwang.me"]
|
spec.email = ["patrick.marsceill@gmail.com", "matt@matthewwang.me"]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user