jekyll-theme-centos 2.52.0.beta.83 → 2.52.0.beta.84

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: 0cf3a51f86b5b37edd976e33464e8235465850f3aada657a9798274233eadf14
4
- data.tar.gz: f2058cae68b38ae23051d21b87c8712be5c916c773c455e277d50f00bb1c805f
3
+ metadata.gz: 448a42486b828fbecd350515f5e057af86a319c9c9c30ccf3a7453987ecede97
4
+ data.tar.gz: 4a6cb2d918da78ce6878b9ebf7b1e55247e051165d41e98efba7df40a3798623
5
5
  SHA512:
6
- metadata.gz: d5cc7b7d944bf1c58348026069a61b56de3dcf03e1c4710fea33867136c43acf523a2cbf86864eae8aab40a39e4ec5b284673fbde0e1c64d7e5b7d371168db77
7
- data.tar.gz: da2d50de5f511655c5fc26aa8d03f0e3b0e820ed89db6e7a0068bac84de3fd7c1637bfb740b6046b993f17f341e039ea2d2bf774e2306335f43f5164d7deef47
6
+ metadata.gz: 46997dc9b5bbf89c184eafa06f6f7200d543426bdb124c2dadfc22a13e33dbe30e7ed30e7c2a0c12f433ee40b46b0451fe5f4168c72d6a888e349f63259e2526
7
+ data.tar.gz: 254fd2c07eada323cf5ec6e734651880b55b13f2a8fd6efd4fad8c4b5b0c71870d2e3efbbad00329c90f230af99fc2cda1a8e005013bceec251213f006cac14c
@@ -242,7 +242,8 @@ main {
242
242
  height: 1lh;
243
243
  display: flex;
244
244
  align-items: center;
245
- transform: translateX(-100%);
245
+ transform: translateX(calc(-100% - #{$spacer * 0.5}));
246
+ transition: transform 200ms ease-out, opacity 200ms ease-out;
246
247
  font-size: 1em;
247
248
  margin-left: 0 !important;
248
249
  margin-right: 0 !important;
@@ -270,13 +271,21 @@ main {
270
271
  .content > h4:hover .heading-anchor,
271
272
  .content > h5:hover .heading-anchor,
272
273
  .content > h6:hover .heading-anchor,
273
- .heading-anchor:focus {
274
+ .content > h1 .heading-anchor:focus,
275
+ .content > h2 .heading-anchor:focus,
276
+ .content > h3 .heading-anchor:focus,
277
+ .content > h4 .heading-anchor:focus,
278
+ .content > h5 .heading-anchor:focus,
279
+ .content > h6 .heading-anchor:focus {
274
280
  opacity: 1;
281
+ transform: translateX(-100%);
275
282
  }
276
- .heading-anchor.is-active,
277
- .heading-anchor.is-active i {
283
+ .heading-anchor.is-active {
278
284
  opacity: 1 !important;
279
285
  visibility: visible !important;
286
+ transform: translateX(-100%) !important;
287
+ }
288
+ .heading-anchor.is-active i {
280
289
  color: var(--bs-primary);
281
290
  }
282
291
 
@@ -73,6 +73,7 @@ document.addEventListener('DOMContentLoaded', () => {
73
73
 
74
74
  anchor.addEventListener('click', async (e) => {
75
75
  e.preventDefault()
76
+ anchor.closest('h1, h2, h3, h4, h5, h6')?.scrollIntoView()
76
77
  if (isLocked) return
77
78
 
78
79
  if (!navigator.clipboard) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.52.0.beta.83
4
+ version: 2.52.0.beta.84
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alain Reguera Delgado