chulapa-jekyll 2.1.0 → 2.2.0

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.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +116 -0
  3. data/README.md +189 -204
  4. data/_data/version.yml +2 -2
  5. data/_includes/components/archive-documents.html +56 -0
  6. data/_includes/components/author.html +6 -1
  7. data/_includes/components/breadcrumbdatesocial.html +1 -1
  8. data/_includes/components/cactus.html +2 -1
  9. data/_includes/components/cloud-entry.html +26 -0
  10. data/_includes/components/cloud.html +66 -0
  11. data/_includes/components/collection-documents.html +17 -0
  12. data/_includes/components/footer-content.html +34 -0
  13. data/_includes/components/headers.html +5 -5
  14. data/_includes/components/indexcards.html +13 -10
  15. data/_includes/components/indexcategory-documents.html +11 -0
  16. data/_includes/components/navbar-classic.html +58 -0
  17. data/_includes/components/navbeforeafter.html +7 -4
  18. data/_includes/components/navigation-fallback.html +19 -0
  19. data/_includes/components/random.html +1 -103
  20. data/_includes/components/recommendations.html +97 -0
  21. data/_includes/components/related.html +1 -96
  22. data/_includes/components/scripts.html +9 -0
  23. data/_includes/components/sidetoc.html +5 -4
  24. data/_includes/components/simplelist.html +6 -6
  25. data/_includes/components/skin-attribution.html +169 -0
  26. data/_includes/components/theme-selector.html +14 -0
  27. data/_includes/footer.html +14 -217
  28. data/_includes/head.html +265 -257
  29. data/_includes/navbar.html +33 -77
  30. data/_includes/search/fusejs.html +3 -19
  31. data/_includes/search/google.html +3 -3
  32. data/_includes/search/lunr.html +3 -11
  33. data/_includes/search/simplesearch.html +6 -6
  34. data/_includes/snippets/bootstrapdemo.html +28 -10
  35. data/_includes/snippets/carousel.html +16 -12
  36. data/_includes/snippets/dark-skin-enabled.html +14 -0
  37. data/_includes/snippets/masonry.html +6 -4
  38. data/_includes/snippets/microformats-url.html +2 -0
  39. data/_includes/snippets/publisher.html +15 -18
  40. data/_includes/snippets/video.html +6 -6
  41. data/_includes/snippets/youtube.html +10 -4
  42. data/_includes/theme-styles.html +201 -0
  43. data/_includes/welcomments/comment_form.html +5 -4
  44. data/_includes/welcomments/comments.html +5 -5
  45. data/_layouts/archive.html +2 -75
  46. data/_layouts/cloudcategory.html +2 -101
  47. data/_layouts/cloudtag.html +2 -103
  48. data/_layouts/compress.html +1 -1
  49. data/_layouts/default.html +17 -6
  50. data/_layouts/indexcategory.html +2 -30
  51. data/_layouts/landingpage.html +6 -4
  52. data/_layouts/minimal.html +12 -8
  53. data/_layouts/search.html +6 -5
  54. data/_sass/bootstrap/_variables.scss +1 -1
  55. data/_sass/bootstrap/mixins/_badge.scss +1 -1
  56. data/_sass/chulapa/_autothemer.scss +31 -0
  57. data/_sass/chulapa/_buttons.scss +101 -0
  58. data/_sass/chulapa/_classes.scss +137 -9
  59. data/_sass/chulapa/_mixins.scss +42 -1
  60. data/_sass/chulapa/_theme-selector.scss +1 -0
  61. data/_sass/chulapa/skins/_deeply.scss +229 -0
  62. data/_sass/chulapa/skins/_electro.scss +30 -0
  63. data/_sass/chulapa/skins/_graymor.scss +39 -0
  64. data/_sass/chulapa/skins/_hootstrap.scss +34 -0
  65. data/_sass/chulapa/skins/_lymcha.scss +27 -0
  66. data/_sass/chulapa/skins/_mickie.scss +38 -0
  67. data/_sass/chulapa/skins/_minco.scss +45 -0
  68. data/_sass/chulapa/skins/_monotone.scss +15 -0
  69. data/_sass/chulapa/skins/_preptor.scss +30 -0
  70. data/_sass/chulapa/skins/_skeeblu.scss +34 -0
  71. data/_sass/chulapa/skins/_sunset.scss +33 -0
  72. data/_sass/chulapa/skins/_wandoo.scss +22 -0
  73. data/_sass/chulapa/skins/bootswatch/_cyborg.scss +543 -0
  74. data/_sass/chulapa/skins/bootswatch/_darkly.scss +452 -0
  75. data/_sass/chulapa/skins/bootswatch/_flatly.scss +415 -0
  76. data/_sass/chulapa/skins/bootswatch/_journal.scss +163 -0
  77. data/_sass/chulapa/skins/bootswatch/_lux.scss +342 -0
  78. data/_sass/chulapa/skins/bootswatch/_materia.scss +914 -0
  79. data/_sass/chulapa/skins/bootswatch/_minty.scss +342 -0
  80. data/_sass/chulapa/skins/bootswatch/_sketchy.scss +757 -0
  81. data/_sass/chulapa/skins/bootswatch/_slate.scss +746 -0
  82. data/_sass/chulapa/skins/bootswatch/_solar.scss +454 -0
  83. data/_sass/chulapa/skins/bootswatch/_united.scss +85 -0
  84. data/_sass/chulapa/skins/bootswatch/_yeti.scss +699 -0
  85. data/_sass/chulapa/skins/bootswatch/cyborg.patch +301 -0
  86. data/_sass/chulapa/skins/bootswatch/darkly.patch +493 -0
  87. data/_sass/chulapa/skins/bootswatch/flatly.patch +325 -0
  88. data/_sass/chulapa/skins/bootswatch/journal.patch +71 -0
  89. data/_sass/chulapa/skins/bootswatch/lux.patch +97 -0
  90. data/_sass/chulapa/skins/bootswatch/materia.patch +250 -0
  91. data/_sass/chulapa/skins/bootswatch/minty.patch +400 -0
  92. data/_sass/chulapa/skins/bootswatch/sketchy.patch +863 -0
  93. data/_sass/chulapa/skins/bootswatch/slate.patch +537 -0
  94. data/_sass/chulapa/skins/bootswatch/solar.patch +307 -0
  95. data/_sass/chulapa/skins/bootswatch/united.patch +91 -0
  96. data/_sass/chulapa/skins/bootswatch/yeti.patch +552 -0
  97. data/_sass/chulapa-master.scss +10 -0
  98. data/_sass/skins/academia.scss +28 -0
  99. data/_sass/skins/auto.scss +23 -28
  100. data/_sass/skins/butterfly-dark.scss +22 -3
  101. data/_sass/skins/butterfly-dim.scss +32 -5
  102. data/_sass/skins/butterfly.scss +35 -3
  103. data/_sass/skins/cerulean.scss +120 -0
  104. data/_sass/skins/chulapa.scss +23 -3
  105. data/_sass/skins/cyborg.scss +3 -512
  106. data/_sass/skins/darkly.scss +3 -424
  107. data/_sass/skins/deeply.scss +10 -279
  108. data/_sass/skins/electro.scss +4 -25
  109. data/_sass/skins/flatly.scss +3 -386
  110. data/_sass/skins/focal.scss +33 -2
  111. data/_sass/skins/gitdev-dark.scss +19 -8
  112. data/_sass/skins/gitdev.scss +2 -2
  113. data/_sass/skins/graymor.scss +7 -30
  114. data/_sass/skins/hootstrap.scss +5 -19
  115. data/_sass/skins/journal.scss +3 -131
  116. data/_sass/skins/listen.scss +35 -3
  117. data/_sass/skins/litera.scss +281 -0
  118. data/_sass/skins/lux.scss +3 -310
  119. data/_sass/skins/lymcha.scss +4 -17
  120. data/_sass/skins/materia.scss +3 -889
  121. data/_sass/skins/media.scss +11 -1
  122. data/_sass/skins/mickie.scss +7 -26
  123. data/_sass/skins/minco.scss +10 -29
  124. data/_sass/skins/minty.scss +3 -309
  125. data/_sass/skins/monotone.scss +6 -24
  126. data/_sass/skins/navi.scss +29 -1
  127. data/_sass/skins/none.scss +24 -2
  128. data/_sass/skins/pear.scss +34 -1
  129. data/_sass/skins/preptor.scss +6 -16
  130. data/_sass/skins/pulse.scss +158 -0
  131. data/_sass/skins/skeeblu.scss +6 -17
  132. data/_sass/skins/sketchy.scss +3 -735
  133. data/_sass/skins/slate.scss +3 -719
  134. data/_sass/skins/solar.scss +3 -425
  135. data/_sass/skins/sunset.scss +6 -26
  136. data/_sass/skins/towards.scss +26 -1
  137. data/_sass/skins/twitter-dim.scss +43 -5
  138. data/_sass/skins/twitter-lights-out.scss +25 -3
  139. data/_sass/skins/twitter.scss +32 -3
  140. data/_sass/skins/united.scss +3 -57
  141. data/_sass/skins/universal.scss +17 -0
  142. data/_sass/skins/wandoo.scss +6 -12
  143. data/_sass/skins/yeti.scss +3 -673
  144. data/_sass/vendor/bootswatch/LICENSE +21 -0
  145. data/_sass/vendor/bootswatch/LICENSE-4.5.0 +21 -0
  146. data/_sass/vendor/bootswatch/README.md +57 -0
  147. data/_sass/vendor/bootswatch/cerulean/_bootswatch.scss +102 -0
  148. data/_sass/vendor/bootswatch/cerulean/_variables.scss +57 -0
  149. data/_sass/vendor/bootswatch/cyborg/_bootswatch.scss +330 -0
  150. data/_sass/vendor/bootswatch/cyborg/_variables.scss +169 -0
  151. data/_sass/vendor/bootswatch/darkly/_bootswatch.scss +247 -0
  152. data/_sass/vendor/bootswatch/darkly/_variables.scss +164 -0
  153. data/_sass/vendor/bootswatch/flatly/_bootswatch.scss +274 -0
  154. data/_sass/vendor/bootswatch/flatly/_variables.scss +106 -0
  155. data/_sass/vendor/bootswatch/journal/_bootswatch.scss +62 -0
  156. data/_sass/vendor/bootswatch/journal/_variables.scss +60 -0
  157. data/_sass/vendor/bootswatch/litera/_bootswatch.scss +268 -0
  158. data/_sass/vendor/bootswatch/litera/_variables.scss +96 -0
  159. data/_sass/vendor/bootswatch/lux/_bootswatch.scss +191 -0
  160. data/_sass/vendor/bootswatch/lux/_variables.scss +103 -0
  161. data/_sass/vendor/bootswatch/materia/_bootswatch.scss +747 -0
  162. data/_sass/vendor/bootswatch/materia/_variables.scss +129 -0
  163. data/_sass/vendor/bootswatch/minty/_bootswatch.scss +380 -0
  164. data/_sass/vendor/bootswatch/minty/_variables.scss +94 -0
  165. data/_sass/vendor/bootswatch/pulse/_bootswatch.scss +145 -0
  166. data/_sass/vendor/bootswatch/pulse/_variables.scss +96 -0
  167. data/_sass/vendor/bootswatch/sketchy/_bootswatch.scss +492 -0
  168. data/_sass/vendor/bootswatch/sketchy/_variables.scss +172 -0
  169. data/_sass/vendor/bootswatch/slate/_bootswatch.scss +531 -0
  170. data/_sass/vendor/bootswatch/slate/_variables.scss +163 -0
  171. data/_sass/vendor/bootswatch/solar/_bootswatch.scss +243 -0
  172. data/_sass/vendor/bootswatch/solar/_variables.scss +171 -0
  173. data/_sass/vendor/bootswatch/source.json +86 -0
  174. data/_sass/vendor/bootswatch/united/_bootswatch.scss +10 -0
  175. data/_sass/vendor/bootswatch/united/_variables.scss +54 -0
  176. data/_sass/vendor/bootswatch/yeti/_bootswatch.scss +586 -0
  177. data/_sass/vendor/bootswatch/yeti/_variables.scss +110 -0
  178. data/_sass/vendor/tophat/LICENSE +21 -0
  179. data/_sass/vendor/tophat/README.md +38 -0
  180. data/_sass/vendor/tophat/deeply/_styles.scss +6 -0
  181. data/_sass/vendor/tophat/deeply/_variables.scss +73 -0
  182. data/_sass/vendor/tophat/deeply/theme.scss +77 -0
  183. data/_sass/vendor/tophat/electro/_styles.scss +5 -0
  184. data/_sass/vendor/tophat/electro/_variables.scss +23 -0
  185. data/_sass/vendor/tophat/electro/theme.scss +28 -0
  186. data/_sass/vendor/tophat/graymor/_styles.scss +5 -0
  187. data/_sass/vendor/tophat/graymor/_variables.scss +18 -0
  188. data/_sass/vendor/tophat/graymor/theme.scss +24 -0
  189. data/_sass/vendor/tophat/hootstrap/_styles.scss +5 -0
  190. data/_sass/vendor/tophat/hootstrap/_variables.scss +14 -0
  191. data/_sass/vendor/tophat/hootstrap/theme.scss +18 -0
  192. data/_sass/vendor/tophat/lymcha/_styles.scss +5 -0
  193. data/_sass/vendor/tophat/lymcha/_variables.scss +13 -0
  194. data/_sass/vendor/tophat/lymcha/theme.scss +16 -0
  195. data/_sass/vendor/tophat/mickie/_styles.scss +5 -0
  196. data/_sass/vendor/tophat/mickie/_variables.scss +13 -0
  197. data/_sass/vendor/tophat/mickie/theme.scss +17 -0
  198. data/_sass/vendor/tophat/minco/_styles.scss +5 -0
  199. data/_sass/vendor/tophat/minco/_variables.scss +14 -0
  200. data/_sass/vendor/tophat/minco/theme.scss +18 -0
  201. data/_sass/vendor/tophat/monotone/_styles.scss +5 -0
  202. data/_sass/vendor/tophat/monotone/_variables.scss +14 -0
  203. data/_sass/vendor/tophat/monotone/theme.scss +18 -0
  204. data/_sass/vendor/tophat/preptor/_styles.scss +5 -0
  205. data/_sass/vendor/tophat/preptor/_variables.scss +14 -0
  206. data/_sass/vendor/tophat/preptor/theme.scss +18 -0
  207. data/_sass/vendor/tophat/skeeblu/_styles.scss +5 -0
  208. data/_sass/vendor/tophat/skeeblu/_variables.scss +17 -0
  209. data/_sass/vendor/tophat/skeeblu/theme.scss +22 -0
  210. data/_sass/vendor/tophat/source.json +57 -0
  211. data/_sass/vendor/tophat/sunset/_styles.scss +5 -0
  212. data/_sass/vendor/tophat/sunset/_variables.scss +13 -0
  213. data/_sass/vendor/tophat/sunset/theme.scss +16 -0
  214. data/_sass/vendor/tophat/wandoo/_styles.scss +5 -0
  215. data/_sass/vendor/tophat/wandoo/_variables.scss +18 -0
  216. data/_sass/vendor/tophat/wandoo/theme.scss +24 -0
  217. data/assets/css/dark/highlighter.scss +10 -0
  218. data/assets/css/dark/main.scss +43 -0
  219. data/assets/css/highlighter.scss +6 -1
  220. data/assets/css/main.scss +12 -3
  221. data/assets/css/search-fusejs.css +14 -0
  222. data/assets/css/search-lunr.css +7 -0
  223. data/assets/js/better404/better404.js +31 -38
  224. data/assets/js/ch_ytdefer/ch_ytdefer.js +27 -82
  225. data/assets/js/chulapa_carousel.js +115 -0
  226. data/assets/js/chulapa_mermaid.js +31 -0
  227. data/assets/js/chulapa_navigation.js +71 -0
  228. data/assets/js/chulapa_photoswipe.js +106 -0
  229. data/assets/js/chulapa_script.js +198 -76
  230. data/assets/js/chulapa_search.js +89 -0
  231. data/assets/js/clipboard/chulapa_clipboard.js +17 -108
  232. data/assets/js/cusdis/chulapa_cusdis.js +1 -1
  233. data/assets/js/fusejs/fusejs-search.js +5 -140
  234. data/assets/js/fusejs/fusejs-search.min.js +4 -4
  235. data/assets/js/lunr/lunr-search.js +7 -130
  236. data/assets/js/lunr/lunr-search.min.js +1 -1
  237. metadata +141 -2
