just-the-docs 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2e014cf4175106ebeb09ccea07485a29c68bcabf1e872597de8186124eaa8ad
4
- data.tar.gz: f9db1c8af8f096bdaf01bee9506630d604ee0dd1e608eba46175fe9e1e81ed5f
3
+ metadata.gz: 3c914f96a39d67612eb720be6798e3d98f66e6c30eb9897844857bb3eaa0c9de
4
+ data.tar.gz: e0e87b2c3bfea07a57a850fa1dcac7aeed496fbb9254618312f18ecd37152cfe
5
5
  SHA512:
6
- metadata.gz: 1056fccd52850acd49e67725274cb7d758f1a3f06665d12bb72f1a1575d538004c4128cb703450236c719a03432152d70cce0d4286f577b96843589d358f3586
7
- data.tar.gz: 2964ceba1a9e51f7336672ac2a831be201fce6133f171b4accd0229cb57aebcfdde7199f8d8679184ca7ed54611b479783046ee99362f82a326e0e6b85609fb3
6
+ metadata.gz: 84f2f452bcbd0094849a076b9db382fac613ea4ca2584b1f754c8cfdcf449ea84aeb7264ed7b1f98ff3127500a5c038d93444294779a5119aa51cb160130e6b7
7
+ data.tar.gz: 932fdf1cd13b62dd30ebbd507bfcb4661b81d549efed16e5ef0f61a1b3b0222668a97d5c1ac3057512f764ee8836d28e48f1962026f4de97f9b33bb153de95a6
data/CHANGELOG.md CHANGED
@@ -26,6 +26,39 @@ Docs changes in `main` that are *not* in the latest release:
26
26
 
27
27
  - N/A
28
28
 
