pandoc-markdown-jekyll-theme 0.11.0 → 0.11.3

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 +30 -10
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd6dc39f677ff8bf0ad1d98b739906499c5c93ac1b19b675cca23202bb48ba6c
4
- data.tar.gz: c7bd78bd1e1d4aa7f43a867f8cdf82d26bd56023d144663bc592e111d68f6882
3
+ metadata.gz: 7da9efc36a5b5a49e360c1055297d5e6b17f9115ef1774c3fbf803134a172098
4
+ data.tar.gz: d75814eb8d60dc8cc25102b66e08dbcfc7849ab2fef3bf5a40856ffc7449163b
5
5
  SHA512:
6
- metadata.gz: 06e137c80602e23216c1acd30aeeaa656c064836fa085a6bd48338c5f718e886efe4d76b23ec5b0e7e5322f1dd6b4df74381a3eee7c9ffa1aaf3153accaaa6a4
7
- data.tar.gz: 8a2bb548aea07fd2e8da6da848cf4ddc9e1899367255700d8a1bd69744e37ece57fb58d03714fae03ff1f80fba80e0ecb4a2db5ada9095c169887aa87b2cdb77
6
+ metadata.gz: 5559e0bdd303dd1110d7cef5e16d2bfd29223a38801383ac6032ad5f7e136006e48c32f243352b72f1c7b2103835c30131033deaf5ab7161400a832d4fb4a788
7
+ data.tar.gz: 414570e3386820cd60731008a3e1e78b192f9cdb3644428003fde7c3804badf8b70ecff5c2a0f5ba25c3f9b787c234ca495fc230372f5a9e419ceac4cceb280c
data/assets/css/theme.css CHANGED
@@ -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
@@ -903,7 +914,6 @@ nav#TOC > input:checked + ul {
903
914
  */
904
915
  @media screen and (min-width: calc(745px + 2 * (52px + 206px + 52px))) {
905
916
  header,
906
- nav#TOC,
907
917
  main,
908
918
  footer {
909
919
  max-width: var(--main-width);
@@ -953,6 +963,9 @@ nav#TOC > input:checked + ul {
953
963
  }
954
964
  }
955
965
 
966
+ /* }}} */
967
+ /* --- Side notes visibile, table of contents collapsed, double-wide margins --- {{{ */
968
+
956
969
  /* Unfortunately, variables aren't in scope here.
957
970
  * 745px = --main-width
958
971
  * 52px = 2 * --line-height
@@ -1016,6 +1029,9 @@ nav#TOC > input:checked + ul {
1016
1029
  }
1017
1030
  }
1018
1031
 
1032
+ /* }}} */
1033
+ /* --- Side notes visibile, table of contents collapsed --- {{{ */
1034
+
1019
1035
  /* Unfortunately, variables aren't in scope here.
1020
1036
  * 550px = --main-width-narrow
1021
1037
  * 26px = --line-height
@@ -1027,7 +1043,7 @@ nav#TOC > input:checked + ul {
1027
1043
  main,
1028
1044
  footer {
1029
1045
  margin-left: var(--line-height);
1030
- 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)));
1031
1047
  margin-right: auto;
1032
1048
  }
1033
1049
 
@@ -1062,7 +1078,7 @@ nav#TOC > input:checked + ul {
1062
1078
  }
1063
1079
 
1064
1080
  /* }}} */
1065
- /* --- Side notes collapsed --- {{{ */
1081
+ /* --- Side notes and table of contents collapsed --- {{{ */
1066
1082
 
1067
1083
  /* Unfortunately, variables aren't in scope here.
1068
1084
  * See calculations above.
@@ -1113,6 +1129,8 @@ nav#TOC > input:checked + ul {
1113
1129
  @page {
1114
1130
  size: letter;
1115
1131
  margin: 0.5in;
1132
+ /* To make room for line numbers in left margin. */
1133
+ margin-left: 0.25in;
1116
1134
  }
1117
1135
 
1118
1136
  @media print {
@@ -1120,13 +1138,13 @@ nav#TOC > input:checked + ul {
1120
1138
  --line-height: 18px;
1121
1139
  --font-size: 12px;
1122
1140
 
1123
- --inline-code-font-size: 12.5px;
1124
- --code-block-font-size: 11.5px;
1141
+ --inline-code-font-size: 11px;
1142
+ --code-block-font-size: 10px;
1125
1143
  --code-block-side-padding: 6px;
1126
1144
  --line-numbers-font-size: 8.5px;
1127
1145
 
1128
- --tight-code-line-height: 15px;
1129
- --tight-code-padding-top: 1px;
1146
+ --tight-code-line-height: 12.5px;
1147
+ --tight-code-padding-top: 2px;
1130
1148
 
1131
1149
  --side-note-line-height: 14px;
1132
1150
  --side-note-font-size: 9px;
@@ -1176,6 +1194,8 @@ nav#TOC > input:checked + ul {
1176
1194
 
1177
1195
  body {
1178
1196
  padding-top: 0;
1197
+ /* To make room for line numbers in left margin. */
1198
+ padding-left: 0.25in;
1179
1199
  }
1180
1200
 
1181
1201
  header,
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.0
4
+ version: 0.11.3
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-15 00:00:00.000000000 Z
11
+ date: 2022-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-pandoc