chulapa-jekyll 2.0.1 → 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 (329) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +264 -35
  3. data/README.md +189 -180
  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 +16 -12
  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 +22 -15
  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 +9 -6
  18. data/_includes/components/navigation-fallback.html +19 -0
  19. data/_includes/components/random.html +1 -0
  20. data/_includes/components/recommendations.html +97 -0
  21. data/_includes/components/related.html +1 -104
  22. data/_includes/components/scripts.html +9 -0
  23. data/_includes/components/sidetoc.html +5 -4
  24. data/_includes/components/simplelist.html +26 -0
  25. data/_includes/components/skin-attribution.html +169 -0
  26. data/_includes/components/theme-selector.html +14 -0
  27. data/_includes/footer.html +14 -165
  28. data/_includes/head.html +389 -242
  29. data/_includes/navbar.html +33 -77
  30. data/_includes/search/fusejs.html +20 -0
  31. data/_includes/search/google.html +3 -3
  32. data/_includes/search/lunr.html +19 -7
  33. data/_includes/search/simplesearch.html +46 -0
  34. data/_includes/snippets/article-images.html +25 -0
  35. data/_includes/snippets/bootstrapdemo.html +1472 -1303
  36. data/_includes/snippets/breadcrumb-names.html +5 -0
  37. data/_includes/snippets/canonical-url.html +17 -0
  38. data/_includes/snippets/carousel.html +16 -12
  39. data/_includes/snippets/dark-skin-enabled.html +14 -0
  40. data/_includes/snippets/datetranslate.html +7 -1
  41. data/_includes/snippets/jsonld-string.html +16 -0
  42. data/_includes/snippets/masonry.html +6 -4
  43. data/_includes/snippets/microformats-url.html +2 -0
  44. data/_includes/snippets/og-locale.html +19 -0
  45. data/_includes/snippets/page-language.html +4 -0
  46. data/_includes/snippets/publisher.html +22 -0
  47. data/_includes/snippets/video-metadata.html +15 -0
  48. data/_includes/snippets/video.html +21 -18
  49. data/_includes/snippets/youtube.html +17 -6
  50. data/_includes/theme-styles.html +201 -0
  51. data/_includes/welcomments/comment_form.html +5 -4
  52. data/_includes/welcomments/comments.html +5 -5
  53. data/_includes/welcomments/template.html +1 -1
  54. data/_layouts/archive.html +2 -75
  55. data/_layouts/cloudcategory.html +2 -101
  56. data/_layouts/cloudtag.html +2 -103
  57. data/_layouts/compress.html +1 -1
  58. data/_layouts/default.html +20 -9
  59. data/_layouts/indexcategory.html +2 -30
  60. data/_layouts/landingpage.html +12 -7
  61. data/_layouts/minimal.html +19 -9
  62. data/_layouts/search.html +17 -17
  63. data/_sass/bootstrap/_variables.scss +1 -1
  64. data/_sass/bootstrap/mixins/_badge.scss +1 -1
  65. data/_sass/chulapa/_autothemer.scss +31 -0
  66. data/_sass/chulapa/_buttons.scss +101 -0
  67. data/_sass/chulapa/_classes.scss +197 -59
  68. data/_sass/chulapa/_mixins.scss +42 -1
  69. data/_sass/chulapa/_reboot.scss +31 -0
  70. data/_sass/chulapa/_theme-selector.scss +1 -0
  71. data/_sass/chulapa/_variables.scss +8 -1
  72. data/_sass/chulapa/skins/_deeply.scss +229 -0
  73. data/_sass/chulapa/skins/_electro.scss +30 -0
  74. data/_sass/chulapa/skins/_graymor.scss +39 -0
  75. data/_sass/chulapa/skins/_hootstrap.scss +34 -0
  76. data/_sass/chulapa/skins/_lymcha.scss +27 -0
  77. data/_sass/chulapa/skins/_mickie.scss +38 -0
  78. data/_sass/chulapa/skins/_minco.scss +45 -0
  79. data/_sass/chulapa/skins/_monotone.scss +15 -0
  80. data/_sass/chulapa/skins/_preptor.scss +30 -0
  81. data/_sass/chulapa/skins/_skeeblu.scss +34 -0
  82. data/_sass/chulapa/skins/_sunset.scss +33 -0
  83. data/_sass/chulapa/skins/_wandoo.scss +22 -0
  84. data/_sass/chulapa/skins/bootswatch/_cyborg.scss +543 -0
  85. data/_sass/chulapa/skins/bootswatch/_darkly.scss +452 -0
  86. data/_sass/chulapa/skins/bootswatch/_flatly.scss +415 -0
  87. data/_sass/chulapa/skins/bootswatch/_journal.scss +163 -0
  88. data/_sass/chulapa/skins/bootswatch/_lux.scss +342 -0
  89. data/_sass/chulapa/skins/bootswatch/_materia.scss +914 -0
  90. data/_sass/chulapa/skins/bootswatch/_minty.scss +342 -0
  91. data/_sass/chulapa/skins/bootswatch/_sketchy.scss +757 -0
  92. data/_sass/chulapa/skins/bootswatch/_slate.scss +746 -0
  93. data/_sass/chulapa/skins/bootswatch/_solar.scss +454 -0
  94. data/_sass/chulapa/skins/bootswatch/_united.scss +85 -0
  95. data/_sass/chulapa/skins/bootswatch/_yeti.scss +699 -0
  96. data/_sass/chulapa/skins/bootswatch/cyborg.patch +301 -0
  97. data/_sass/chulapa/skins/bootswatch/darkly.patch +493 -0
  98. data/_sass/chulapa/skins/bootswatch/flatly.patch +325 -0
  99. data/_sass/chulapa/skins/bootswatch/journal.patch +71 -0
  100. data/_sass/chulapa/skins/bootswatch/lux.patch +97 -0
  101. data/_sass/chulapa/skins/bootswatch/materia.patch +250 -0
  102. data/_sass/chulapa/skins/bootswatch/minty.patch +400 -0
  103. data/_sass/chulapa/skins/bootswatch/sketchy.patch +863 -0
  104. data/_sass/chulapa/skins/bootswatch/slate.patch +537 -0
  105. data/_sass/chulapa/skins/bootswatch/solar.patch +307 -0
  106. data/_sass/chulapa/skins/bootswatch/united.patch +91 -0
  107. data/_sass/chulapa/skins/bootswatch/yeti.patch +552 -0
  108. data/_sass/chulapa-master.scss +10 -0
  109. data/_sass/highlight/README.md +176 -14
  110. data/_sass/highlight/abap.scss +62 -0
  111. data/_sass/highlight/algol.scss +46 -0
  112. data/_sass/highlight/algol_nu.scss +46 -0
  113. data/_sass/highlight/arduino.scss +63 -0
  114. data/_sass/highlight/autumn.scss +69 -58
  115. data/_sass/highlight/base16.scss +90 -0
  116. data/_sass/highlight/borland.scss +55 -46
  117. data/_sass/highlight/bw.scss +70 -34
  118. data/_sass/highlight/cobalt2.scss +197 -0
  119. data/_sass/highlight/coffee.scss +82 -0
  120. data/_sass/highlight/colorful.scss +178 -61
  121. data/_sass/highlight/cran.scss +185 -169
  122. data/_sass/highlight/default.scss +72 -61
  123. data/_sass/highlight/dracula.scss +93 -169
  124. data/_sass/highlight/emacs.scss +72 -61
  125. data/_sass/highlight/friendly.scss +72 -61
  126. data/_sass/highlight/friendly_grayscale.scss +72 -0
  127. data/_sass/highlight/fruity.scss +82 -70
  128. data/_sass/highlight/github.dark.scss +83 -0
  129. data/_sass/highlight/github.scss +116 -61
  130. data/_sass/highlight/gruvbox.dark.scss +83 -0
  131. data/_sass/highlight/gruvbox.light.scss +68 -84
  132. data/_sass/highlight/gruvbox.scss +97 -0
  133. data/_sass/highlight/igor.scss +36 -0
  134. data/_sass/highlight/igorpro.scss +45 -0
  135. data/_sass/highlight/inkpot.scss +78 -0
  136. data/_sass/highlight/lightbulb.scss +82 -0
  137. data/_sass/highlight/lilypond.scss +58 -0
  138. data/_sass/highlight/lovelace.scss +74 -0
  139. data/_sass/highlight/magritte.scss +175 -0
  140. data/_sass/highlight/manni.scss +72 -61
  141. data/_sass/highlight/material.scss +81 -0
  142. data/_sass/highlight/molokai.scss +211 -0
  143. data/_sass/highlight/monokai.scss +217 -65
  144. data/_sass/highlight/monokai.sublime.scss +203 -0
  145. data/_sass/highlight/murphy.scss +72 -61
  146. data/_sass/highlight/native.scss +82 -70
  147. data/_sass/highlight/night-owl.scss +201 -0
  148. data/_sass/highlight/nord.darker.scss +82 -0
  149. data/_sass/highlight/nord.scss +82 -0
  150. data/_sass/highlight/oksolar.dark.scss +175 -0
  151. data/_sass/highlight/oksolar.light.scss +175 -0
  152. data/_sass/highlight/one.dark.scss +82 -0
  153. data/_sass/highlight/panda.scss +195 -0
  154. data/_sass/highlight/paraiso.dark.scss +76 -0
  155. data/_sass/highlight/paraiso.light.scss +76 -0
  156. data/_sass/highlight/pastie.scss +154 -60
  157. data/_sass/highlight/perldoc.scss +69 -58
  158. data/_sass/highlight/rainbow_dash.scss +65 -0
  159. data/_sass/highlight/rrt.scss +82 -0
  160. data/_sass/highlight/sas.scss +63 -0
  161. data/_sass/highlight/selenized.black.scss +175 -0
  162. data/_sass/highlight/selenized.dark.scss +175 -0
  163. data/_sass/highlight/selenized.light.scss +175 -0
  164. data/_sass/highlight/selenized.white.scss +175 -0
  165. data/_sass/highlight/skeletor.scss +190 -140
  166. data/_sass/highlight/solarized.dark.scss +82 -0
  167. data/_sass/highlight/solarized.light.scss +82 -0
  168. data/_sass/highlight/stackoverflow.dark.scss +175 -0
  169. data/_sass/highlight/stackoverflow.light.scss +175 -0
  170. data/_sass/highlight/staroffice.scss +82 -0
  171. data/_sass/highlight/stata.dark.scss +82 -0
  172. data/_sass/highlight/stata.light.scss +49 -0
  173. data/_sass/highlight/tango.scss +81 -69
  174. data/_sass/highlight/template.scss +290 -0
  175. data/_sass/highlight/thankful_eyes.scss +180 -173
  176. data/_sass/highlight/trac.scss +70 -59
  177. data/_sass/highlight/tulip.scss +171 -0
  178. data/_sass/highlight/vim.scss +82 -70
  179. data/_sass/highlight/vs.scss +41 -33
  180. data/_sass/highlight/xcode.scss +65 -0
  181. data/_sass/highlight/zenburn.scss +82 -136
  182. data/_sass/reset-algolia.scss +27 -17
  183. data/_sass/skins/academia.scss +47 -10
  184. data/_sass/skins/auto.scss +25 -27
  185. data/_sass/skins/butterfly-dark.scss +73 -0
  186. data/_sass/skins/butterfly-dim.scss +81 -0
  187. data/_sass/skins/butterfly.scss +65 -0
  188. data/_sass/skins/cerulean.scss +120 -0
  189. data/_sass/skins/chulapa.scss +33 -6
  190. data/_sass/skins/cyborg.scss +3 -0
  191. data/_sass/skins/dark-bg.scss +83 -49
  192. data/_sass/skins/darkly.scss +3 -0
  193. data/_sass/skins/deeply.scss +17 -87
  194. data/_sass/skins/electro.scss +5 -19
  195. data/_sass/skins/flatly.scss +3 -0
  196. data/_sass/skins/focal.scss +56 -19
  197. data/_sass/skins/gitdev-dark.scss +28 -25
  198. data/_sass/skins/gitdev.scss +22 -19
  199. data/_sass/skins/graymor.scss +7 -22
  200. data/_sass/skins/hootstrap.scss +6 -13
  201. data/_sass/skins/journal.scss +3 -143
  202. data/_sass/skins/listen.scss +83 -0
  203. data/_sass/skins/litera.scss +281 -0
  204. data/_sass/skins/lux.scss +3 -376
  205. data/_sass/skins/lymcha.scss +4 -12
  206. data/_sass/skins/materia.scss +3 -0
  207. data/_sass/skins/media.scss +40 -12
  208. data/_sass/skins/mickie.scss +8 -11
  209. data/_sass/skins/minco.scss +11 -10
  210. data/_sass/skins/minty.scss +3 -168
  211. data/_sass/skins/monotone.scss +7 -11
  212. data/_sass/skins/navi.scss +54 -0
  213. data/_sass/skins/none.scss +24 -2
  214. data/_sass/skins/pear.scss +50 -6
  215. data/_sass/skins/preptor.scss +6 -15
  216. data/_sass/skins/pulse.scss +158 -0
  217. data/_sass/skins/skeeblu.scss +6 -17
  218. data/_sass/skins/sketchy.scss +3 -746
  219. data/_sass/skins/slate.scss +3 -0
  220. data/_sass/skins/solar.scss +3 -0
  221. data/_sass/skins/sunset.scss +6 -11
  222. data/_sass/skins/towards.scss +44 -5
  223. data/_sass/skins/twitter-dim.scss +60 -13
  224. data/_sass/skins/twitter-lights-out.scss +44 -11
  225. data/_sass/skins/twitter.scss +51 -10
  226. data/_sass/skins/united.scss +3 -0
  227. data/_sass/skins/universal.scss +46 -27
  228. data/_sass/skins/wandoo.scss +7 -12
  229. data/_sass/skins/yeti.scss +3 -0
  230. data/_sass/vendor/bootswatch/LICENSE +21 -0
  231. data/_sass/vendor/bootswatch/LICENSE-4.5.0 +21 -0
  232. data/_sass/vendor/bootswatch/README.md +57 -0
  233. data/_sass/vendor/bootswatch/cerulean/_bootswatch.scss +102 -0
  234. data/_sass/vendor/bootswatch/cerulean/_variables.scss +57 -0
  235. data/_sass/vendor/bootswatch/cyborg/_bootswatch.scss +330 -0
  236. data/_sass/vendor/bootswatch/cyborg/_variables.scss +169 -0
  237. data/_sass/vendor/bootswatch/darkly/_bootswatch.scss +247 -0
  238. data/_sass/vendor/bootswatch/darkly/_variables.scss +164 -0
  239. data/_sass/vendor/bootswatch/flatly/_bootswatch.scss +274 -0
  240. data/_sass/vendor/bootswatch/flatly/_variables.scss +106 -0
  241. data/_sass/vendor/bootswatch/journal/_bootswatch.scss +62 -0
  242. data/_sass/vendor/bootswatch/journal/_variables.scss +60 -0
  243. data/_sass/vendor/bootswatch/litera/_bootswatch.scss +268 -0
  244. data/_sass/vendor/bootswatch/litera/_variables.scss +96 -0
  245. data/_sass/vendor/bootswatch/lux/_bootswatch.scss +191 -0
  246. data/_sass/vendor/bootswatch/lux/_variables.scss +103 -0
  247. data/_sass/vendor/bootswatch/materia/_bootswatch.scss +747 -0
  248. data/_sass/vendor/bootswatch/materia/_variables.scss +129 -0
  249. data/_sass/vendor/bootswatch/minty/_bootswatch.scss +380 -0
  250. data/_sass/vendor/bootswatch/minty/_variables.scss +94 -0
  251. data/_sass/vendor/bootswatch/pulse/_bootswatch.scss +145 -0
  252. data/_sass/vendor/bootswatch/pulse/_variables.scss +96 -0
  253. data/_sass/vendor/bootswatch/sketchy/_bootswatch.scss +492 -0
  254. data/_sass/vendor/bootswatch/sketchy/_variables.scss +172 -0
  255. data/_sass/vendor/bootswatch/slate/_bootswatch.scss +531 -0
  256. data/_sass/vendor/bootswatch/slate/_variables.scss +163 -0
  257. data/_sass/vendor/bootswatch/solar/_bootswatch.scss +243 -0
  258. data/_sass/vendor/bootswatch/solar/_variables.scss +171 -0
  259. data/_sass/vendor/bootswatch/source.json +86 -0
  260. data/_sass/vendor/bootswatch/united/_bootswatch.scss +10 -0
  261. data/_sass/vendor/bootswatch/united/_variables.scss +54 -0
  262. data/_sass/vendor/bootswatch/yeti/_bootswatch.scss +586 -0
  263. data/_sass/vendor/bootswatch/yeti/_variables.scss +110 -0
  264. data/_sass/vendor/tophat/LICENSE +21 -0
  265. data/_sass/vendor/tophat/README.md +38 -0
  266. data/_sass/vendor/tophat/deeply/_styles.scss +6 -0
  267. data/_sass/vendor/tophat/deeply/_variables.scss +73 -0
  268. data/_sass/vendor/tophat/deeply/theme.scss +77 -0
  269. data/_sass/vendor/tophat/electro/_styles.scss +5 -0
  270. data/_sass/vendor/tophat/electro/_variables.scss +23 -0
  271. data/_sass/vendor/tophat/electro/theme.scss +28 -0
  272. data/_sass/vendor/tophat/graymor/_styles.scss +5 -0
  273. data/_sass/vendor/tophat/graymor/_variables.scss +18 -0
  274. data/_sass/vendor/tophat/graymor/theme.scss +24 -0
  275. data/_sass/vendor/tophat/hootstrap/_styles.scss +5 -0
  276. data/_sass/vendor/tophat/hootstrap/_variables.scss +14 -0
  277. data/_sass/vendor/tophat/hootstrap/theme.scss +18 -0
  278. data/_sass/vendor/tophat/lymcha/_styles.scss +5 -0
  279. data/_sass/vendor/tophat/lymcha/_variables.scss +13 -0
  280. data/_sass/vendor/tophat/lymcha/theme.scss +16 -0
  281. data/_sass/vendor/tophat/mickie/_styles.scss +5 -0
  282. data/_sass/vendor/tophat/mickie/_variables.scss +13 -0
  283. data/_sass/vendor/tophat/mickie/theme.scss +17 -0
  284. data/_sass/vendor/tophat/minco/_styles.scss +5 -0
  285. data/_sass/vendor/tophat/minco/_variables.scss +14 -0
  286. data/_sass/vendor/tophat/minco/theme.scss +18 -0
  287. data/_sass/vendor/tophat/monotone/_styles.scss +5 -0
  288. data/_sass/vendor/tophat/monotone/_variables.scss +14 -0
  289. data/_sass/vendor/tophat/monotone/theme.scss +18 -0
  290. data/_sass/vendor/tophat/preptor/_styles.scss +5 -0
  291. data/_sass/vendor/tophat/preptor/_variables.scss +14 -0
  292. data/_sass/vendor/tophat/preptor/theme.scss +18 -0
  293. data/_sass/vendor/tophat/skeeblu/_styles.scss +5 -0
  294. data/_sass/vendor/tophat/skeeblu/_variables.scss +17 -0
  295. data/_sass/vendor/tophat/skeeblu/theme.scss +22 -0
  296. data/_sass/vendor/tophat/source.json +57 -0
  297. data/_sass/vendor/tophat/sunset/_styles.scss +5 -0
  298. data/_sass/vendor/tophat/sunset/_variables.scss +13 -0
  299. data/_sass/vendor/tophat/sunset/theme.scss +16 -0
  300. data/_sass/vendor/tophat/wandoo/_styles.scss +5 -0
  301. data/_sass/vendor/tophat/wandoo/_variables.scss +18 -0
  302. data/_sass/vendor/tophat/wandoo/theme.scss +24 -0
  303. data/assets/atom.xml +10 -6
  304. data/assets/css/dark/highlighter.scss +10 -0
  305. data/assets/css/dark/main.scss +43 -0
  306. data/assets/css/highlighter.scss +6 -1
  307. data/assets/css/main.scss +12 -3
  308. data/assets/css/search-fusejs.css +14 -0
  309. data/assets/css/search-lunr.css +7 -0
  310. data/assets/js/better404/better404.js +68 -0
  311. data/assets/js/ch_ytdefer/ch_ytdefer.js +27 -83
  312. data/assets/js/chulapa_carousel.js +115 -0
  313. data/assets/js/chulapa_mermaid.js +31 -0
  314. data/assets/js/chulapa_navigation.js +71 -0
  315. data/assets/js/chulapa_photoswipe.js +106 -0
  316. data/assets/js/chulapa_script.js +199 -77
  317. data/assets/js/chulapa_search.js +89 -0
  318. data/assets/js/clipboard/chulapa_clipboard.js +17 -108
  319. data/assets/js/cusdis/chulapa_cusdis.js +1 -1
  320. data/assets/js/fusejs/fusejs-search.js +62 -0
  321. data/assets/js/fusejs/fusejs-search.min.js +4 -0
  322. data/assets/js/fusejs/fusejs-store.js +43 -0
  323. data/assets/js/lunr/lunr-search.js +127 -115
  324. data/assets/js/lunr/lunr-search.min.js +4 -0
  325. data/assets/js/lunr/lunr-store.js +31 -23
  326. data/assets/js/simplesearch/simplesearch-store.json +45 -0
  327. data/assets/rss.xml +4 -3
  328. metadata +220 -8
  329. data/_sass/highlight/UNLICENSE.txt +0 -24
