cybersynth-theme 0.1.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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/_config.yml +12 -0
- data/_includes/head-custom-google-analytics.html +25 -0
- data/_includes/head-custom.html +2 -0
- data/_layouts/default.html +61 -0
- data/_sass/alerts.scss +64 -0
- data/_sass/code.scss +112 -0
- data/_sass/cybersynth-theme.scss +135 -0
- data/_sass/fonts.scss +2 -0
- data/_sass/page-structure.scss +145 -0
- data/_sass/table.scss +39 -0
- data/_sass/variables.scss +8 -0
- data/assets/css/style.scss +4 -0
- data/assets/js/icons.js +7 -0
- data/assets/js/main.js +146 -0
- metadata +87 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d5edf8fdde61544786b418b45413fd2b7229593f2b10fa9e244f37c070f8aaa7
|
|
4
|
+
data.tar.gz: 9b04692a1ed65d4036cabb95770a1fee58f89bb0de6c009094f14ffb94cc6a48
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 956d9a216feae7b98a524823f01a3aaf94a25115f7503e1fd63a0ec97ed278b797d6a49ca126bfd038882cf18e1511bea3e480f209a92f754258c8fb2949433b
|
|
7
|
+
data.tar.gz: 9da8064ba70656548230e741778ca616cb9ae03438b6b8a9c3cc2af698980fbbb3f96f255ec363ed9b6e858dcc86c64fd1a7a724df9d6e360afe7ef625aec24b
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Rafael Rosa
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# cybersynth-theme
|
|
2
|
+
|
|
3
|
+
Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
|
|
4
|
+
|
|
5
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
|
6
|
+
|
|
7
|
+
TODO: Delete this and the text above, and describe your gem
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
Add this line to your Jekyll site's `Gemfile`:
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
gem "cybersynth-theme"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
And add this line to your Jekyll site's `_config.yml`:
|
|
18
|
+
|
|
19
|
+
```yaml
|
|
20
|
+
theme: cybersynth-theme
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
And then execute:
|
|
24
|
+
|
|
25
|
+
$ bundle
|
|
26
|
+
|
|
27
|
+
Or install it yourself as:
|
|
28
|
+
|
|
29
|
+
$ gem install cybersynth-theme
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
|
|
34
|
+
|
|
35
|
+
## Contributing
|
|
36
|
+
|
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cybersynth-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
To set up your environment to develop this theme, run `bundle install`.
|
|
42
|
+
|
|
43
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
|
44
|
+
|
|
45
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
|
46
|
+
To add a custom directory to your theme-gem, please edit the regexp in `cybersynth-theme.gemspec` accordingly.
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
title: Cybersynth theme
|
|
2
|
+
email: rafaelxsantosx@hotmail.com
|
|
3
|
+
description: >- # this means to ignore newlines until "baseurl:"
|
|
4
|
+
A cyberpunk theme with header navigation
|
|
5
|
+
baseurl: '/'
|
|
6
|
+
url: ''
|
|
7
|
+
twitter_username: ziinahzoor
|
|
8
|
+
github_username: ziinahzoor
|
|
9
|
+
|
|
10
|
+
markdown: kramdown
|
|
11
|
+
google_analytics:
|
|
12
|
+
theme: cybersynth-theme
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{% if site.google_analytics %}
|
|
2
|
+
<script>
|
|
3
|
+
(function (i, s, o, g, r, a, m) {
|
|
4
|
+
i['GoogleAnalyticsObject'] = r;
|
|
5
|
+
(i[r] =
|
|
6
|
+
i[r] ||
|
|
7
|
+
function () {
|
|
8
|
+
(i[r].q = i[r].q || []).push(arguments);
|
|
9
|
+
}),
|
|
10
|
+
(i[r].l = 1 * new Date());
|
|
11
|
+
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
|
|
12
|
+
a.async = 1;
|
|
13
|
+
a.src = g;
|
|
14
|
+
m.parentNode.insertBefore(a, m);
|
|
15
|
+
})(
|
|
16
|
+
window,
|
|
17
|
+
document,
|
|
18
|
+
'script',
|
|
19
|
+
'//www.google-analytics.com/analytics.js',
|
|
20
|
+
'ga'
|
|
21
|
+
);
|
|
22
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
|
23
|
+
ga('send', 'pageview');
|
|
24
|
+
</script>
|
|
25
|
+
{% endif %}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="{{ site.lang | default: " pt-BR" }}">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
|
+
|
|
8
|
+
<link rel="icon" type="image/x-icon" href="/Languages/favicon.ico">
|
|
9
|
+
|
|
10
|
+
{% seo title=false %}
|
|
11
|
+
|
|
12
|
+
<title>
|
|
13
|
+
{{ site.title }} | {{ page.title }}
|
|
14
|
+
</title>
|
|
15
|
+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
|
16
|
+
<script src="https://code.jquery.com/jquery-3.3.0.min.js"
|
|
17
|
+
integrity="sha256-RTQy8VOmNlT6b2PIRur37p6JEBZUE7o8wPgMvu18MC4=" crossorigin="anonymous"></script>
|
|
18
|
+
<script src="{{ '/assets/js/main.js' | relative_url }}" type="module"></script>
|
|
19
|
+
<script src="{{ '/assets/js/icons.js' | relative_url }}" type="module"></script>
|
|
20
|
+
<!--[if lt IE 9]>
|
|
21
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" integrity="sha256-3Jy/GbSLrg0o9y5Z5n1uw0qxZECH7C6OQpVBgNFYa0g=" crossorigin="anonymous"></script>
|
|
22
|
+
<![endif]-->
|
|
23
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
24
|
+
|
|
25
|
+
{% include head-custom.html %}
|
|
26
|
+
</head>
|
|
27
|
+
|
|
28
|
+
<body>
|
|
29
|
+
<header class="mobile mobile-header">
|
|
30
|
+
<h1>{{ site.title }}</h1>
|
|
31
|
+
</header>
|
|
32
|
+
|
|
33
|
+
<div class="navigation-wrapper">
|
|
34
|
+
<header>
|
|
35
|
+
<h1>{{ site.title }}</h1>
|
|
36
|
+
</header>
|
|
37
|
+
<nav id="header-navigation">
|
|
38
|
+
</nav>
|
|
39
|
+
<footer>
|
|
40
|
+
{% if site.github.is_project_page %}
|
|
41
|
+
<p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
|
|
42
|
+
{% endif %}
|
|
43
|
+
<p><small>Hosted on GitHub — Theme by <a href="https://rafaelrosa.dev">ziinahzoor</a></small>
|
|
44
|
+
</p>
|
|
45
|
+
</footer>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<section>
|
|
49
|
+
{{ content }}
|
|
50
|
+
</section>
|
|
51
|
+
|
|
52
|
+
<footer class="mobile mobile-footer">
|
|
53
|
+
{% if site.github.is_project_page %}
|
|
54
|
+
<p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
|
|
55
|
+
{% endif %}
|
|
56
|
+
<p><small>Hosted on GitHub — Theme by <a href="https://rafaelrosa.dev">ziinahzoor</a></small>
|
|
57
|
+
</p>
|
|
58
|
+
</footer>
|
|
59
|
+
</body>
|
|
60
|
+
|
|
61
|
+
</html>
|
data/_sass/alerts.scss
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
.alert {
|
|
4
|
+
padding: 0.75rem 1rem;
|
|
5
|
+
border: 1px solid;
|
|
6
|
+
border-left-width: 5px;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
margin: 1rem 0;
|
|
9
|
+
font-style: italic;
|
|
10
|
+
|
|
11
|
+
& > p {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
&:first-child {
|
|
14
|
+
font-size: 1.25rem;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-bottom: solid 1px;
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
margin-bottom: 20px;
|
|
20
|
+
padding-bottom: 0.2rem;
|
|
21
|
+
|
|
22
|
+
& > svg {
|
|
23
|
+
width: 1.25rem;
|
|
24
|
+
height: 1.25rem;
|
|
25
|
+
margin-right: 0.25rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:last-child {
|
|
30
|
+
color: $white;
|
|
31
|
+
font-size: 0.9rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.note {
|
|
37
|
+
color: rgb(47, 129, 247);
|
|
38
|
+
fill: rgb(47, 129, 247);
|
|
39
|
+
border-color: rgb(47, 129, 247);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.tip {
|
|
43
|
+
color: rgb(63, 185, 80);
|
|
44
|
+
fill: rgb(63, 185, 80);
|
|
45
|
+
border-color: rgb(63, 185, 80);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.important {
|
|
49
|
+
color: rgb(163, 113, 247);
|
|
50
|
+
fill: rgb(163, 113, 247);
|
|
51
|
+
border-color: rgb(163, 113, 247);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.warning {
|
|
55
|
+
color: rgb(210, 153, 34);
|
|
56
|
+
fill: rgb(210, 153, 34);
|
|
57
|
+
border-color: rgb(210, 153, 34);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.caution {
|
|
61
|
+
color: rgb(248, 81, 73);
|
|
62
|
+
fill: rgb(248, 81, 73);
|
|
63
|
+
border-color: rgb(248, 81, 73);
|
|
64
|
+
}
|
data/_sass/code.scss
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
:not(pre) > code,
|
|
4
|
+
pre.highlight {
|
|
5
|
+
font-family: Arvo, Monaco, monospace;
|
|
6
|
+
background-color: $background-code;
|
|
7
|
+
border-radius: 5px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:not(pre) > code {
|
|
11
|
+
padding: 3px;
|
|
12
|
+
color: $cybergreen;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
pre.highlight {
|
|
16
|
+
padding: 10px;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
|
|
19
|
+
code,
|
|
20
|
+
span {
|
|
21
|
+
font-family: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&,
|
|
25
|
+
.w {
|
|
26
|
+
color: $white;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.err {
|
|
30
|
+
color: $background-alt;
|
|
31
|
+
background-color: rgb(248, 81, 73);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.gh {
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.c,
|
|
39
|
+
.cd,
|
|
40
|
+
.cm,
|
|
41
|
+
.c1,
|
|
42
|
+
.cs,
|
|
43
|
+
.cp {
|
|
44
|
+
color: #888;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.o,
|
|
48
|
+
.ow,
|
|
49
|
+
.p,
|
|
50
|
+
.pi {
|
|
51
|
+
color: #d0d0d0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.gd {
|
|
55
|
+
color: rgb(248, 81, 73);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.k,
|
|
59
|
+
.kn,
|
|
60
|
+
.kp,
|
|
61
|
+
.kr,
|
|
62
|
+
.kv {
|
|
63
|
+
color: $cyberpink;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.kc,
|
|
67
|
+
.kt,
|
|
68
|
+
.kd,
|
|
69
|
+
.sr {
|
|
70
|
+
color: $cybergreen;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dl,
|
|
74
|
+
.s,
|
|
75
|
+
.sb,
|
|
76
|
+
.sc,
|
|
77
|
+
.sd,
|
|
78
|
+
.s2,
|
|
79
|
+
.sh,
|
|
80
|
+
.sx,
|
|
81
|
+
.s1,
|
|
82
|
+
.na,
|
|
83
|
+
.gh {
|
|
84
|
+
color: $cyberblue;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.si,
|
|
88
|
+
.se {
|
|
89
|
+
color: $cyberpurple;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nf,
|
|
93
|
+
.nn,
|
|
94
|
+
.nc,
|
|
95
|
+
.no,
|
|
96
|
+
.nt {
|
|
97
|
+
color: $cyberyellow;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.m,
|
|
101
|
+
.mf,
|
|
102
|
+
.mh,
|
|
103
|
+
.mi,
|
|
104
|
+
.il,
|
|
105
|
+
.mo,
|
|
106
|
+
.mb,
|
|
107
|
+
.mx,
|
|
108
|
+
.ss,
|
|
109
|
+
.gi {
|
|
110
|
+
color: rgb(63, 185, 80);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@import 'alerts';
|
|
2
|
+
@import 'code';
|
|
3
|
+
@import 'fonts';
|
|
4
|
+
@import 'page-structure';
|
|
5
|
+
@import 'table';
|
|
6
|
+
@import 'variables';
|
|
7
|
+
|
|
8
|
+
body {
|
|
9
|
+
font-family: Arvo, Monaco, serif;
|
|
10
|
+
background-color: #0d1117;
|
|
11
|
+
line-height: 1.75rem;
|
|
12
|
+
padding: 2rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
body,
|
|
16
|
+
strong {
|
|
17
|
+
color: $white;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
h1 {
|
|
21
|
+
font-size: 2rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
h1,
|
|
25
|
+
h2,
|
|
26
|
+
h3,
|
|
27
|
+
h4,
|
|
28
|
+
h5,
|
|
29
|
+
h6 {
|
|
30
|
+
margin-block: 1.5rem;
|
|
31
|
+
color: $cyberpink;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a,
|
|
35
|
+
a:focus,
|
|
36
|
+
a:visited {
|
|
37
|
+
color: $cyberblue;
|
|
38
|
+
font-weight: unset;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
color: $cybergreen;
|
|
43
|
+
font-weight: unset;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
details {
|
|
48
|
+
color: $cyberblue;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
color: $cybergreen;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
blockquote {
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding-inline: 1rem;
|
|
59
|
+
border-left: 0.5rem solid $cyberpink;
|
|
60
|
+
font-style: italic;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ul {
|
|
64
|
+
list-style-type: '◈';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
ul.task-list {
|
|
68
|
+
list-style-type: none;
|
|
69
|
+
padding-left: 0;
|
|
70
|
+
|
|
71
|
+
li {
|
|
72
|
+
padding-left: 0;
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
|
|
76
|
+
input {
|
|
77
|
+
-webkit-appearance: none;
|
|
78
|
+
appearance: none;
|
|
79
|
+
background-color: $white;
|
|
80
|
+
margin: 0 0.75rem 0 0;
|
|
81
|
+
width: 1.25rem;
|
|
82
|
+
height: 1.25rem;
|
|
83
|
+
border-radius: 0.15rem;
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
|
|
88
|
+
&:checked {
|
|
89
|
+
box-shadow: 0 0 5px inset $cyberpink;
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
content: '◈';
|
|
93
|
+
color: $cyberpink;
|
|
94
|
+
line-height: 1rem;
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
font-size: 1.75rem;
|
|
97
|
+
margin: auto auto;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
ul,
|
|
105
|
+
ol {
|
|
106
|
+
padding-left: 1rem;
|
|
107
|
+
|
|
108
|
+
li {
|
|
109
|
+
padding-left: 1rem;
|
|
110
|
+
|
|
111
|
+
&::marker {
|
|
112
|
+
color: $cyberpink;
|
|
113
|
+
font-style: normal;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ul {
|
|
118
|
+
padding-left: 1.5rem;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
dt {
|
|
123
|
+
font-weight: bold;
|
|
124
|
+
color: $cyberpink;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
hr {
|
|
128
|
+
border: 1px solid $cyberpink;
|
|
129
|
+
box-shadow: 1px 1px $cybergreen;
|
|
130
|
+
border-radius: 5px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.footnotes {
|
|
134
|
+
border-top: 1px solid $cybergreen;
|
|
135
|
+
}
|
data/_sass/fonts.scss
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
section {
|
|
4
|
+
width: calc(75vw - 100px);
|
|
5
|
+
padding-bottom: 100px;
|
|
6
|
+
scroll-behavior: smooth;
|
|
7
|
+
float: right;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mobile {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.navigation-wrapper {
|
|
15
|
+
position: fixed;
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
height: calc(100vh - 40px - 2rem);
|
|
20
|
+
|
|
21
|
+
header {
|
|
22
|
+
float: none;
|
|
23
|
+
width: calc(25vw - 100px + 2rem);
|
|
24
|
+
|
|
25
|
+
> h1 {
|
|
26
|
+
font-family: Iceberg, Arvo, serif;
|
|
27
|
+
font-size: 2.5rem;
|
|
28
|
+
text-shadow: 1px 1px $cybergreen;
|
|
29
|
+
overflow-wrap: break-word;
|
|
30
|
+
line-height: 2.5rem;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
nav {
|
|
35
|
+
width: calc(25vw - 100px);
|
|
36
|
+
background-color: $background-alt;
|
|
37
|
+
border-radius: 5px;
|
|
38
|
+
padding: 1rem;
|
|
39
|
+
overflow-y: auto;
|
|
40
|
+
|
|
41
|
+
& ul {
|
|
42
|
+
padding-left: 1.25rem;
|
|
43
|
+
list-style-type: none;
|
|
44
|
+
|
|
45
|
+
& li {
|
|
46
|
+
font-size: 1rem;
|
|
47
|
+
text-transform: none;
|
|
48
|
+
font-weight: normal;
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
font-weight: normal;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
& > ul {
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding-left: 0;
|
|
59
|
+
|
|
60
|
+
& > li {
|
|
61
|
+
text-transform: uppercase;
|
|
62
|
+
font-size: 1.1rem;
|
|
63
|
+
font-weight: bold;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
font-weight: bold;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
footer {
|
|
73
|
+
width: calc(25vw - 100px);
|
|
74
|
+
border-radius: 5px;
|
|
75
|
+
height: auto;
|
|
76
|
+
margin-top: auto;
|
|
77
|
+
padding: 1rem;
|
|
78
|
+
background-color: $background-alt;
|
|
79
|
+
border: solid $cyberpink 1px;
|
|
80
|
+
box-shadow: -2px 2px $cybergreen;
|
|
81
|
+
line-height: 1rem;
|
|
82
|
+
|
|
83
|
+
p {
|
|
84
|
+
margin: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
a {
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
li > a.selected-header {
|
|
94
|
+
color: $cyberpink;
|
|
95
|
+
&:hover {
|
|
96
|
+
color: $cyberpink;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media print, screen and (max-width: 960px) {
|
|
101
|
+
.mobile {
|
|
102
|
+
background-color: $background-alt;
|
|
103
|
+
display: flex;
|
|
104
|
+
position: sticky;
|
|
105
|
+
z-index: 1;
|
|
106
|
+
|
|
107
|
+
&.mobile-header {
|
|
108
|
+
top: 1rem;
|
|
109
|
+
text-align: center;
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
box-shadow: 0 0.1rem $cyberpink, 0 0.2rem $cybergreen,
|
|
113
|
+
0 0.1rem 1rem $cyberpink;
|
|
114
|
+
border-radius: 50px;
|
|
115
|
+
|
|
116
|
+
> h1 {
|
|
117
|
+
font-family: Iceberg, Arvo, serif;
|
|
118
|
+
font-size: 2.5rem;
|
|
119
|
+
text-shadow: 1px 1px $cybergreen;
|
|
120
|
+
overflow-wrap: break-word;
|
|
121
|
+
line-height: 2.5rem;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.mobile-footer {
|
|
126
|
+
bottom: 0;
|
|
127
|
+
margin-bottom: -40px;
|
|
128
|
+
border-top: 2px solid $background-code;
|
|
129
|
+
width: calc(100% + 16px);
|
|
130
|
+
padding-inline: 2rem;
|
|
131
|
+
margin-left: -40px;
|
|
132
|
+
border-top-left-radius: 15px;
|
|
133
|
+
border-top-right-radius: 15px;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.navigation-wrapper {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
section {
|
|
142
|
+
width: 100%;
|
|
143
|
+
position: relative;
|
|
144
|
+
}
|
|
145
|
+
}
|
data/_sass/table.scss
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import 'variables';
|
|
2
|
+
|
|
3
|
+
table {
|
|
4
|
+
display: block;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
|
|
8
|
+
> thead > tr:first-child,
|
|
9
|
+
> tr:first-child {
|
|
10
|
+
background-color: $cybergreen;
|
|
11
|
+
|
|
12
|
+
& > th {
|
|
13
|
+
border: 1px solid darken($cybergreen, 10%);
|
|
14
|
+
color: darken($cybergreen, 35%);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
tr:nth-child(even) {
|
|
19
|
+
background-color: darken($cybergreen, 35%);
|
|
20
|
+
color: $white;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
td,
|
|
24
|
+
th {
|
|
25
|
+
border: 1px solid lighten($cybergreen, 30%);
|
|
26
|
+
color: inherit;
|
|
27
|
+
text-align: left;
|
|
28
|
+
padding: 5px 10px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
th {
|
|
32
|
+
color: lighten($cybergreen, 55%);
|
|
33
|
+
font-size: 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
td {
|
|
37
|
+
font-size: 0.9rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
data/assets/js/icons.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const alerts = {
|
|
2
|
+
note: '<svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>',
|
|
3
|
+
tip: '<svg class="octicon octicon-light-bulb mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></svg>',
|
|
4
|
+
important: '<svg class="octicon octicon-report mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>',
|
|
5
|
+
warning: '<svg class="octicon octicon-alert mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></svg>',
|
|
6
|
+
caution: '<svg class="octicon octicon-stop mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>',
|
|
7
|
+
};
|
data/assets/js/main.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { alerts } from './icons.js';
|
|
2
|
+
|
|
3
|
+
function onScroll() {
|
|
4
|
+
handleShownElement();
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function addHeaders() {
|
|
8
|
+
let index = 0;
|
|
9
|
+
const nav = document.getElementById('header-navigation');
|
|
10
|
+
const list = document.createElement('ul');
|
|
11
|
+
|
|
12
|
+
const headers = document.querySelectorAll('section h1,h2,h3,h4,h5,h6');
|
|
13
|
+
|
|
14
|
+
let currentList = list;
|
|
15
|
+
let lastNesting = 0;
|
|
16
|
+
|
|
17
|
+
for (let header of headers) {
|
|
18
|
+
header.id = `header-${index}`;
|
|
19
|
+
|
|
20
|
+
const nesting = parseInt(header.tagName[1]);
|
|
21
|
+
|
|
22
|
+
if (lastNesting && lastNesting != nesting) {
|
|
23
|
+
let currentNesting = nesting;
|
|
24
|
+
if (nesting > lastNesting) {
|
|
25
|
+
while (currentNesting > lastNesting) {
|
|
26
|
+
const listItem = document.createElement('li');
|
|
27
|
+
const nestedList = document.createElement('ul');
|
|
28
|
+
|
|
29
|
+
listItem.appendChild(nestedList)
|
|
30
|
+
currentList.appendChild(listItem);
|
|
31
|
+
currentList = nestedList;
|
|
32
|
+
currentNesting--;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
while (currentNesting < lastNesting) {
|
|
37
|
+
currentList = currentList.parentElement.parentElement;
|
|
38
|
+
currentNesting++;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const item = document.createElement('li');
|
|
44
|
+
const link = document.createElement('a');
|
|
45
|
+
|
|
46
|
+
link.innerHTML = header.innerHTML;
|
|
47
|
+
link.href = `#${header.id}`;
|
|
48
|
+
link.addEventListener('click', function (e) {
|
|
49
|
+
window.onscroll = null;
|
|
50
|
+
selectedHeader = null;
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
header.scrollIntoView({ behavior: 'smooth' });
|
|
53
|
+
history.pushState({}, '', `#${header.id}`);
|
|
54
|
+
|
|
55
|
+
document.getElementsByClassName('selected-header')[0]?.classList.remove('selected-header');
|
|
56
|
+
link.classList.add('selected-header');
|
|
57
|
+
});
|
|
58
|
+
link.id = `header-nav-${index++}`;
|
|
59
|
+
|
|
60
|
+
item.appendChild(link);
|
|
61
|
+
currentList.appendChild(item);
|
|
62
|
+
|
|
63
|
+
lastNesting = nesting;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
nav.appendChild(list);
|
|
67
|
+
nav.querySelector('li').classList.add('selected-header');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function addAlerts() {
|
|
71
|
+
const alertElements = [...document.querySelectorAll('blockquote>p')]
|
|
72
|
+
.filter(nota => nota.innerHTML.startsWith('[!'));
|
|
73
|
+
|
|
74
|
+
const alertTypes = {
|
|
75
|
+
note: 'Note',
|
|
76
|
+
tip: 'Tip',
|
|
77
|
+
important: 'Important',
|
|
78
|
+
warning: 'Warning',
|
|
79
|
+
caution: 'Caution',
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
for (let alert of alertElements) {
|
|
83
|
+
const elementText = alert.innerHTML;
|
|
84
|
+
|
|
85
|
+
const regex = /\[!(.*?)\]\n(.*)/;
|
|
86
|
+
const matches = elementText.match(regex);
|
|
87
|
+
|
|
88
|
+
const matchType = matches[1].toLowerCase();
|
|
89
|
+
const alertText = matches[2].trim();
|
|
90
|
+
|
|
91
|
+
alert.innerHTML = `${alerts[matchType]}${alertTypes[matchType].toUpperCase()}`;
|
|
92
|
+
|
|
93
|
+
const textElement = document.createElement('p');
|
|
94
|
+
textElement.innerHTML = alertText;
|
|
95
|
+
alert.parentNode.appendChild(textElement);
|
|
96
|
+
alert.parentNode.classList.add('alert', matchType);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
window.onload = function () {
|
|
101
|
+
addAlerts();
|
|
102
|
+
addHeaders();
|
|
103
|
+
handleShownElement();
|
|
104
|
+
window.onscroll = onScroll;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let selectedHeader;
|
|
108
|
+
|
|
109
|
+
function handleShownElement() {
|
|
110
|
+
var elements = [...document.querySelectorAll('section h1,h2,h3,h4,h5,h6')];
|
|
111
|
+
var screenMiddlePoint = window.innerHeight / 2;
|
|
112
|
+
|
|
113
|
+
const filteredElements = elements.filter(e => e.getBoundingClientRect().bottom <= screenMiddlePoint);
|
|
114
|
+
const shownElement = filteredElements.reduce(function (res, obj) {
|
|
115
|
+
let condition;
|
|
116
|
+
const resThreshold = res.getBoundingClientRect().bottom;
|
|
117
|
+
const objThreshold = obj.getBoundingClientRect().bottom;
|
|
118
|
+
const topThreshold = 75;
|
|
119
|
+
|
|
120
|
+
if (window.scrollY < topThreshold) {
|
|
121
|
+
condition = resThreshold >= objThreshold;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
condition = resThreshold < objThreshold;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return condition ? obj : res;
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
if (shownElement) {
|
|
131
|
+
const id = shownElement.id.slice(-1);
|
|
132
|
+
document.getElementsByClassName('selected-header')[0]?.classList.remove('selected-header');
|
|
133
|
+
|
|
134
|
+
selectedHeader = document.getElementById(`header-nav-${id}`);
|
|
135
|
+
selectedHeader?.classList.add('selected-header');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
window.onscrollend = function () {
|
|
140
|
+
selectedHeader?.scrollIntoView({ behavior: 'smooth' });
|
|
141
|
+
selectedHeader = null;
|
|
142
|
+
|
|
143
|
+
if (!window.onscroll) {
|
|
144
|
+
window.onscroll = onScroll;
|
|
145
|
+
}
|
|
146
|
+
}
|
metadata
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cybersynth-theme
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Rafael Rosa Becker dos Santos
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2024-03-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '4.3'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '4.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: jekyll-seo-tag
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '2.0'
|
|
41
|
+
description:
|
|
42
|
+
email:
|
|
43
|
+
- rafaelxsantosx@hotmail.com
|
|
44
|
+
executables: []
|
|
45
|
+
extensions: []
|
|
46
|
+
extra_rdoc_files: []
|
|
47
|
+
files:
|
|
48
|
+
- LICENSE.txt
|
|
49
|
+
- README.md
|
|
50
|
+
- _config.yml
|
|
51
|
+
- _includes/head-custom-google-analytics.html
|
|
52
|
+
- _includes/head-custom.html
|
|
53
|
+
- _layouts/default.html
|
|
54
|
+
- _sass/alerts.scss
|
|
55
|
+
- _sass/code.scss
|
|
56
|
+
- _sass/cybersynth-theme.scss
|
|
57
|
+
- _sass/fonts.scss
|
|
58
|
+
- _sass/page-structure.scss
|
|
59
|
+
- _sass/table.scss
|
|
60
|
+
- _sass/variables.scss
|
|
61
|
+
- assets/css/style.scss
|
|
62
|
+
- assets/js/icons.js
|
|
63
|
+
- assets/js/main.js
|
|
64
|
+
homepage: https://github.com/ziinahzoor/cybersynth-theme
|
|
65
|
+
licenses:
|
|
66
|
+
- MIT
|
|
67
|
+
metadata: {}
|
|
68
|
+
post_install_message:
|
|
69
|
+
rdoc_options: []
|
|
70
|
+
require_paths:
|
|
71
|
+
- lib
|
|
72
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
|
+
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: '0'
|
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
82
|
+
requirements: []
|
|
83
|
+
rubygems_version: 3.5.6
|
|
84
|
+
signing_key:
|
|
85
|
+
specification_version: 4
|
|
86
|
+
summary: A cyberpunk theme with header navigation
|
|
87
|
+
test_files: []
|