jekyll-theme-nixer 1.1.6 → 1.1.7

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: cd002ca7d366a6163279c177c167cb9868d6f73c8dae298b08167d378dc577ba
4
- data.tar.gz: 915c327c5cec18d850c2dcfa920f17152fc8491f1a66279701d66fc4b8972cef
3
+ metadata.gz: 06c5c75795e61fc441e4037841004280d148ae7a9bfc234cb153da7ac76c6905
4
+ data.tar.gz: 6e60bd2299e81f083a6a7b71ace6ac921bcb37895e8956f7db358dbd590ee4b7
5
5
  SHA512:
6
- metadata.gz: f3758bd41dd981fee7262366720b198496e8b5a73cbb23d141d22a9d747765c35c256fea821fddd6e336796287cee79996dff35e302f0fd4f88613e81c1c3e90
7
- data.tar.gz: 28f591d936587daa68b923c55491c90500d93eaf90e6257f8acb5a08e18ab18567e6110807860a776faf24596fe841c952a7bfee035628843da299589fa731b0
6
+ metadata.gz: e57064875711151ebb6da77f68823007a9ff5b2b9bd722a4f40a993d0662d52455d6f8dc05b8becec12e88d5ad24af7f79762c353b4bc2333e51815cfe98ffb7
7
+ data.tar.gz: 7c3e8567f69ef9727f9a5cefd378a90a8868d8ea71705346e37dc61e5ec0f9af4822ad60073a41a42f8102f806c5254d3f7e86eb97aa4360f724290ae6d0c14a
data/_includes/style.html CHANGED
@@ -1,102 +1,102 @@
1
- <style>
2
- :root {
3
- color-scheme: light dark;
4
- --font-size: 1rem;
5
- /* Calculate integer pixel values depending on the font size (default: 1rem = 16px) */
6
- --border-size: calc(var(--font-size) * 1/16);
7
- --font-size-script: calc(var(--font-size) * 11/16);
8
- --font-size-small: calc(var(--font-size) * 14/16);
9
- --font-size-big: calc(var(--font-size) * 32/16);
10
- --font-family: sans-serif;
11
- --spacing: 1em;
12
- --line-height: 1.5;
13
- --line-height-reduced: 1.2;
14
- }
15
- html {
16
- max-width: 720px;
17
- margin: 0 auto;
18
- padding: calc(var(--spacing) * 1 / 2);
19
- font: var(--font-size) / var(--line-height) var(--font-family);
20
- /* font-size-adjust: from-font; */
21
- -moz-text-size-adjust: none;
22
- -webkit-text-size-adjust: none;
23
- text-size-adjust: none;
24
- }
25
- body {
26
- margin: 0;
27
- }
28
- img,
29
- table {
30
- margin: 0 auto;
31
- }
32
- table {
33
- border-collapse: collapse;
34
- }
35
- th,
36
- td {
37
- padding: calc(var(--spacing) * 1 / 4);
38
- border: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
39
- }
40
- img {
41
- display: block;
42
- max-width: 100%;
43
- height: auto;
44
- }
45
- figure {
46
- margin-left: 0;
47
- margin-right: 0;
48
- max-width: 100%;
49
- text-align: center;
50
- font-size: var(--font-size-small);
51
- line-height: 1;
52
- }
53
- blockquote {
54
- margin: var(--spacing) calc(var(--spacing) * 3 / 2) var(--spacing) calc(var(--spacing) * 1 / 2);
55
- padding-left: var(--spacing);
56
- border-left: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
57
- }
58
- pre {
59
- overflow-x: auto;
60
- tab-size: 2;
61
- }
62
- sub,
63
- sup {
64
- font-size: var(--font-size-script);
65
- line-height: 0;
66
- }
67
- hr {
68
- margin: calc(var(--spacing) * 2) 0;
69
- border: 0;
70
- border-top: var(--border-size) solid;
71
- }
72
- h1,
73
- h2,
74
- h3,
75
- h4,
76
- h5,
77
- h6 {
78
- line-height: var(--line-height-reduced);
79
- text-wrap: balance;
80
- }
81
- h1 {
82
- margin-block: 0.67em;
83
- font-size: var(--font-size-big);
84
- text-align: center;
85
- }
86
- body > main > ul {
87
- padding: 0;
88
- }
89
- body > main > ul > li {
90
- margin: calc(var(--spacing) * 1 / 2) 0;
91
- list-style-type: none;
92
- line-height: 1.25;
93
- }
94
- hr:has(+ div[role="doc-endnotes"]) {
95
- margin-bottom: var(--spacing);
96
- }
97
- div[role="doc-endnotes"] {
98
- margin-top: 0;
99
- font-size: var(--font-size-small);
100
- line-height: var(--line-height);
101
- }
102
- </style>
1
+ <style>
2
+ :root {
3
+ color-scheme: light dark;
4
+ --font-size: 1rem;
5
+ /* Calculate integer pixel values depending on the font size (default: 1rem = 16px) */
6
+ --border-size: calc(var(--font-size) * 1/16);
7
+ --font-size-script: calc(var(--font-size) * 11/16);
8
+ --font-size-small: calc(var(--font-size) * 14/16);
9
+ --font-size-big: calc(var(--font-size) * 32/16);
10
+ --font-family: sans-serif;
11
+ --spacing: 1em;
12
+ --line-height: 1.5;
13
+ --line-height-reduced: 1.2;
14
+ }
15
+ html {
16
+ max-width: 720px;
17
+ margin: 0 auto;
18
+ padding: calc(var(--spacing) * 1 / 2);
19
+ font: var(--font-size) / var(--line-height) var(--font-family);
20
+ /* font-size-adjust: from-font; */
21
+ -moz-text-size-adjust: none;
22
+ -webkit-text-size-adjust: none;
23
+ text-size-adjust: none;
24
+ }
25
+ body {
26
+ margin: 0;
27
+ }
28
+ img,
29
+ table {
30
+ margin: 0 auto;
31
+ }
32
+ table {
33
+ border-collapse: collapse;
34
+ }
35
+ th,
36
+ td {
37
+ padding: calc(var(--spacing) * 1 / 4);
38
+ border: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
39
+ }
40
+ img {
41
+ display: block;
42
+ max-width: 100%;
43
+ height: auto;
44
+ }
45
+ figure {
46
+ margin-left: 0;
47
+ margin-right: 0;
48
+ max-width: 100%;
49
+ text-align: center;
50
+ font-size: var(--font-size-small);
51
+ line-height: 1;
52
+ }
53
+ blockquote {
54
+ margin: var(--spacing) calc(var(--spacing) * 3 / 2) var(--spacing) calc(var(--spacing) * 1 / 2);
55
+ padding-left: var(--spacing);
56
+ border-left: var(--border-size) solid color-mix(in srgb, currentcolor 50%, transparent);
57
+ }
58
+ pre {
59
+ overflow-x: auto;
60
+ tab-size: 2;
61
+ }
62
+ sub,
63
+ sup {
64
+ font-size: var(--font-size-script);
65
+ line-height: 0;
66
+ }
67
+ hr {
68
+ margin: calc(var(--spacing) * 2) 0;
69
+ border: 0;
70
+ border-top: var(--border-size) solid;
71
+ }
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ line-height: var(--line-height-reduced);
79
+ text-wrap: balance;
80
+ }
81
+ h1 {
82
+ margin-block: 0.67em;
83
+ font-size: var(--font-size-big);
84
+ text-align: center;
85
+ }
86
+ body > main > ul {
87
+ padding: 0;
88
+ }
89
+ body > main > ul > li {
90
+ margin: calc(var(--spacing) * 1 / 2) 0;
91
+ list-style-type: none;
92
+ line-height: 1.25;
93
+ }
94
+ hr:has(+ div[role="doc-endnotes"]) {
95
+ margin-bottom: var(--spacing);
96
+ }
97
+ div[role="doc-endnotes"] {
98
+ margin-top: 0;
99
+ font-size: var(--font-size-small);
100
+ line-height: var(--line-height);
101
+ }
102
+ </style>
@@ -2,7 +2,7 @@
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
3
  <head>
