cybersynth-theme 0.1.2 → 0.1.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: 33ab9b605ddc0f39923693066941277006fd024d5cb08d317535e967692e9c47
4
- data.tar.gz: 363c0a7b146ce7150014081a1638a83e2008424dd31a88a3abe69d4b55cc5c7e
3
+ metadata.gz: 05aa26baff283480512f92de4203c7cb58e80438efe5ebc9439f2f73640e43b4
4
+ data.tar.gz: 5ca815409945cccf17f0be774062fe0894ecd92d9f92e15dcf10c380cc7cb76d
5
5
  SHA512:
6
- metadata.gz: 948f6b7c82d0ec87932df386c7cea32058d913b482e19682ccdcc72e2964fbc2edb013ae2736bca6027377ee7ac66819de745b9d550e8ee65158470bcdd9c0a3
7
- data.tar.gz: d33c3058b07055e572c61cf0cf374559c9e5d1e26cc1b26655e9ef472b3e8626fc076a9b1793bc2e41df8711ceec89ffe6f5244d806e77ff3cb6e39462a0a974
6
+ metadata.gz: a16b5799956f1e40d7846d76e638d46c51fc367185cecced1248d1ab1d9634f1b38f2356f736a39228f023c55d0be3540e4713b8ea9fd9ad58a5ec17616ce956
7
+ data.tar.gz: 49c73eb1b6d1f3bb9e23ce503eec8d5b2bf2d7cf53ca7c48e20194c78bd28f730d603a4c25b2d82792735c29a91230e181b750cebd5542b59a217381683c88e3
data/CHANGELOG.md CHANGED
@@ -1,36 +1,51 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.1.2] - 2024-03-17
11
-
12
- ### Added
13
-
14
- - CHANGELOG.
15
- - Rubygems Metadata.
16
-
17
- ### Fixed
18
-
19
- - Fixes title position.
20
-
21
- ## [0.1.1] - 2024-03-17
22
-
23
- ### Changed
24
-
25
- - Points to remote repository so it works on GitHub.
26
-
27
- ## [0.1.0] - 2024-03-16
28
-
29
- ### Added
30
-
31
- - First implementation of project.
32
-
33
- [unreleased]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.2...main
34
- [0.1.2]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.1...v0.1.2
35
- [0.1.1]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.0...v0.1.1
36
- [0.1.0]: https://github.com/ziinahzoor/cybersynth-theme/releases/tag/v0.1.0
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.4] - 2024-03-17
11
+
12
+ ## Changed
13
+
14
+ - Updated gemspec.
15
+
16
+ ## [0.1.3] - 2024-03-17
17
+
18
+ ### Fixed
19
+
20
+ - Fixed Changelog URL.
21
+
22
+ ## [0.1.2] - 2024-03-17
23
+
24
+ ### Added
25
+
26
+ - CHANGELOG.
27
+ - Rubygems Metadata.
28
+ - Creates Rakefile for building task.
29
+
30
+ ### Fixed
31
+
32
+ - Fixes title position.
33
+
34
+ ## [0.1.1] - 2024-03-17
35
+
36
+ ### Changed
37
+
38
+ - Points to remote repository so it works on GitHub.
39
+
40
+ ## [0.1.0] - 2024-03-17
41
+
42
+ ### Added
43
+
44
+ - First implementation of project.
45
+
46
+ [unreleased]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.4...main
47
+ [0.1.4]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.3...v0.1.4
48
+ [0.1.3]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.2...v0.1.3
49
+ [0.1.2]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.1...v0.1.2
50
+ [0.1.1]: https://github.com/ziinahzoor/cybersynth-theme/compare/v0.1.0...v0.1.1
51
+ [0.1.0]: https://github.com/ziinahzoor/cybersynth-theme/releases/tag/v0.1.0
@@ -6,7 +6,7 @@
6
6
  @import 'variables';
7
7
 
8
8
  body {
9
- font-family: Arvo, Monaco, serif;
9
+ font-family: Arvo, Monaco, Inter, 'Tengwar-Annatar', sans-serif;
10
10
  background-color: #0d1117;
11
11
  line-height: 1.75rem;
12
12
  padding: 2rem;
data/_sass/fonts.scss CHANGED
@@ -1,2 +1,4 @@
1
1
  @import url('https://fonts.googleapis.com/css?family=Arvo:400,700,400italic');
2
2
  @import url('https://fonts.googleapis.com/css2?family=Iceberg&display=swap');
3
+ @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
4
+ @import url('https://fonts.cdnfonts.com/css/tengwar-annatar');
data/assets/js/main.js CHANGED
@@ -11,6 +11,11 @@ function addHeaders() {
11
11
 
12
12
  const headers = document.querySelectorAll('section h1,h2,h3,h4,h5,h6');
13
13
 
14
+ if (!headers.length) {
15
+ nav.parentElement.removeChild(nav);
16
+ return;
17
+ }
18
+
14
19
  let currentList = list;
15
20
  let lastNesting = 0;
16
21
 
@@ -108,6 +113,11 @@ let selectedHeader;
108
113
 
109
114
  function handleShownElement() {
110
115
  var elements = [...document.querySelectorAll('section h1,h2,h3,h4,h5,h6')];
116
+
117
+ if (!elements.length) {
118
+ return;
119
+ }
120
+
111
121
  var screenMiddlePoint = window.innerHeight / 2;
112
122
 
113
123
  const filteredElements = elements.filter(e => e.getBoundingClientRect().bottom <= screenMiddlePoint);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybersynth-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Rosa Becker dos Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -68,7 +68,8 @@ licenses:
68
68
  metadata:
69
69
  homepage_uri: https://github.com/ziinahzoor/cybersynth-theme
70
70
  source_code_uri: https://github.com/ziinahzoor/cybersynth-theme
71
- changelog_uri: https://github.com/ziinahzoor/cybersynth-themeblob/main/CHANGELOG.md
71
+ changelog_uri: https://github.com/ziinahzoor/cybersynth-theme/blob/main/CHANGELOG.md
72
+ documentation_uri: https://github.com/ziinahzoor/cybersynth-theme/blob/main/README.md
72
73
  post_install_message:
73
74
  rdoc_options: []
74
75
  require_paths:
@@ -77,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
78
  requirements:
78
79
  - - ">="
79
80
  - !ruby/object:Gem::Version
80
- version: '0'
81
+ version: 2.5.0
81
82
  required_rubygems_version: !ruby/object:Gem::Requirement
82
83
  requirements:
83
84
  - - ">="