jekyll-theme-centos 2.52.0.beta.52 → 2.52.0.beta.53

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/_data/base/bits_schema.yml +5 -4
  3. data/_data/base/content_schema.yml +1 -1
  4. data/_data/base/footer.yml +9 -0
  5. data/_data/base/footer_schema.yml +55 -0
  6. data/_data/base/heading_anchor.yml +4 -0
  7. data/_data/base/heading_anchor_schema.yml +37 -0
  8. data/_data/base/link_schema.yml +101 -67
  9. data/_data/base/locales_schema.yml +1 -1
  10. data/_data/base/project_schema.yml +8 -4
  11. data/_data/base/title_schema.yml +1 -1
  12. data/_data/base/toc_schema.yml +16 -2
  13. data/_includes/base/announcement.html.liquid +19 -7
  14. data/_includes/base/artwork.html.liquid +18 -6
  15. data/_includes/base/backtotop.html.liquid +20 -6
  16. data/_includes/base/bits.html.liquid +31 -18
  17. data/_includes/base/breadcrumb.html.liquid +7 -1
  18. data/_includes/base/breakingnews.html.liquid +19 -7
  19. data/_includes/base/card.html.liquid +43 -29
  20. data/_includes/base/configuration-variables-nested.html.liquid +1 -1
  21. data/_includes/base/configuration-variables.html.liquid +3 -3
  22. data/_includes/base/copyright.html.liquid +18 -6
  23. data/_includes/base/copyvalue.html.liquid +19 -5
  24. data/_includes/base/datatable.html.liquid +20 -6
  25. data/_includes/base/event.html.liquid +33 -21
  26. data/_includes/base/fontawesome.html.liquid +21 -7
  27. data/_includes/base/footer.html.liquid +36 -29
  28. data/_includes/base/head.html.liquid +60 -68
  29. data/_includes/base/heading_anchor.html.liquid +62 -0
  30. data/_includes/base/highlight.html.liquid +19 -5
  31. data/_includes/base/link.html.liquid +47 -53
  32. data/_includes/base/locales.html.liquid +41 -30
  33. data/_includes/base/navbar.html.liquid +22 -12
  34. data/_includes/base/navindex.html.liquid +14 -2
  35. data/_includes/base/ogp.html.liquid +89 -75
  36. data/_includes/base/project.html.liquid +34 -22
  37. data/_includes/base/script.html.liquid +7 -19
  38. data/_includes/base/shortcut.html.liquid +32 -24
  39. data/_includes/base/social.html.liquid +33 -23
  40. data/_includes/base/sponsors-cards.html.liquid +17 -6
  41. data/_includes/base/sponsors-carousel.html.liquid +21 -8
  42. data/_includes/base/title.html.liquid +21 -10
  43. data/_includes/base/toc.html.liquid +2 -2
  44. data/_layouts/base/default.html +8 -8
  45. data/_sass/base/_customization.scss +47 -0
  46. data/assets/img/base/page-layout-default.png +0 -0
  47. data/assets/img/base/page-layout-default.svg +878 -1241
  48. data/assets/img/base/page-with-backtotop.png +0 -0
  49. data/assets/img/base/page-with-backtotop.svg +800 -573
  50. data/assets/img/base/page-with-copyright.png +0 -0
  51. data/assets/img/base/page-with-copyright.svg +818 -645
  52. data/assets/img/base/page-with-footer.png +0 -0
  53. data/assets/img/base/page-with-footer.svg +1018 -0
  54. data/assets/img/base/page-with-link.png +0 -0
  55. data/assets/img/base/page-with-link.svg +142 -139
  56. data/assets/img/base/page-with-locales.png +0 -0
  57. data/assets/img/base/page-with-locales.svg +795 -577
  58. data/assets/img/base/page-with-shortcut.png +0 -0
  59. data/assets/img/base/page-with-shortcut.svg +796 -569
  60. data/assets/img/base/page-with-social.png +0 -0
  61. data/assets/img/base/page-with-social.svg +811 -673
  62. data/assets/img/base/page-with-sponsors.png +0 -0
  63. data/assets/img/base/page-with-sponsors.svg +795 -568
  64. data/assets/js/base/heading-anchor.js +108 -0
  65. data/assets/js/base/init-tooltips.js +5 -4
  66. metadata +10 -3
  67. data/_data/base/toc_generator_schema.yml +0 -102
  68. /data/_includes/base/{toc_generator.html.liquid → toc-generator.html.liquid} +0 -0
@@ -1,9 +1,9 @@
1
1
  <!doctype html>
2
2
  <html lang="{{ page.lang | default: 'en' }}"{% if page.with_ogp %} prefix="og: https://ogp.me/ns#"{% endif %}>
