al_folio_core 1.0.4 → 1.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af6ef2628760004262fc0a4af6b03c55e4cd4c25c7be638d7bdd6c60954cf4b1
4
- data.tar.gz: b26e87c086ddd099bcfd91bc14cfcbfa84b9340cd70ddb1548586951151d4d61
3
+ metadata.gz: 566d64497199ae021c6b80241c4bf25791fb6447a7e22ee0232fb74e2cd915bb
4
+ data.tar.gz: 149241d6a27b9e51737e6b437c339c270f64abc379e0c2664976c200af94fb37
5
5
  SHA512:
6
- metadata.gz: da5cc4a13562f97f0c0a7930620c616a1cd95d8022d070beb6cac66cbe91aa16f964dca91df7ee55fbe2f75ace2c03a454d064b782f2d33c267e59da8c9b7c71
7
- data.tar.gz: cdc0e5b066d1aa470af9abacd227129b32bed674c43ef4d7b3a8d4c790d58b68323273290528df572bc85c9a7a69d30760e70af285eda1a60c41059c2dad3e2e
6
+ metadata.gz: 2eba8f9aeebd03783e40e1833ceba8990bae51bb068065603c8f9bba6d24c8286c11f14d5366021a7295cbb3e8dd5a565bbc65a752868e8dbe758d1f34a284b1
7
+ data.tar.gz: 6dccbdc6e0ab582dcf00a5fe0dc64ecb8418bc97f9d6051dbb214ca6a1a28f217429ca8c5d51ec0cbf472007ba4c2da1041da61d212e10c10f70bedc2723a4b4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.5 - 2026-02-18
4
+
5
+ - Restored right-aligned desktop navbar menu layout with explicit core-owned alignment classes.
6
+ - Matched inline code typography more closely to legacy sizing/weight while preserving code-block styling.
7
+ - Normalized related-post recommendation links to regular font weight.
8
+ - Fixed Tocbot sidebar visual clashes by removing competing custom rails and scoping active/hover indicators cleanly.
9
+
3
10
  ## 1.0.4 - 2026-02-17
4
11
 
5
12
  - Fixed related-posts HTML structure to render valid list markup.
@@ -26,7 +26,7 @@
26
26
  {% endif %}
27
27
  <!-- Navbar Toggle -->
28
28
  <button
29
- class="navbar-toggler collapsed ml-auto"
29
+ class="navbar-toggler collapsed navbar-toggler-main"
30
30
  type="button"
31
31
  data-nav-toggle="navbarNav"
32
32
  aria-controls="navbarNav"
@@ -39,8 +39,8 @@
39
39
  <span class="icon-bar bottom-bar"></span>
40
40
  </button>
41
41
 
42
- <div class="collapse navbar-collapse text-right" id="navbarNav">
43
- <ul class="navbar-nav ml-auto flex-nowrap">
42
+ <div class="collapse navbar-collapse navbar-collapse-main" id="navbarNav">
43
+ <ul class="navbar-nav navbar-menu-list flex-nowrap">
44
44
  {% for page in site.pages %}
45
45
  {% if page.permalink == '/' %} {% assign about_title = page.title %} {% endif %}
46
46
  {% endfor %}
@@ -13,12 +13,12 @@
13
13
  {% for post in related_posts %}
14
14
  <li class="leading-relaxed">
15
15
  {% if post.redirect == blank %}
16
- <a class="font-semibold underline decoration-1 hover:text-[var(--global-hover-color)]" href="{{ post.url | relative_url }}">
16
+ <a class="underline decoration-1 hover:text-[var(--global-hover-color)]" href="{{ post.url | relative_url }}">
17
17
  {{- post.title -}}
18
18
  </a>
19
19
  {% elsif post.redirect contains '://' %}
20
20
  <a
21
- class="font-semibold underline decoration-1 hover:text-[var(--global-hover-color)]"
21
+ class="underline decoration-1 hover:text-[var(--global-hover-color)]"
22
22
  href="{{ post.redirect }}"
23
23
  target="_blank"
24
24
  rel="noopener noreferrer"
@@ -29,7 +29,7 @@
29
29
  <path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path>
30
30
  </svg>
31
31
  {% else %}
32
- <a class="font-semibold underline decoration-1 hover:text-[var(--global-hover-color)]" href="{{ post.redirect | relative_url }}">
32
+ <a class="underline decoration-1 hover:text-[var(--global-hover-color)]" href="{{ post.redirect | relative_url }}">
33
33
  {{- post.title -}}
34
34
  </a>
35
35
  {% endif %}
@@ -29,14 +29,14 @@
29
29
  <div class="col-sm-9">{{ content }}</div>
30
30
  <!-- sidebar, which will move to the top on a small screen -->
31
31
  <div class="col-sm-3">
32
- <nav id="toc-sidebar" class="sticky-top toc-sidebar" aria-label="Table of contents"></nav>
32
+ <nav id="toc-sidebar" class="sticky-top toc toc-sidebar" aria-label="Table of contents"></nav>
33
33
  </div>
34
34
  </div>
35
35
  {% else %}
36
36
  <div class="row">
37
37
  <!-- sidebar, which will move to the top on a small screen -->
38
38
  <div class="col-sm-3">
39
- <nav id="toc-sidebar" class="sticky-top toc-sidebar" aria-label="Table of contents"></nav>
39
+ <nav id="toc-sidebar" class="sticky-top toc toc-sidebar" aria-label="Table of contents"></nav>
40
40
  </div>
