pandoc-markdown-jekyll-theme 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/assets/css/theme.css +35 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9da8751ce78b526376d8978bb4e09d32a8d6fe14dfc21cd6882ee627c4df8fce
4
- data.tar.gz: f69d3cd087a6d440f47a5784ff21af07dc68d547a667642fbf7dd6f96f2ff6dc
3
+ metadata.gz: 7f9a3e870639dc23ab69b67e125e9b24d8a4fe7dde27b21337c4b47030fc64cb
4
+ data.tar.gz: 9e6ba85867e05df9717eea117e5addd6bbc5f462e6f83b8aefce5ed35ccb740c
5
5
  SHA512:
6
- metadata.gz: f88bee68f97a05291a8579eeeb6fc988c7ca0f80dfdc5cce8d37c1d46d215cb96b556dd715068756bf81f83ab8466ce43c4586da558fcc3aa987a4c28e25c58b
7
- data.tar.gz: 1464a7b31984602f5447bc2c3094ca6f8d21509b6aebba501210f78600a59b64bc5c577bdc72bd8a9363561a66457be094009be22821aaf7cd5d6f0a29c1e597
6
+ metadata.gz: 4ff83595ba26f829584276a1490885ca4fa3bda794750a9180d0c5e6e91fa53a7244a9904084b4eb4420bf8e213fdfee780084d0f2468b0731b13d2c06eea6f1
7
+ data.tar.gz: 871e09a0b8f758f109fa4f353602ad4194490ffc5207304ad53ec7c09390639825d96664671f9824caf897da2e284b36dc1f5938164342019f96c4d6b68c7932
data/assets/css/theme.css CHANGED
@@ -27,8 +27,8 @@
27
27
 
28
28
  /* --- Text --- */
29
29
 
30
- --font-family-prose: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
31
- --font-family-heading: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
30
+ --font-family-prose: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
31
+ --font-family-heading: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
32
32
  --font-family-code: Menlo, monospace;
33
33
  --side-note-number-font-family: var(--font-family-prose);
34
34
 
@@ -99,7 +99,14 @@
99
99
  /* --- Layout --- */
100
100
 
101
101
  --main-width: 745px;
102
+ /* The name doesn't indicate it, but this variable actually specifies an
103
+ * effective minimum width. (It didn't previously behave this way, but the
104
+ * change to do so was made in a backwards-compatible way, so the variable
105
+ * was not renamed.)
106
+ **/
102
107
  --main-width-narrow: 550px;
108
+ --side-note-max-width: 300px;
109
+
103
110
  }
104
111
 
105
112
  @media (prefers-color-scheme: dark) {
@@ -166,6 +173,23 @@ body {
166
173
  }
167
174
  }
168
175
 
176
+ /* }}} */
177
+ /* ----- Utility classes ----------------------------------------------- {{{ */
178
+ .only-light-mode {
179
+ display: inherit;
180
+ }
181
+ .only-dark-mode {
182
+ display: none;
183
+ }
184
+
185
+ @media (prefers-color-scheme: dark) {
186
+ .only-light-mode: {
187
+ display: none;
188
+ }
189
+ .only-dark-mode {
190
+ display: inherit;
191
+ }
192
+ }
169
193
  /* }}} */
170
194
  /* ----- Side notes and margin notes ----------------------------------- {{{ */
171
195
  /* --- Side note text and numbering --- {{{ */
@@ -893,14 +917,12 @@ nav#TOC > input:checked + ul {
893
917
  clear: right;
894
918
  position: relative;
895
919
 
896
- --side-note-max-width: 300px;
897
-
898
920
  width: var(--computed-width);
899
921
  max-width: var(--side-note-max-width);
900
922
  margin-right: calc(-1 * min(var(--computed-width), var(--side-note-max-width)) - var(--margin-left));
901
923
  }
902
924
 
903
- /* --- Side notes always visible --- {{{ */
925
+ /* --- Side notes and table of contents always visible --- {{{ */
904
926
 
905
927
  /* Unfortunately, variables aren't in scope here.
906
928
  * 745px = --main-width
@@ -958,6 +980,9 @@ nav#TOC > input:checked + ul {
958
980
  }
959
981
  }
960
982
 
983
+ /* }}} */
984
+ /* --- Side notes visibile, table of contents collapsed, double-wide margins --- {{{ */
985
+
961
986
  /* Unfortunately, variables aren't in scope here.
962
987
  * 745px = --main-width
963
988
  * 52px = 2 * --line-height
@@ -1021,6 +1046,9 @@ nav#TOC > input:checked + ul {
1021
1046
  }
1022
1047
  }
1023
1048
 
1049
+ /* }}} */
1050
+ /* --- Side notes visibile, table of contents collapsed --- {{{ */
1051
+
1024
1052
  /* Unfortunately, variables aren't in scope here.
1025
1053
  * 550px = --main-width-narrow
1026
1054
  * 26px = --line-height
@@ -1032,7 +1060,7 @@ nav#TOC > input:checked + ul {
1032
1060
  main,
1033
1061
  footer {
1034
1062
  margin-left: var(--line-height);
1035
- max-width: var(--main-width-narrow);
1063
+ max-width: calc(max(var(--main-width-narrow), 100vw - (3 * var(--line-height)) - var(--side-note-max-width)));
1036
1064
  margin-right: auto;
1037
1065
  }
1038
1066
 
@@ -1067,7 +1095,7 @@ nav#TOC > input:checked + ul {
1067
1095
  }
1068
1096
 
1069
1097
  /* }}} */
1070
- /* --- Side notes collapsed --- {{{ */
1098
+ /* --- Side notes and table of contents collapsed --- {{{ */
1071
1099
 
1072
1100
  /* Unfortunately, variables aren't in scope here.
1073
1101
  * See calculations above.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandoc-markdown-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Zimmerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-16 00:00:00.000000000 Z
11
+ date: 2022-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-pandoc