@@ -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
+ }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Specific classes and formats for chulapa
3
3
  */
4
- .chulapa {
4
+ .chulapa {
5
5
  font-family: chulapa, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
6
6
  Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
7
7
  "Segoe UI Symbol", "Noto Color Emoji";
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  .chulapa-footer-brand {
20
- font-size: $font-size-base * .8;
20
+ font-size: $font-size-base * 0.8;
21
21
  }
22
22
 
23
23
  .chulapa-bg-transparent {
@@ -143,6 +143,7 @@
143
143
 
144
144
  @include hover-focus() {
145
145
  color: $navbar-chulapa-hover-color;
146
+ background-color: $navbar-chulapa-hover-bg-color;
146
147
  }
147
148
 
148
149
  &.disabled {
@@ -371,13 +372,13 @@
371
372
  );
372
373
 
373
374
  a {
374
- color: $footer-chulapa-hover-color;
375
+ color: $footer-chulapa-link-color;
375
376
  text-decoration: none;
376
377
 
377
378
  font-weight: $font-weight-bold;
378
379
 
379
380
  @include hover-focus() {
380
- color: $footer-chulapa-text-color;
381
+ color: $footer-chulapa-hover-color;
381
382
  }
382
383
  }
383
384
 
@@ -541,9 +542,9 @@
541
542
  }
542
543
  .chulapa-toc-wrapper {
543
544
  .list-group-item {
544
- background-color: $light;
545
+ background-color: $chulapa-toc-bg;
545
546
  a {
546
- color: color-contrast($light);
547
+ color: color-contrast($chulapa-toc-bg);
547
548
  }
548
549
  &:first-child {
549
550
  @include border-top-radius($border-radius-lg);
@@ -557,6 +558,14 @@
557
558
  }
558
559
  }
559
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
+
560
569
  .chulapa-toc-reset {
561
570
  border: 0;
562
571
  ul {
@@ -602,7 +611,7 @@
602
611
  background-color: $landingpage-chulapa-bg-color;
603
612
  header {
604
613
  color: $landingpage-chulapa-text-color;
605
- a {
614
+ a:not([class]) {
606
615
  color: $landingpage-chulapa-text-color;
607
616
  }
608
617
  }
@@ -623,7 +632,7 @@
623
632
  }
624
633
  }
625
634
 
626
- a {
635
+ a:not([class]) {
627
636
  color: mix($info, $landingpage-chulapa-text-color, 50%);
628
637
  }
629
638
 
@@ -651,6 +660,49 @@
651
660
  }
652
661
  }
653
662
 
663
+ .chulapa-toc-wrapper .list-group-item {
664
+ background-color: $landingpage-card-bg;
665
+
666
+ a {
667
+ color: $landingpage-chulapa-text-color;
668
+ }
669
+ }
670
+ blockquote {
671
+ background-color: $landingpage-card-bg;
672
+ color: $landingpage-chulapa-text-color;
673
+ }
674
+
675
+ .nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
676
+ background-color: $landingpage-card-bg;
677
+ color: $landingpage-chulapa-text-color;
678
+ }
679
+
680
+ .breadcrumb, .page-link, .card, .toast, .toast-header, .toast-body, .progress, .jumbotron, .list-group-item, #markdown-toc li {
681
+ background-color: $landingpage-card-bg;
682
+
683
+ }
684
+
685
+ .close {
686
+ color: $white;
687
+ text-shadow: none;
688
+ }
689
+
690
+ .page-item.disabled {
691
+ background-color: $landingpage-chulapa-bg-color;
692
+ .page-link {
693
+ background-color: $landingpage-chulapa-bg-color;
694
+
695
+ &.chulapa-label {
696
+ color: mix($dark, $landingpage-chulapa-text-color, 40%);
697
+ }
698
+ }
699
+ }
700
+
701
+
702
+ .card.bg-light {
703
+ color: $landingpage-chulapa-bg-color;
704
+ }
705
+
654
706
  @each $color, $value in $theme-colors {
655
707
  .chulapa-pill-bg-#{$color} {
656
708
  @include badge-variant($value);
@@ -692,7 +744,7 @@
692
744
 
693
745
  //Navbar modern
694
746
  .navbar-chulapa-fab {
695
- label {
747
+ button {
696
748
  line-height: unset;
697
749
  }
698
750
 
@@ -729,6 +781,8 @@
729
781
  z-index: 15000;
730
782
  opacity: 0;
731
783
  width: 0;
784
+ visibility: hidden;
785
+ overflow-y: auto;
732
786
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
733
787
  }
734
788
 
@@ -771,7 +825,8 @@
771
825
  color: $navbar-chulapa-text-color;
772
826
 
773
827
  &:link,
774
- &:visited {
828
+ &:visited,
829
+ &.dropdown-toggle {
775
830
  display: inline-block;
776
831
  background-image: linear-gradient(
777
832
  120deg,
@@ -827,13 +882,14 @@
827
882
  }
828
883
  }
829
884
 
830
- &-button:checked ~ &-background {
885
+ &-button[aria-expanded="true"] ~ &-background {
831
886
  transform: scale(80);
832
887
  }
833
888
 
834
- &-button:checked ~ &-nav {
889
+ &-button[aria-expanded="true"] ~ &-nav {
835
890
  opacity: 1;
836
891
  width: 100%;
892
+ visibility: visible;
837
893
 
838
894
  .navbar-nav {
839
895
  transform: translate(100vw, -50%);
@@ -869,16 +925,16 @@
869
925
  }
870
926
  }
871
927
 
872
- &-button:checked + .navbar-toggler .navbar-toggler-icon {
928
+ &-button[aria-expanded="true"] .navbar-toggler-icon {
873
929
  background-color: transparent;
874
930
  }
875
931
 
876
- &-button:checked + .navbar-toggler .navbar-toggler-icon::before {
932
+ &-button[aria-expanded="true"] .navbar-toggler-icon::before {
877
933
  top: 0;
878
934
  transform: rotate(135deg);
879
935
  }
880
936
 
881
- &-button:checked + .navbar-toggler .navbar-toggler-icon::after {
937
+ &-button[aria-expanded="true"] .navbar-toggler-icon::after {
882
938
  top: 0;
883
939
  transform: rotate(-135deg);
884
940
  }
@@ -918,7 +974,8 @@ h6 {
918
974
  }
919
975
  }
920
976
 
921
- &:hover .chulapa-header-link {
977
+ &:hover .chulapa-header-link,
978
+ .chulapa-header-link:focus {
922
979
  opacity: 1;
923
980
  }
924
981
  }
@@ -954,6 +1011,13 @@ h6 {
954
1011
  object-fit: contain;
955
1012
  }
956
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
+
957
1021
  .chulapa-border-card-index {
958
1022
  border-color: $indexcards-chulapa-border-color;
959
1023
  }
@@ -1011,7 +1075,6 @@ h6 {
1011
1075
  }
1012
1076
 
1013
1077
  &:focus {
1014
- outline: 0;
1015
1078
  text-shadow: none;
1016
1079
  }
1017
1080
  }
@@ -1046,10 +1109,10 @@ h6 {
1046
1109
  // Classes for qusdis
1047
1110
 
1048
1111
  @mixin ch_bcolor($color1, $color2) {
1049
- @if $color1==$color2 {
1050
- @extend .btn-secondary;
1112
+ @if $color1==$color2 {
1113
+ @extend .btn-secondary;
1051
1114
  } @else {
1052
- @extend .btn-primary;
1115
+ @extend .btn-primary;
1053
1116
  }
1054
1117
  }
1055
1118
 
@@ -1120,7 +1183,10 @@ $cusdis-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1120
1183
  font-weight: $font-weight-normal;
1121
1184
  @extend .btn;
1122
1185
  @extend .btn-sm;
1123
- @include button-variant($footer-chulapa-bg-color,$footer-chulapa-text-color);
1186
+ @include button-variant(
1187
+ $footer-chulapa-bg-color,
1188
+ $footer-chulapa-text-color
1189
+ );
1124
1190
  }
1125
1191
  }
1126
1192
  }
@@ -1157,15 +1223,17 @@ $wlc-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1157
1223
  font-weight: $font-weight-bold;
1158
1224
  }
1159
1225
  //Time
1160
- .welcomments__comment-time {
1226
+ .welcomments__comment-time {
1161
1227
  @extend time;
1162
1228
  time {
1163
1229
  color: $footer-chulapa-text-color;
1164
1230
  font-weight: $font-weight-normal;
1165
- }
1231
+ }
1166
1232
  }
1167
1233
 
1168
- .welcomments__comment .welcomments__comment-message, .welcomments__email-notice, .welcomments__markdown-notice {
1234
+ .welcomments__comment .welcomments__comment-message,
1235
+ .welcomments__email-notice,
1236
+ .welcomments__markdown-notice {
1169
1237
  color: $wlc-text-color;
1170
1238
  font-weight: $font-weight-normal;
1171
1239
  pre {
@@ -1174,7 +1242,7 @@ $wlc-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1174
1242
  a {
1175
1243
  color: $wlc-text-color;
1176
1244
  @include hover-focus() {
1177
- color: $footer-chulapa-hover-color;
1245
+ color: $footer-chulapa-hover-color;
1178
1246
  }
1179
1247
  }
1180
1248
  }
@@ -1195,7 +1263,7 @@ $wlc-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1195
1263
  @include button-variant(
1196
1264
  $footer-chulapa-bg-color,
1197
1265
  $footer-chulapa-text-color
1198
- );
1266
+ );
1199
1267
  }
1200
1268
 
1201
1269
  input,
@@ -1219,52 +1287,122 @@ $wlc-text-color: color-contrast($footer-chulapa-bg-color, $black, $white);
1219
1287
  font-family: $headings-font-family;
1220
1288
  @include ch_bcolor($primary, $footer-chulapa-bg-color);
1221
1289
  }
1222
-
1290
+
1223
1291
  .welcomments__form-group {
1224
1292
  @extend .form-group;
1225
1293
  }
1226
-
1227
1294
  }
1228
1295
 
1229
1296
  // For disqus recommendations
1230
1297
  #disqus_recommendations {
1231
- width: 100%;
1298
+ width: 100%;
1232
1299
  }
1233
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
+ }
1234
1311
 
1235
- // For applause button
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
+ }
1236
1321
 
