pandoc-markdown-jekyll-theme 0.11.1 → 0.11.4

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 +24 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 047fc8228e4ff9992b0494b066848a0bdbfbd8da4c1c390d20d802d7b057f90f
4
- data.tar.gz: 7dff3d15c729cb96e6f6d519709e15e4aa428de2690b000dc5bca0821d883a06
3
+ metadata.gz: 6b25348bc53e1cd207f6958cd986e91f6f0b8e5cbd9b849da99b4c0e202ee7a7
4
+ data.tar.gz: f07aaa9dfa5992992689562268cac49803d5dac6be46dc7119eca76a5edae0b9
5
5
  SHA512:
6
- metadata.gz: d25c5367c5423c293aa1e88b0790303b72dbcd5c7ccce38871abe88fdce2f1fb495526df14e909518affa141fa4b027912f6cdb27142bbb08b8ff651b24126e0
7
- data.tar.gz: 3603d1f8030aae85d1a6b394ba2f34b9f94ae15618bcf9b06bc6a51565cd6f85322644866470cdd3dda99416abfa0e77f58cd63ae56bd4d490bdb8888275ee20
6
+ metadata.gz: 54a945fb2a5f6aa0acbca78b2197c16819fb204ffc8c5c8aabe24588b01698cfd5947a9d7c844a18e007f624a6905962f4a941118c8501300780fda6bb7d903a
7
+ data.tar.gz: 51775c67401a51e7831f1aa209d235ef1721bc8fd80fea751875f711e7b4423c6f2c850e1d0566c7708a9b3eb974a0f689c1d06c20089c50769867ca6113a942
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) {
@@ -860,6 +867,12 @@ nav#TOC > input:checked + ul {
860
867
  margin-left: 0;
861
868
  }
862
869
 
870
+ nav#TOC li {
871
+ white-space: nowrap;
872
+ overflow: hidden;
873
+ text-overflow: ellipsis;
874
+ }
875
+
863
876
  nav#TOC code {
864
877
  font-size: var(--nav-toc-code-font-size);
865
878
  }
@@ -887,14 +900,12 @@ nav#TOC > input:checked + ul {
887
900
  clear: right;
888
901
  position: relative;
889
902
 
890
- --side-note-max-width: 300px;
891
-
892
903
  width: var(--computed-width);
893
904
  max-width: var(--side-note-max-width);
894
905
  margin-right: calc(-1 * min(var(--computed-width), var(--side-note-max-width)) - var(--margin-left));
895
906
  }
896
907
 
897
- /* --- Side notes always visible --- {{{ */
908
+ /* --- Side notes and table of contents always visible --- {{{ */
898
909
 
899
910
  /* Unfortunately, variables aren't in scope here.
900
911
  * 745px = --main-width
@@ -952,6 +963,9 @@ nav#TOC > input:checked + ul {
952
963
  }
953
964
  }
954
965
 
966
+ /* }}} */
967
+ /* --- Side notes visibile, table of contents collapsed, double-wide margins --- {{{ */
968
+
955
969
  /* Unfortunately, variables aren't in scope here.
956
970
  * 745px = --main-width
957
971
  * 52px = 2 * --line-height
@@ -1015,6 +1029,9 @@ nav#TOC > input:checked + ul {
1015
1029
  }
1016
1030
  }
1017
1031
 
1032
+ /* }}} */
1033
+ /* --- Side notes visibile, table of contents collapsed --- {{{ */
1034
+
1018
1035
  /* Unfortunately, variables aren't in scope here.
1019
1036
  * 550px = --main-width-narrow
1020
1037
  * 26px = --line-height
@@ -1026,7 +1043,7 @@ nav#TOC > input:checked + ul {
1026
1043
  main,
1027
1044
  footer {
1028
1045
  margin-left: var(--line-height);
1029
- max-width: var(--main-width-narrow);
1046
+ max-width: calc(max(var(--main-width-narrow), 100vw - (3 * var(--line-height)) - var(--side-note-max-width)));
1030
1047
  margin-right: auto;
1031
1048
  }
1032
1049
 
@@ -1061,7 +1078,7 @@ nav#TOC > input:checked + ul {
1061
1078
  }
1062
1079
 
1063
1080
  /* }}} */
1064
- /* --- Side notes collapsed --- {{{ */
1081
+ /* --- Side notes and table of contents collapsed --- {{{ */
1065
1082
 
1066
1083
  /* Unfortunately, variables aren't in scope here.
1067
1084
  * 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.1
4
+ version: 0.11.4
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-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-pandoc