@@ -2,18 +2,25 @@
2
2
  layout: minimal
3
3
  header_in_content: true
4
4
  ---
5
+ {%- assign is_feed = false -%}
6
+ {%- if layout.chulapa_microformats_feed == true -%}
7
+ {%- assign is_feed = true -%}
8
+ {%- endif -%}
9
+ <div class="{% if is_feed %}h-feed{% else %}h-entry{% endif %} d-flex flex-column flex-fill">
10
+ {% include snippets/microformats-url.html %}
11
+ <main class="d-flex flex-column flex-fill">
5
12
  {% include components/headers.html headertype= page.header_type imghero=page.header_img projects=page.project_links %}
6
- <main class="container-lg pb-3 flex-fill">
13
+ <div class="container-lg pb-3 flex-fill">
7
14
  {% if page.show_breadcrumb or page.show_date or page.show_sociallinks -%}
8
15
  {%- include components/breadcrumbdatesocial.html -%}
9
16
  {% endif %}
10
17
  <div class="row pt-2">
11
- <aside class="col-lg-2 mt-lg-3 small">
18
+ <{% if page.show_author %}aside{% else %}div{% endif %} class="col-lg-2 mt-lg-3 small">
12
19
  {%- if page.show_author -%}
13
20
  {% include components/author.html %}
