just-the-docs 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2e014cf4175106ebeb09ccea07485a29c68bcabf1e872597de8186124eaa8ad
4
- data.tar.gz: f9db1c8af8f096bdaf01bee9506630d604ee0dd1e608eba46175fe9e1e81ed5f
3
+ metadata.gz: 986143230e171f827a5a5b1305f3e3f90483b528098811ea2abe8732dcf0ea55
4
+ data.tar.gz: f47ff09e5cbf500df3b411b496dd478a1e0f89d62daf01cab1ca7bb33a48940a
5
5
  SHA512:
6
- metadata.gz: 1056fccd52850acd49e67725274cb7d758f1a3f06665d12bb72f1a1575d538004c4128cb703450236c719a03432152d70cce0d4286f577b96843589d358f3586
7
- data.tar.gz: 2964ceba1a9e51f7336672ac2a831be201fce6133f171b4accd0229cb57aebcfdde7199f8d8679184ca7ed54611b479783046ee99362f82a326e0e6b85609fb3
6
+ metadata.gz: 38aa0de5e1e0d5c32c5769fdc4fc8cba569799c179688c755c4d33b84707a66e7546983d9e915677a74a2c57307e13c2436f62f9f4d21e4463bcee807bfeea5d
7
+ data.tar.gz: 31125488864c34d27ef32875b478f642cfdb9fac73131788b1933ac47a952ea3e842990dcc55c5c282eefa5b3b4261c848c727d10be80a75e6c403f0f98a7be8
data/CHANGELOG.md CHANGED
@@ -26,6 +26,51 @@ Docs changes in `main` that are *not* in the latest release:
26
26
 
27
27
  - N/A
28
28
 
29
+ ## Release v0.5.4
30
+
31
+ Hi all, this is a small patch release that only includes one change: fixing a style clash between Mermaid's labels and Just the Docs' labels.
32
+
33
+ *Note: for subsequent patch releases, we will omit migration instructions (for brevity). In all cases, immediate migration should be backwards-compatible. Refer to previous major or minor update instructions for more information.*
34
+
35
+ ### Bugfixes
36
+
37
+ - Fixed: Mermaid labels inheriting theme `.label` styling by [@mattxwang] in [#1278]
38
+
39
+ [#1278]: https://github.com/just-the-docs/just-the-docs/pull/1278
40
+
41
+ ## Release v0.5.3
42
+
43
+ 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:
44
+
45
+ 1. All deprecation warnings are now fixed on build; you should now get a clean build with `jekyll build`.
46
+ 2. We have **deprecated the `$root-font-size` SCSS variable**. We will remove it in an upcoming release of the theme.
47
+
48
+ 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.
49
+
50
+ ### Using Release `v0.5.3`
51
+
52
+ Users who have not pinned the theme version will be **automatically upgraded to `v0.5.3` the next time they build their site**.
53
+
54
+ To use this release explicitly as a remote theme:
55
+
56
+ ```yml
57
+ remote_theme: just-the-docs/just-the-docs@v0.5.3
58
+ ```
59
+
60
+ 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`:
61
+
62
+ ```ruby
63
+ gem "just-the-docs", "0.5.3"
64
+ ```
65
+
66
+ To use and pin a previous version of the theme, replace the `0.5.3` with the desired release tag.
67
+
68
+ ### Bugfixes
69
+
70
+ - 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]
71
+
72
+ [#1169]: https://github.com/just-the-docs/just-the-docs/pull/1169
73
+
29
74
  ## Release v0.5.2
30
75
 
31
76
  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/labels.scss CHANGED
@@ -1,7 +1,11 @@
1
1
  // Labels (not the form kind)
2
2
 
3
- .label,
4
- .label-blue {
3
+ // this :not() prevents a style clash with Mermaid.js's
4
+ // diagram labels, which also use .label
5
+ // for more, see https://github.com/just-the-docs/just-the-docs/issues/1272
6
+ // and the accompanying PR
7
+ .label:not(g),
8
+ .label-blue:not(g) {
5
9
  display: inline-block;
6
10
  padding: 0.16em 0.56em;
7
11
  margin-right: $sp-2;
@@ -15,19 +19,19 @@
15
19
  border-radius: 12px;
16
20
  }
17
21
 
18
- .label-green {
22
+ .label-green:not(g) {
19
23
  background-color: $green-200;
20
24
  }
21
25
 
22
- .label-purple {
26
+ .label-purple:not(g) {
23
27
  background-color: $purple-100;
24
28
  }
25
29
 
26
- .label-red {
30
+ .label-red:not(g) {
27
31
  background-color: $red-200;
28
32
  }
29
33
 
30
- .label-yellow {
34
+ .label-yellow:not(g) {
31
35
  color: $grey-dk-200;
32
36
  background-color: $yellow-200;
33
37
  }
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.4
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-07-05 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
- }