4
4
  {% include default-head.html %}
5
- <title>{%- if page.title -%}{{ page.title | smartify }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
5
+ <title>{% if page.title %}{{ page.title | smartify }}{% else %}{{ site.title | smartify }}{% endif %}</title>
6
6
  <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | smartify }}{% else %}{{ site.description | smartify }}{% endif %}">
7
7
  <link rel="canonical" href="{{ page.url | absolute_url }}">
8
8
  {% include_cached style.html %}
data/_layouts/error.html CHANGED
@@ -2,7 +2,7 @@
2
2
  <html lang="{{ page.lang | default: site.lang | default: 'en-US' }}" dir="{{ site.theme_settings.lang_direction | default: 'ltr' }}">
3
3
  <head>
4
4
  {% include default-head.html %}
5
- <title>{%- if page.title -%}{{ page.title | smartify }}{%- else -%}{{ site.title | smartify }}{%- endif -%}</title>
5
+ <title>{% if page.title %}{{ page.title | smartify }}{% else %}{{ site.title | smartify }}{% endif %}</title>
6
6
  {% include_cached style.html %}
7
7
  </head>
8
8
  <body>
data/_layouts/post.html CHANGED
@@ -5,5 +5,5 @@ layout: default
5
5
  <header>
6
6
  <h1>{{ page.title | smartify }}</h1>
7
7
  </header>
8
- {{ content }}
8
+ {{ content | smartify }}
9
9
  </article>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Nordmeyer