14
21
  {%- endif -%}
15
- </aside>
16
- <article id="maincontent" class="col-lg-8 mt-3 e-content">
22
+ </{% if page.show_author %}aside{% else %}div{% endif %}>
23
+ <{% if is_feed %}div{% else %}article{% endif %} id="maincontent" class="col-lg-8 mt-3">
17
24
  {% if page.show_sidetoc %}
18
25
 
19
26
  {% include components/sidetoc.html %}
@@ -26,9 +33,12 @@ header_in_content: true
26
33
  {% include components/toc.html sanitize=false html=content h_min=h_min h_max=h_max skip_no_ids=true id="toc" class="chulapa-toc-wrapper.list-group.mb-5.mx-3.mx-lg-5" item_class="list-group-item.font-weight-bold.py-1.pr-0.mr-0.chulapa-toc-reset" %}
27
34
  </nav>
28
35
  {% endif %}
36
+ {% unless is_feed %}<div class="e-content">{% endunless %}
29
37
  {{- content -}}
30
- </article>
38
+ {% unless is_feed %}</div>{% endunless %}
39
+ </{% if is_feed %}div{% else %}article{% endif %}>
31
40
  </div>
41
+ </div>
32
42
  </main>
33
43
  {%- if page.show_bottomnavs -%}