3
- {% include base/head.html.liquid -%}
3
+ {% include base/partials/head.html.liquid -%}
4
4
  <body id="top" class="bg-body">
5
5
 
6
- {% include base/navbar.html.liquid -%}
6
+ {% include base/partials/navbar.html.liquid -%}
7
7
 
8
8
  {% include base/project.html.liquid %}
9
9
 
@@ -27,7 +27,7 @@
27
27
 
28
28
  {% if page.with_title %}
29
29
  <div class="row mb-3">
30
- <div class="{{ site.data.base.content.class | default: 'col' }}">
30
+ <div class="{{ site.data.base.partials.content.class | default: 'col' }}">
31
31
  {% include base/title.html.liquid %}
32
32
  </div>
33
33
  </div>
@@ -35,7 +35,7 @@
35
35
 
36
36
  {% if page.with_artwork %}
37
37
  <div class="row mb-3">
38
- <div class="{{ site.data.base.content.class | default: 'col' }}">
38
+ <div class="{{ site.data.base.partials.content.class | default: 'col' }}">
39
39
  {% include base/artwork.html.liquid %}
40
40
  </div>
41
41
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  {% if page.with_toc %}
45
45
  <div class="row mb-3">
46
- <div class="{{ site.data.base.content.class | default: 'col' }}">
46
+ <div class="{{ site.data.base.partials.content.class | default: 'col' }}">
47
47
  {% include base/toc.html.liquid %}
48
48
  </div>
49
49
  </div>
@@ -51,7 +51,7 @@
51
51
 
52
52
  {% if page.with_content %}
53
53
  <div class="row mb-3">
54
- <div class="{{ site.data.base.content.class | default: 'col' }} content">
54
+ <div class="{{ site.data.base.partials.content.class | default: 'col' }} content">
55
55
  {{ content }}
56
56
  </div>
57
57
  </div>
@@ -61,11 +61,11 @@
61
61
 
62
62
  {% if page.with_footer %}
63
63
  <footer class="footer small bg-dark text-centos-purple-100 pt-5">
64
- {% include base/footer.html.liquid -%}
64
+ {% include base/partials/footer.html.liquid -%}
65
65
  </footer>
66
66
  {% endif %}
67
67
 
68
- {% include base/script.html.liquid -%}
68
+ {% include base/partials/script.html.liquid -%}
69
69
 
70
70
  </body>
71
71
  </html>
@@ -176,6 +176,53 @@ main {
176
176
  scroll-margin-bottom: 100px;
177
177
  }
178
178
 
179
+ // -------------------------------------------------------------------------------
180
+ // Heading Anchor Component
181
+ // -------------------------------------------------------------------------------
182
+ // :has() guard: position context + right slot for the anchor icon.
183
+ // padding-right reserves space so the icon never overlaps heading text.
184
+ .content > h1:has(.heading-anchor),
185
+ .content > h2:has(.heading-anchor),
186
+ .content > h3:has(.heading-anchor),
187
+ .content > h4:has(.heading-anchor),
188
+ .content > h5:has(.heading-anchor),
189
+ .content > h6:has(.heading-anchor) {
190
+ position: relative;
191
+ padding-right: 1.5rem;
192
+ }
193
+ .content > h1 .heading-anchor,
194
+ .content > h2 .heading-anchor,
195
+ .content > h3 .heading-anchor,
196
+ .content > h4 .heading-anchor,
197
+ .content > h5 .heading-anchor,
198
+ .content > h6 .heading-anchor {
199
+ position: absolute;
200
+ right: 0;
201
+ top: 50%;
202
+ transform: translateY(-50%);
203
+ font-size: $font-size-base;
204
+ margin-left: 0 !important;
205
+ margin-right: 0 !important;
206
+ opacity: 0.2;
207
+ pointer-events: auto;
208
+ text-decoration: none;
209
+ }
210
+ .content > h1:hover .heading-anchor,
211
+ .content > h2:hover .heading-anchor,
212
+ .content > h3:hover .heading-anchor,
213
+ .content > h4:hover .heading-anchor,
214
+ .content > h5:hover .heading-anchor,
215
+ .content > h6:hover .heading-anchor,
216
+ .heading-anchor:focus {
217
+ opacity: 1;
218
+ }
219
+ .heading-anchor.is-active,
220
+ .heading-anchor.is-active i {
221
+ opacity: 1 !important;
222
+ visibility: visible !important;
223
+ color: var(--bs-primary);
224
+ }
225
+
179
226
  // Accordion containers' correction.
180
227
  //
181
228
  // When accessing accordion containers via internal anchor links, they wouldn't be