29
+ ## Release v0.5.3
30
+
31
+ 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:
32
+
33
+ 1. All deprecation warnings are now fixed on build; you should now get a clean build with `jekyll build`.
34
+ 2. We have **deprecated the `$root-font-size` SCSS variable**. We will remove it in an upcoming release of the theme.
35
+
36
+ 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.
37
+
38
+ ### Using Release `v0.5.3`
39
+
40
+ Users who have not pinned the theme version will be **automatically upgraded to `v0.5.3` the next time they build their site**.
41
+
42
+ To use this release explicitly as a remote theme:
43
+
44
+ ```yml
45
+ remote_theme: just-the-docs/just-the-docs@v0.5.3
46
+ ```
47
+
48
+ 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`:
49
+
50
+ ```ruby
51
+ gem "just-the-docs", "0.5.3"
52
+ ```
53
+
54
+ To use and pin a previous version of the theme, replace the `0.5.3` with the desired release tag.
55
+
56
+ ### Bugfixes
57
+
58
+ - 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]
59
+
60
+ [#1169]: https://github.com/just-the-docs/just-the-docs/pull/1169
61
+
29
62
  ## Release v0.5.2
30
63
 
31
64
  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.
data/_sass/base.scss CHANGED
@@ -104,6 +104,6 @@ blockquote {
104
104
  // resets user-agent stylesheets for blockquotes
105
105
  margin-block-start: 0;
106
106
  margin-inline-start: 0;
107
- padding-left: 15px;
107
+ padding-left: 1rem;
108
108
  border-left: 3px solid $border-color;
109
109
  }
data/_sass/print.scss CHANGED
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  .site-title {
24
- font-size: $root-font-size !important;
24
+ font-size: 1rem !important;
25
25
  font-weight: 700 !important;
26
26
  }
27
27
 
data/_sass/search.scss CHANGED
@@ -42,7 +42,7 @@
42
42
  width: 100%;
43
43
  height: 100%;
44
44
  padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing-sm + $sp-5};
45
- font-size: 16px;
45
+ font-size: 1rem;
46
46
  color: $body-text-color;
47
47
  background-color: $search-background-color;
48
48
  border-top: 0;
@@ -53,7 +53,7 @@
53
53
 
54
54
  @include mq(md) {
55
55
  padding: $sp-2 $gutter-spacing-sm $sp-2 #{$gutter-spacing + $sp-5};
56
- font-size: 14px;
56
+ font-size: 0.875rem;
57
57
  background-color: $body-background-color;
58
58
  transition: padding-left linear #{$transition-duration * 0.5};
59
59
  }
@@ -3,7 +3,7 @@
3
3
  $body-font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI",
4
4
  roboto, "Helvetica Neue", arial, sans-serif !default;
5
5
  $mono-font-family: "SFMono-Regular", menlo, consolas, monospace !default;
6
- $root-font-size: 16px !default; // Base font-size for rems
6
+ $root-font-size: 16px !default; // DEPRECATED: previously base font-size for rems
7
7
  $body-line-height: 1.4 !default;
8
8
  $content-line-height: 1.6 !default;
9
9
  $body-heading-line-height: 1.25 !default;
@@ -11,18 +11,18 @@ $body-heading-line-height: 1.25 !default;
11
11
  // Font size
12
12
  // `-sm` suffix is the size at the small (and above) media query
13
13
 
14
- $font-size-1: 9px !default;
15
- $font-size-1-sm: 10px !default;
16
- $font-size-2: 11px !default; // h4 - uppercased!, h6 not uppercased, text-small
17
- $font-size-3: 12px !default; // h5
18
- $font-size-4: 14px !default;
19
- $font-size-5: 16px !default; // h3
20
- $font-size-6: 18px !default; // h2
21
- $font-size-7: 24px !default;
22
- $font-size-8: 32px !default; // h1
23
- $font-size-9: 36px !default;
24
- $font-size-10: 42px !default;
25
- $font-size-10-sm: 48px !default;
14
+ $font-size-1: 0.5625rem !default;
15
+ $font-size-1-sm: 0.625rem !default;
16
+ $font-size-2: 0.6875rem !default; // h4 - uppercased!, h6 not uppercased, text-small
17
+ $font-size-3: 0.75rem !default; // h5
18
+ $font-size-4: 0.875rem !default;
19
+ $font-size-5: 1rem !default; // h3
20
+ $font-size-6: 1.125rem !default; // h2
21
+ $font-size-7: 1.5rem !default;
22
+ $font-size-8: 2rem !default; // h1
23
+ $font-size-9: 2.25rem !default;
24
+ $font-size-10: 2.625rem !default;
25
+ $font-size-10-sm: 3rem !default;
26
26
 
27
27
  // Colors
28
28
 
@@ -95,22 +95,22 @@ $border-color: $grey-lt-100 !default;
95
95
 
96
96
  $gutter-spacing: $sp-6 !default;
97
97
  $gutter-spacing-sm: $sp-4 !default;
98
- $nav-width: 264px !default;
99
- $nav-width-md: 248px !default;
98
+ $nav-width: 16.5rem !default;
99
+ $nav-width-md: 15.5rem !default;
100
100
  $nav-list-item-height: $sp-6 !default;
101
101
  $nav-list-item-height-sm: $sp-8 !default;
102
102
  $nav-list-expander-right: true;
103
- $content-width: 800px !default;
104
- $header-height: 60px !default;
103
+ $content-width: 50rem !default;
104
+ $header-height: 3.75rem !default;
105
105
  $search-results-width: $content-width - $nav-width !default;
106
106
  $transition-duration: 400ms;
107
107
 
108
108
  // Media queries in pixels
109
109
 
110
110
  $media-queries: (
111
- xs: 320px,
112
- sm: 500px,
111
+ xs: 20rem,
112
+ sm: 31.25rem,
113
113
  md: $content-width,
114
114
  lg: $content-width + $nav-width,
115
- xl: 1400px,
115
+ xl: 87.5rem,
116
116
  ) !default;
@@ -12,7 +12,7 @@
12
12
  // If the key exists in the map
13
13
  @if $value {
14
14
  // Prints a media query based on the value
15
- @media (min-width: rem($value)) {
15
+ @media (min-width: $value) {
16
16
  @content;
17
17
  }
18
18
  } @else {
@@ -1,3 +1,2 @@
1
1
  @import "./variables";
2
- @import "./functions";
3
2
  @import "./mixins/mixins";
data/_sass/tables.scss CHANGED
@@ -21,7 +21,7 @@ th,
21
21
  td {
22
22
  @include fs-3;
23
23
 
24
- min-width: 120px;
24
+ min-width: 7.5rem;
25
25
  padding: $sp-2 $sp-3;
26
26
  background-color: $table-background-color;
27
27
  border-bottom: $border rgba($border-color, 0.5);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-07 00:00:00.000000000 Z
12
+ date: 2023-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -140,7 +140,6 @@ files:
140
140
  - _sass/print.scss
141
141
  - _sass/search.scss
142
142
  - _sass/skiptomain.scss
143
- - _sass/support/_functions.scss
144
143
  - _sass/support/_variables.scss
145
144
  - _sass/support/mixins/_buttons.scss
146
145
  - _sass/support/mixins/_layout.scss
@@ -1,9 +0,0 @@
1
- @function rem($size, $unit: "") {
2
- $rem-size: $size / $root-font-size;
3
-
4
- @if $unit == false {
5
- @return #{$rem-size};
6
- } @else {
7
- @return #{$rem-size}rem;
8
- }
9
- }