34
44
  {%- include components/navbeforeafter.html -%}
@@ -48,6 +58,7 @@ header_in_content: true
48
58
  {%- if page.show_related -%}
49
59
  {%- include components/related.html -%}
50
60
  {%- endif -%}
51
- {%- if page.show_random -%}
61
+ {%- if page.show_random -%}
52
62
  {%- include components/random.html -%}
53
63
  {%- endif -%}
64
+ </div>
@@ -1,36 +1,8 @@
1
1
  ---
2
2
  layout: default
3
+ chulapa_microformats_feed: true
3
4
  ---
4
5
 
5
6
  {{- content -}}
6
7
 
7
- {%- if page.include_collection -%}
8
- {%- assign cols = page.include_collection | split: "," -%}
9
- {%- for col in cols -%}
10
- {%- if forloop.first -%}
11
- {%- assign alldocs = site.documents |
12
- where_exp: "item", "item.collection == col" -%}
13
- {%- assign showcol = false -%}
14
- {%- else -%}
15
- {%- assign docloop = site.documents |
16
- where_exp: "item", "item.collection == col" -%}
17
- {%- assign alldocs = alldocs | concat: docloop %}
18
- {%- assign showcol = true -%}
19
- {%- endif -%}
20
- {%- endfor -%}
21
- {%- else -%}
22
- {%- assign alldocs = site.documents -%}
23
- {%- assign showcol = true -%}
24
- {% endif %}
25
-
26
- {% assign sort = page.index_sort | default: 'name' %}
27
-
28
- {% if page.index_sort_asc %}
29
- {% assign alldocs = alldocs | sort: "{{sort}}" %}
30
- {% else %}
31
- {% assign alldocs = alldocs | sort: "{{sort}}" | reverse %}
32
- {% endif %}
33
-
34
- {% assign end = page.index_items | default: 10 %}
35
-
36
- {% include_cached components/indexcards.html cacheddocs=alldocs cachedlimit=end %}
8
+ {%- include components/collection-documents.html renderer='components/indexcategory-documents.html' -%}
@@ -2,6 +2,8 @@
2
2
  layout: minimal
3
3
  header_in_content: true
4
4
  ---
5
+ <div class="h-entry d-flex flex-column flex-fill">
6
+ {% include snippets/microformats-url.html %}
5
7
  <div class="chulapa-bg-landingpage">