1237
- applause-button {
1238
-
1239
- div.style-root {
1240
- fill: $body-color !important;
1241
- stroke: $body-color !important;
1242
- color: $body-color !important;
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;
1243
1331
  }
1244
-
1245
- .count-container {
1246
- top: -60% !important;
1247
- color: $body-color !important;
1248
- }
1249
-
1250
- &.clap-limit-exceeded div {
1251
- fill: $info !important;
1252
- stroke: $info !important;
1253
- color: $info !important;
1254
- }
1255
1332
  }
1256
1333
 
1257
- .chulapa-bg-landingpage {
1258
- applause-button {
1259
- div.style-root {
1260
- fill: $landingpage-chulapa-text-color !important;
1261
- stroke: $landingpage-chulapa-text-color !important;
1262
- color: $landingpage-chulapa-text-color !important;
1263
- }
1264
-
1265
- .count-container {
1266
- color: $landingpage-chulapa-text-color !important;
1267
- }
1268
- }
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;
1269
1339
  }
1270
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
+ }
@@ -12,6 +12,26 @@ h1,h2,h3,h4,h5,h6{
12
12
  margin-top:$spacer;
13
13
  }
14
14
 
15
+ // On cards these headings should be margin-top: 0 to adjust the sizes
16
+ // Also reset images
17
+ .card {
18
+ h1,h2,h3,h4,h5,h6{
19
+ margin-top:0;
20
+ }
21
+ img {
22
+ max-width: 100%;
23
+ }
24
+ }
25
+ .card-img-top {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+
30
+ .card-img-bottom {
31
+ border-top-left-radius: 0;
32
+ border-top-right-radius: 0;
33
+ }
34
+
15
35
  img {
16
36
  max-width: 95%;
17
37
  height: auto;
@@ -123,3 +143,14 @@ pre {
123
143
 
124
144
  }
125
145
  }
146
+
147
+ // Native checks in forms
148
+ .form-check-input {
149
+ color: $primary;
150
+ accent-color: currentcolor;
151
+ }
152
+
153
+ img.rounded-pill {
154
+ padding-right: 0;
155
+ padding-left: 0;
156
+ }
@@ -0,0 +1 @@
1
+ @include chulapa-theme-selector-styles;
@@ -3,6 +3,7 @@ $navbar-chulapa-bg-color: $primary !default;
3
3
  $navbar-chulapa-text-contrast: color-contrast($navbar-chulapa-bg-color, $black, $white);
4
4
  $navbar-chulapa-text-color: mix($navbar-chulapa-text-contrast, $navbar-chulapa-bg-color, 50%) !default;
5
5
  $navbar-chulapa-hover-color: mix($navbar-chulapa-text-contrast, $navbar-chulapa-bg-color, 75%) !default;
6
+ $navbar-chulapa-hover-bg-color: mix($navbar-chulapa-text-contrast, $navbar-chulapa-bg-color, 10%) !default;
6
7
  $navbar-chulapa-active-color: $navbar-chulapa-text-contrast !default;
7
8
  $navbar-chulapa-disabled-color: mix($navbar-chulapa-text-contrast, $navbar-chulapa-bg-color, 20%) !default;
8
9
  $navbar-chulapa-brand-color: $navbar-chulapa-active-color !default;
@@ -17,7 +18,8 @@ $navbar-chulapa-toggler-border-color: $navbar-chulapa-toggler-color !default;
17
18
  $footer-chulapa-bg-color: $navbar-chulapa-bg-color !default;
18
19
  $footer-chulapa-text-contrast: color-contrast($footer-chulapa-bg-color, $black, $white);
19
20
  $footer-chulapa-text-color: mix($footer-chulapa-text-contrast, $footer-chulapa-bg-color, 75%) !default;
20
- $footer-chulapa-hover-color: mix($footer-chulapa-text-contrast, $footer-chulapa-bg-color, 90%) !default;
21
+ $footer-chulapa-link-color: mix($footer-chulapa-text-contrast, $footer-chulapa-bg-color, 90%) !default;
22
+ $footer-chulapa-hover-color: mix($footer-chulapa-link-color, $footer-chulapa-bg-color, 80%) !default;
21
23
  $footer-chulapa-icon-color: $footer-chulapa-text-color !default;
22
24
  $footer-chulapa-icon-hover-color: mix($footer-chulapa-text-contrast, $footer-chulapa-bg-color, 50%) !default;
23
25
 
@@ -28,6 +30,7 @@ $hero-chulapa-text-color: color-contrast($hero-chulapa-bg-color, $black, $white)
28
30
  //Landing page
29
31
  $landingpage-chulapa-bg-color: $hero-chulapa-bg-color !default;
30
32
  $landingpage-chulapa-text-color: color-contrast($landingpage-chulapa-bg-color, $black, $white) !default;
33
+ $landingpage-card-bg: mix($landingpage-chulapa-text-color, $landingpage-chulapa-bg-color, 5%);
31
34
 
32
35
  //Misc
33
36
  //Blockquote
@@ -53,6 +56,10 @@ $pagination-chulapa-text-hover-color: color-contrast($pagination-chulapa-bg-hove
53
56
 
54
57
  $indexcards-chulapa-border-color: $text-muted !default;
55
58
 
59
+ // TOC bg
60
+
61
+ $chulapa-toc-bg: $light !default;
62
+
56
63
  // Cactus comments
57
64
 
58
65
  $cactus-btn-text: color-contrast($secondary, $black, $white);