41
41
  <!-- main content area -->
42
42
  <div class="col-sm-9">{{ content }}</div>
data/_sass/_navbar.scss CHANGED
@@ -9,6 +9,34 @@
9
9
  border-bottom: 1px solid var(--global-divider-color);
10
10
  background-color: var(--global-bg-color);
11
11
  opacity: 0.95;
12
+
13
+ .navbar-collapse-main {
14
+ justify-content: flex-end;
15
+ text-align: right;
16
+ }
17
+
18
+ .navbar-menu-list {
19
+ margin-left: auto;
20
+ align-items: center;
21
+ }
22
+ }
23
+
24
+ @media (max-width: 575.98px) {
25
+ .navbar {
26
+ .navbar-toggler-main {
27
+ margin-left: auto;
28
+ }
29
+
30
+ .navbar-collapse-main {
31
+ text-align: left;
32
+ }
33
+
34
+ .navbar-menu-list {
35
+ margin-left: 0;
36
+ align-items: flex-start;
37
+ width: 100%;
38
+ }
39
+ }
12
40
  }
13
41
 
14
42
  .navbar .dropdown-menu,
@@ -55,6 +55,12 @@ code {
55
55
  word-wrap: break-word;
56
56
  }
57
57
 
58
+ :not(pre) > code {
59
+ font-size: 0.82em;
60
+ font-weight: 400;
61
+ padding: 2px 4px;
62
+ }
63
+
58
64
  // Progress bars
59
65
 
60
66
  progress {
@@ -280,52 +286,73 @@ table[data-toggle="table"].af-table-enhanced tbody tr.af-row-selected {
280
286
  #toc-sidebar {
281
287
  z-index: 1;
282
288
  top: 5rem;
283
- padding-left: 0.35rem;
284
- border-left: 1px solid var(--global-divider-color);
289
+
290
+ &.toc > .toc-list {
291
+ overflow: hidden;
292
+ position: relative;
293
+ }
285
294
 
286
295
  .toc-list {
287
296
  list-style: none;
288
297
  margin: 0;
289
- padding-left: 0;
298
+ padding-left: 0.9rem;
290
299
  }
291
300
 
292
301
  .toc-list .toc-list {
293
- border-left: 1px solid color-mix(in srgb, var(--global-divider-color) 85%, transparent);
294
302
  margin-top: 0.15rem;
295
- margin-left: 0.2rem;
296
- padding-left: 0.75rem;
303
+ margin-left: 0.55rem;
304
+ padding-left: 0.8rem;
297
305
  }
298
306
 
299
307
  .toc-link {
300
308
  color: var(--global-text-color);
301
309
  display: block;
302
- font-size: 0.82rem;
303
- line-height: 1.38;
310
+ position: relative;
311
+ font-size: 0.78rem;
312
+ line-height: 1.4;
304
313
  margin: 0.12rem 0;
305
- padding: 0.13rem 0.4rem 0.13rem 0.55rem;
306
- border-left: 2px solid transparent;
314
+ padding: 0.14rem 0.35rem 0.14rem 0.55rem;
315
+ border-left: 0;
307
316
  transition:
308
- border-color 0.2s ease,
309
317
  color 0.2s ease,
310
- transform 0.2s ease;
318
+ font-weight 0.2s ease;
319
+ transform: none;
320
+
321
+ &::before {
322
+ background-color: color-mix(in srgb, var(--global-divider-color) 85%, transparent);
323
+ bottom: 0;
324
+ left: 0;
325
+ margin-top: 0;
326
+ top: 0;
327
+ width: 2px;
328
+ }
311
329
 
312
330
  &:hover {
313
331
  color: var(--global-hover-color);
314
- border-left-color: var(--global-hover-color);
315
332
  text-decoration: none;
316
- transform: translateX(2px);
333
+ transform: none;
334
+
335
+ &::before {
336
+ background-color: var(--global-hover-color);
337
+ }
317
338
  }
318
339
  }
319
340
 
320
341
  .toc-link.is-active-link {
321
342
  color: var(--global-theme-color);
322
- border-left-color: var(--global-theme-color);
323
343
  font-weight: 600;
324
- transform: translateX(3px);
344
+ transform: none;
345
+
346
+ &::before {
347
+ background-color: var(--global-theme-color);
348
+ }
325
349
 
326
350
  &:hover {
327
351
  color: var(--global-hover-color);
328
- border-left-color: var(--global-hover-color);
352
+
353
+ &::before {
354
+ background-color: var(--global-hover-color);
355
+ }
329
356
  }
330
357
  }
331
358
  }
@@ -355,7 +382,7 @@ table[data-toggle="table"].af-table-enhanced tbody tr.af-row-selected {
355
382
  }
356
383
  }
357
384
 
358
- code {
385
+ :not(pre) > code {
359
386
  font-size: 0.875rem;
360
387
  padding: 2px 4px;
361
388
  }
@@ -375,7 +402,7 @@ table[data-toggle="table"].af-table-enhanced tbody tr.af-row-selected {
375
402
  }
376
403
  }
377
404
 
378
- code {
405
+ :not(pre) > code {
379
406
  font-size: 0.8rem;
380
407
  padding: 1px 3px;
381
408
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AlFolioCore
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_folio_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-folio maintainers