6
8
  {% include components/headers.html headertype= page.header_type imghero=page.header_img projects=page.project_links %}
7
9
  </div>
@@ -11,11 +13,11 @@ header_in_content: true
11
13
  {%- include components/breadcrumbdatesocial.html -%}
12
14
  {% endif %}
13
15
  <div class="row pt-2">
14
- <aside class="col-lg-2 mt-lg-3 small">
16
+ <{% if page.show_author %}aside{% else %}div{% endif %} class="col-lg-2 mt-lg-3 small">
15
17
  {%- if page.show_author -%}
16
18
  {% include components/author.html %}
17
19
  {%- endif -%}
18
- </aside>
20
+ </{% if page.show_author %}aside{% else %}div{% endif %}>
19
21
  <article id="maincontent" class="col-lg-8 mt-3 e-content">
20
22
 
21
23
  {% if page.show_sidetoc %}
@@ -64,9 +66,9 @@ header_in_content: true
64
66
  {%- include components/related.html -%}
65
67
  </div>
66
68
  {%- endif -%}
67
- {%- if page.show_random -%}
69
+ {%- if page.show_random -%}
68
70
  <div class="chulapa-landingpage-related">
69
71
  {%- include components/random.html -%}
70
72
  </div>
71
73
  {%- endif -%}
72
-
74
+ </div>
@@ -1,26 +1,30 @@
1
1
  ---
2
2
  layout: compress
3
3
  ---
4
- <!doctype html>
5
4
  {%- include snippets/page-language.html -%}
5
+ <!doctype html>
6
6
  <html lang="{{ page_language | escape }}">
7
- {%- include head.html -%}
7
+ {% include head.html theme_script=true %}
8
8
  {%- include snippets/canonical-url.html url=page.url canonical=page.canonical_url -%}
9
- <body class="d-flex flex-column h-entry" id="body">
10
- <a class="u-url d-none" href="{{ canonical_url | escape }}">Invisible link to canonical for Microformats</a>
9
+ <body {% if page.mermaid == true %}data-mermaid="true" {% endif %}class="d-flex flex-column" id="body">
10
+ <a class="sr-only sr-only-focusable chulapa-skip-link" href="#chulapa-content">Skip to content</a>
11
11
  {% include_cached navbar.html pageurl=page.url %}
12
12
  {% if page.show_header == true %}
13
13
  {% unless layout.header_in_content %}
14
14
  {% include components/headers.html headertype=page.header_type imghero=page.header_img projects=page.project_links %}
15
15
  {% endunless %}
16
16
  {% endif %}
17
+ <div id="chulapa-content" tabindex="-1"></div>
17
18
  {{- content -}}
18
19
  {%- include_cached footer.html show_comments=page.show_comments pageurl=page.url pageid=page.id pagetitle = page.title -%}
19
20
  <!-- JS, Popper.js, and jQuery -->
20
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
21
- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
22
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
23
- <script src="{{ '/assets/js/chulapa_script.js' | relative_url }}"></script>
21
+ {% include components/scripts.html theme=true %}
22
+ {% if page.mermaid == true %}
23
+ <script type="module" src="{{ "/assets/js/chulapa_mermaid.js" | relative_url }}"></script>
24
+ {% endif %}
25
+ {% if content contains 'data-photoswipe-gallery="' %}
26
+ <script type="module" src="{{ '/assets/js/chulapa_photoswipe.js' | relative_url }}"></script>
27
+ {% endif %}
24
28
  {% include custom/custom_bottomscripts.html %}
25
29
  </body>
26
30
  </html>
data/_layouts/search.html CHANGED
@@ -1,7 +1,7 @@
1
- <!doctype html>
2
1
  {%- include snippets/page-language.html -%}
2
+ <!doctype html>
3
3
  <html lang="{{ page_language | escape }}">
4
- {%- include head.html -%}
4
+ {% include head.html %}
5
5
  <body class="d-flex flex-column">
6
6
  {% include_cached navbar.html pageurl=page.url %}
7
7
  <header class="text-center header-chulapa">
@@ -33,9 +33,10 @@
33
33
  </div>
34
34
  </main>
35
35
  {%- include_cached footer.html -%}
36
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
37
- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
38
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
36
+ {% include components/scripts.html %}
37
+ {% if site.search.provider == "lunr" or site.search.provider == "fusejs" %}
38
+ <script src="{{ '/assets/js/chulapa_search.js' | relative_url }}"></script>
39
+ {% endif %}
39
40
  {%- if site.search.provider == "lunr" -%}
40
41
  <script src="https://unpkg.com/lunr/lunr.min.js"></script>
41
42
  <script src="{{ '/assets/js/lunr/lunr-store.js' | absolute_url }}"></script>
@@ -43,7 +43,7 @@ $orange: #fd7e14 !default;
43
43
  $yellow: #ffc107 !default;
44
44
  $green: #28a745 !default;
45
45
  $teal: #20c997 !default;
46
- $cyan: #17a2b8 !default;
46
+ $cyan: #20a6bb !default;
47
47
 
48
48
  $colors: () !default;
49
49
  // stylelint-disable-next-line scss/dollar-variable-default
@@ -4,7 +4,7 @@
4
4
 
5
5
  @at-root a#{&} {
6
6
  @include hover-focus() {
7
- color: color-yiq($bg);
7
+ color: color-yiq(darken($bg, 10%));
8
8
  background-color: darken($bg, 10%);
9
9
  }
10
10
 
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Chulapa - Bootstrap Autothemer
3
+ * Copyright 2020 Chulapa Jekyll Skin Author
4
+ * Licensed under MIT
5
+ */
6
+
7
+ $primary: #007bff !default;
8
+ $yiq-contrasted-threshold: 117 !default;
9
+ $white: mix(#fff, $primary, 95%) !default;
10
+ $gray-100: mix(#f8f9fa, $primary, 85%) !default;
11
+ $gray-200: mix(#e9ecef, $primary, 85%) !default;
12
+ $gray-300: mix(#dee2e6, $primary, 85%) !default;
13
+ $gray-400: mix(#ced4da, $primary, 85%) !default;
14
+ $gray-500: mix(#adb5bd, $primary, 85%) !default;
15
+ $gray-600: mix(#6c757d, $primary, 85%) !default;
16
+ $gray-700: mix(#495057, $primary, 85%) !default;
17
+ $gray-800: mix(#343a40, $primary, 85%) !default;
18
+ $gray-900: mix(#212529, $primary, 85%) !default;
19
+ $black: mix(#000, $primary, 95%) !default;
20
+
21
+ $secondary: $gray-600 !default;
22
+ $success: mix(#28a745, $primary, 75%) !default;
23
+ $info: mix(#17a2b8, $primary, 75%) !default;
24
+ $warning: mix(#ffc107, $primary, 75%) !default;
25
+ $danger: mix(#dc3545, $primary, 75%) !default;
26
+ $light: mix(white, $primary, 75%) !default;
27
+ $dark: mix(black, $primary, 75%) !default;
28
+
29
+ $carousel-control-color: $dark !default;
30
+ $carousel-indicator-active-bg: $dark !default;
31
+ $code-color: #E80E61 !default;
@@ -0,0 +1,101 @@
1
+ // Corrections apply only to stock colors; site vars retain Bootstrap behavior.
2
+ $skin-button-labels: () !default;
3
+ $skin-button-outlines: () !default;
4
+ $skin-button-backgrounds: () !default;
5
+ $skin-button-palette: () !default;
6
+ $skin-button-body-bg: null !default;
7
+ $skin-button-lighter-states: () !default;
8
+ $skin-button-outline-important: () !default;
9
+
10
+ // Some legacy skins initialize $theme-colors before vars; check both views.
11
+ $skin-button-effective-palette: (
12
+ primary: $primary,
13
+ secondary: $secondary,
14
+ success: $success,
15
+ info: $info,
16
+ warning: $warning,
17
+ danger: $danger,
18
+ light: $light,
19
+ dark: $dark,
20
+ );
21
+
22
+ @each $variant, $background in $skin-button-backgrounds {
23
+ $stock: map-get($skin-button-palette, $variant);
24
+ @if $stock == map-get($skin-button-effective-palette, $variant) and $stock == theme-color($variant) {
25
+ .btn-#{$variant} {
26
+ @include button-variant($background, $background);
27
+ &,
28
+ &:hover,
29
+ &:focus,
30
+ &.focus,
31
+ &:disabled,
32
+ &.disabled,
33
+ &:not(:disabled):not(.disabled):active,
34
+ &:not(:disabled):not(.disabled).active,
35
+ .show > &.dropdown-toggle {
36
+ color: #fff;
37
+ }
38
+ }
39
+ }
40
+ }
41
+
42
+ @each $variant, $label in $skin-button-labels {
43
+ $stock: map-get($skin-button-palette, $variant);
44
+ @if $stock == map-get($skin-button-effective-palette, $variant) and $stock == theme-color($variant) {
45
+ .btn-#{$variant} {
46
+ &,
47
+ &:hover,
48
+ &:focus,
49
+ &.focus,
50
+ &:disabled,
51
+ &.disabled,
52
+ &:not(:disabled):not(.disabled):active,
53
+ &:not(:disabled):not(.disabled).active,
54
+ .show > &.dropdown-toggle {
55
+ color: $label;
56
+ }
57
+ }
58
+ }
59
+ }
60
+
61
+ @each $variant, $label in $skin-button-outlines {
62
+ $stock: map-get($skin-button-palette, $variant);
63
+ @if $stock == map-get($skin-button-effective-palette, $variant) and $stock == theme-color($variant) and $skin-button-body-bg == $body-bg {
64
+ .btn-outline-#{$variant} {
65
+ // Lux's upstream Secondary rule also forces these properties.
66
+ @if index($skin-button-outline-important, $variant) {
67
+ color: $label !important;
68
+ border-color: $label !important;
69
+ }
70
+ &:not(:hover):not(:active):not(.active):not(.disabled):not(:disabled) {
71
+ color: $label;
72
+ border-color: $label;
73
+
74
+ .show > &.dropdown-toggle {
75
+ color: color-yiq(theme-color($variant));
76
+ border-color: theme-color($variant);
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+
83
+ @each $variant in $skin-button-lighter-states {
84
+ $stock: map-get($skin-button-palette, $variant);
85
+ @if $stock == map-get($skin-button-effective-palette, $variant) and $stock == theme-color($variant) {
86
+ .btn.btn-#{$variant}:not(:disabled):not(.disabled) {
87
+ &:hover,
88
+ &:focus,
89
+ &.focus {
90
+ background-color: lighten(theme-color($variant), 3%);
91
+ color: $gray-900;
92
+ }
93
+ &:active,
94
+ &.active,
95
+ .show > &.dropdown-toggle {
96
+ background-color: lighten(theme-color($variant), 5%);
97
+ color: $gray-900;
98
+ }
99
+ }
100
+ }
101
+ }
@@ -558,6 +558,14 @@
558
558
  }
559
559
  }
560
560
 
561
+ #toc a.chulapa-toc-active,
562
+ #sidetoc a.chulapa-toc-active,
563
+ #markdown-toc a.chulapa-toc-active {
564
+ text-decoration: underline !important;
565
+ text-decoration-thickness: 0.125em;
566
+ text-underline-offset: 0.2em;
567
+ }
568
+
561
569
  .chulapa-toc-reset {
562
570
  border: 0;
563
571
  ul {
@@ -736,7 +744,7 @@
736
744
 
737
745
  //Navbar modern
738
746
  .navbar-chulapa-fab {
739
- label {
747
+ button {
740
748
  line-height: unset;
741
749
  }
742
750
 
@@ -773,6 +781,8 @@
773
781
  z-index: 15000;
774
782
  opacity: 0;
775
783
  width: 0;
784
+ visibility: hidden;
785
+ overflow-y: auto;
776
786
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
777
787
  }
778
788
 
@@ -815,7 +825,8 @@
815
825
  color: $navbar-chulapa-text-color;
816
826
 
817
827
  &:link,
818
- &:visited {
828
+ &:visited,
829
+ &.dropdown-toggle {
819
830
  display: inline-block;
820
831
  background-image: linear-gradient(
821
832
  120deg,
@@ -871,13 +882,14 @@
871
882
  }
872
883
  }
873
884
 
874
- &-button:checked ~ &-background {
885
+ &-button[aria-expanded="true"] ~ &-background {
875
886
  transform: scale(80);
876
887
  }
877
888
 
878
- &-button:checked ~ &-nav {
889
+ &-button[aria-expanded="true"] ~ &-nav {
879
890
  opacity: 1;
880
891
  width: 100%;
892
+ visibility: visible;
881
893
 
882
894
  .navbar-nav {
883
895
  transform: translate(100vw, -50%);
@@ -913,16 +925,16 @@
913
925
  }
914
926
  }
915
927
 
916
- &-button:checked + .navbar-toggler .navbar-toggler-icon {
928
+ &-button[aria-expanded="true"] .navbar-toggler-icon {
917
929
  background-color: transparent;
918
930
  }
919
931
 
920
- &-button:checked + .navbar-toggler .navbar-toggler-icon::before {
932
+ &-button[aria-expanded="true"] .navbar-toggler-icon::before {
921
933
  top: 0;
922
934
  transform: rotate(135deg);
923
935
  }
924
936
 
925
- &-button:checked + .navbar-toggler .navbar-toggler-icon::after {
937
+ &-button[aria-expanded="true"] .navbar-toggler-icon::after {
926
938
  top: 0;
927
939
  transform: rotate(-135deg);
928
940
  }
@@ -962,7 +974,8 @@ h6 {
962
974
  }
963
975
  }
964
976
 
965
- &:hover .chulapa-header-link {
977
+ &:hover .chulapa-header-link,
978
+ .chulapa-header-link:focus {
966
979
  opacity: 1;
967
980
  }
968
981
  }
@@ -998,6 +1011,13 @@ h6 {
998
1011
  object-fit: contain;
999
1012
  }
1000
1013
 
1014
+ // The viewer's controls sit over images; use a two-color keyboard focus ring.
1015
+ .pswp .pswp__button:focus-visible {
1016
+ outline: 2px solid #fff !important;
1017
+ outline-offset: -5px;
1018
+ box-shadow: inset 0 0 0 7px #000;
1019
+ }
1020
+
1001
1021
  .chulapa-border-card-index {
1002
1022
  border-color: $indexcards-chulapa-border-color;
1003
1023
  }
@@ -1055,7 +1075,6 @@ h6 {
1055
1075
  }
1056
1076
 
1057
1077
  &:focus {
1058
- outline: 0;
1059
1078
  text-shadow: none;
1060
1079
  }
1061
1080
  }
@@ -1278,3 +1297,112 @@ $wlc-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1278
1297
  #disqus_recommendations {
1279
1298
  width: 100%;
1280
1299
  }
1300
+
1301
+ // Keep keyboard focus visible across skins and Bootstrap controls.
1302
+ a:focus-visible,
1303
+ button:focus-visible,
1304
+ input:focus-visible,
1305
+ select:focus-visible,
1306
+ textarea:focus-visible,
1307
+ [tabindex]:focus-visible {
1308
+ outline: 2px solid currentColor !important;
1309
+ outline-offset: 3px;
1310
+ }
1311
+
1312
+ .chulapa-skip-link {
1313
+ position: fixed !important;
1314
+ top: 0;
1315
+ left: 0;
1316
+ z-index: 21000;
1317
+ padding: $spacer;
1318
+ color: $body-color;
1319
+ background: $body-bg;
1320
+ }
1321
+
1322
+ @media (prefers-reduced-motion: reduce) {
1323
+ .navbar-chulapa-fab *,
1324
+ .navbar-chulapa-fab *::before,
1325
+ .navbar-chulapa-fab *::after,
1326
+ .bs-canvas-anim,
1327
+ .chulapa-header-link,
1328
+ .fa, .far, .fas, .fab, .fa-solid, .fa-regular, .fa-brands {
1329
+ transition: none !important;
1330
+ animation: none !important;
1331
+ }
1332
+ }
1333
+
1334
+ // Distinguish prose links without relying on color alone.
1335
+ .e-content p a:not(.btn):not(.nav-link):not(.chulapa-header-link),
1336
+ .e-content li:not(.list-group-item):not(.nav-item) > a:not(.btn):not(.nav-link) {
1337
+ text-decoration: underline;
1338
+ text-underline-offset: 0.15em;
1339
+ }
1340
+
1341
+ // Native action buttons retain the appearance of navigation links and controls.
1342
+ // Override the button reset, but remain less specific than even a plain .nav-link.
1343
+ :where(.navbar-chulapa, .navbar-chulapa-fab) button:where(.nav-link) {
1344
+ border: 0;
1345
+ border-radius: 0;
1346
+ background-color: transparent;
1347
+ font-weight: inherit;
1348
+ letter-spacing: inherit;
1349
+ text-shadow: inherit;
1350
+ text-align: inherit;
1351
+ text-transform: inherit;
1352
+ }
1353
+
1354
+ .carousel-control-prev,
1355
+ .carousel-control-next {
1356
+ border: 0;
1357
+ padding: 0;
1358
+ background-color: transparent;
1359
+ }
1360
+
1361
+ .carousel-indicators li { position: relative; }
1362
+ .carousel-indicators button {
1363
+ position: absolute;
1364
+ top: 50%;
1365
+ left: 0;
1366
+ width: 100%;
1367
+ min-height: 24px;
1368
+ transform: translateY(-50%);
1369
+ border: 0;
1370
+ padding: 0;
1371
+ background: transparent;
1372
+ }
1373
+ .chulapa-carousel-toggle {
1374
+ position: absolute;
1375
+ top: .5rem;
1376
+ right: .5rem;
1377
+ z-index: 3;
1378
+ min-height: 44px;
1379
+ min-width: 44px;
1380
+ padding: .5rem .75rem;
1381
+ border: 1px solid #fff;
1382
+ border-radius: .25rem;
1383
+ background: #111;
1384
+ color: #fff;
1385
+ }
1386
+ .chulapa-carousel-toggle:focus-visible,
1387
+ .carousel-indicators button:focus-visible {
1388
+ outline-color: #fff !important;
1389
+ box-shadow: 0 0 0 2px #000;
1390
+ }
1391
+
1392
+ .carousel-indicators li:focus-within { opacity: 1; }
1393
+
1394
+ // Long headings must reflow when text is enlarged, rather than widen the page.
1395
+ h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
1396
+ .chulapa-btn-sidebar,
1397
+ .bs-canvas .close { min-width: 44px; min-height: 44px; }
1398
+ .chulapa-carousel-toggle { max-width: calc(100% - 1rem); overflow-wrap: anywhere; }
1399
+
1400
+ .chulapa-carousel-symbol i { display: none; }
1401
+ .chulapa-carousel-symbol.has-icon-font i { display: inline-block; }
1402
+ .chulapa-carousel-symbol.has-icon-font .chulapa-carousel-fallback,
1403
+ .chulapa-carousel-symbol svg + .chulapa-carousel-fallback { display: none; }
1404
+
1405
+ // Component demos show the selector even without dark-mode configuration.
1406
+ .bs-component {
1407
+ @include chulapa-theme-selector-styles;
1408
+ }
@@ -74,4 +74,45 @@
74
74
  box-shadow: 0 0 0 $badge-focus-width rgba($bg, .5);
75
75
  }
76
76
  }
77
- }
77
+ }
78
+
79
+ // Share the selector appearance with the always-visible Bootstrap demo.
80
+ @mixin chulapa-theme-selector-styles {
81
+ // Keep the current mode as legible as the navbar's active controls.
82
+ .navbar-chulapa .navbar-nav .chulapa-theme-toggle,
83
+ .navbar-chulapa-fab .chulapa-theme-toggle {
84
+ color: $navbar-chulapa-active-color;
85
+ }
86
+
87
+ // Dark mode toggler
88
+ .chulapa-theme-toggle .chulapa-theme-label {
89
+ display: none !important;
90
+ }
91
+
92
+ .chulapa-theme-toggle {
93
+ padding-left: 0.6rem;
94
+ padding-right: 0.6rem;
95
+ }
96
+
97
+ // Default color (closed)
98
+ .navbar-chulapa-fab-nav .chulapa-theme-toggle,
99
+ .navbar-chulapa-fab-nav .chulapa-theme-toggle i,
100
+ .navbar-chulapa .chulapa-theme-toggle,
101
+ .navbar-chulapa .chulapa-theme-toggle i {
102
+ color: $navbar-chulapa-text-color !important;
103
+ }
104
+
105
+ // Remove focus outline
106
+ .chulapa-theme-toggle:focus,
107
+ .chulapa-theme-toggle:focus-visible {
108
+ outline: none !important;
109
+ box-shadow: none !important;
110
+ color: $navbar-chulapa-text-color !important;
111
+ }
112
+
113
+ // Active color when dropdown is open
114
+ .chulapa-theme-selector.show .chulapa-theme-toggle,
115
+ .chulapa-theme-selector.show .chulapa-theme-toggle i {
116
+ color: $navbar-chulapa-active-color !important;
117
+ }
118
+ }
@@ -0,0 +1 @@
1
+ @include chulapa-theme-selector-styles;