bluetonic 0.2.0 → 0.3.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 +4 -4
- data/_includes/script.html +20 -0
- data/_layouts/default.html +1 -0
- data/_sass/base.scss +60 -6
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 920921edb2b4d32f630a9d9c0d2b91783219548fe29065970e897ff65ec59ce2
|
|
4
|
+
data.tar.gz: a3d8ba1c9ffd7a17c531791eb1a211b698656e790ef22a1a06ae274c1edf86aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ac0ddc524e8d78a78522900763703ff68c04088a9755f66f55310e6ab1753ef2591249aa2f71f35b6a3b0f96d01445f46d4eeef21b1aec364c2bdb6bdfaa5bb
|
|
7
|
+
data.tar.gz: 0d3b770d3011f4692429ebe51397ef36b59071095ac2a927018cc81a0c616c978d5c9ebc901dc7176d5b8210b5aa87a911b8e3790f133890cd69593049b20f99
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
function copyHeaderLink(/** @type {MouseEvent} */ event) {
|
|
3
|
+
const id = event.target.id;
|
|
4
|
+
const url = `${location.href.replace(/#.*/, '')}#${id}`;
|
|
5
|
+
navigator.clipboard.writeText(url);
|
|
6
|
+
location.hash = id;
|
|
7
|
+
}
|
|
8
|
+
document.querySelectorAll("h1,h2,h3,h4,h5,h6")
|
|
9
|
+
.forEach(header => header.addEventListener("click", copyHeaderLink));
|
|
10
|
+
|
|
11
|
+
function copyText(/** @type {MouseEvent} */ event) {
|
|
12
|
+
event.stopPropagation();
|
|
13
|
+
const content = event.target.textContent;
|
|
14
|
+
navigator.clipboard.writeText(content);
|
|
15
|
+
}
|
|
16
|
+
document.querySelectorAll("pre,code")
|
|
17
|
+
.forEach(code => code.addEventListener("click", copyText));
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</script>
|
data/_layouts/default.html
CHANGED
data/_sass/base.scss
CHANGED
|
@@ -2,13 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
* {
|
|
4
4
|
--color-bg: #007fff;
|
|
5
|
-
--color-
|
|
5
|
+
--color-bga: #00afff;
|
|
6
|
+
--color-bg2: #003fff7f;
|
|
7
|
+
--color-header-highlight: #ffffff2f;
|
|
6
8
|
--color-fg: #00007f;
|
|
9
|
+
--color-link: #0000df;
|
|
10
|
+
--color-linkh: #00009f;
|
|
11
|
+
--color-linka: #00005f;
|
|
7
12
|
--color-line: #00003f;
|
|
13
|
+
--color-codeshadow: #003fcf7f;
|
|
14
|
+
--color-codehovershadow: #00003f7f;
|
|
15
|
+
|
|
16
|
+
transition: 0.2s ease;
|
|
8
17
|
}
|
|
9
18
|
|
|
19
|
+
:root {
|
|
20
|
+
background: linear-gradient(to right, var(--color-bga) 0%, var(--color-bg) calc(50% - 40ch), var(--color-bg) calc(50% + 40ch), var(--color-bga) 100%);
|
|
21
|
+
}
|
|
10
22
|
body {
|
|
11
|
-
background-color: var(--color-bg);
|
|
12
23
|
font-family: "Special Gothic", sans-serif;
|
|
13
24
|
margin: auto;
|
|
14
25
|
max-width: 70ch;
|
|
@@ -18,24 +29,67 @@ body {
|
|
|
18
29
|
h1, h2, h3, h4, h5, h6 {
|
|
19
30
|
font-family: "Montserrat", sans-serif;
|
|
20
31
|
font-weight: 300;
|
|
32
|
+
cursor: copy;
|
|
21
33
|
}
|
|
22
34
|
h1, h2 {
|
|
35
|
+
background: linear-gradient(to bottom, transparent 50%, var(--color-header-highlight) 100%);
|
|
23
36
|
border-bottom: 1px solid var(--color-line);
|
|
24
37
|
}
|
|
38
|
+
:is(h1, h2, h3, h4, h5, h6):hover {
|
|
39
|
+
font-weight: bolder;
|
|
40
|
+
}
|
|
41
|
+
|
|
25
42
|
hr {
|
|
26
43
|
border: none;
|
|
27
|
-
border-bottom:
|
|
44
|
+
border-bottom: 2px solid var(--color-line);
|
|
45
|
+
box-shadow: 0 0 10px white;
|
|
28
46
|
}
|
|
29
47
|
|
|
30
48
|
pre, code {
|
|
49
|
+
cursor: text;
|
|
31
50
|
font-family: "IBM Plex Mono", monospace;
|
|
51
|
+
}
|
|
52
|
+
pre, :not(pre) > code {
|
|
32
53
|
background-color: var(--color-bg2);
|
|
54
|
+
box-shadow: inset 0 0 3px var(--color-codeshadow);
|
|
55
|
+
}
|
|
56
|
+
:is(pre, :not(pre) > code):hover {
|
|
57
|
+
box-shadow: inset 0 0 3px var(--color-codehovershadow);
|
|
33
58
|
}
|
|
34
59
|
code {
|
|
35
60
|
padding: 2px;
|
|
36
|
-
border-radius:
|
|
61
|
+
border-radius: 4px;
|
|
37
62
|
}
|
|
38
63
|
pre {
|
|
39
64
|
padding: 5px;
|
|
40
|
-
border-radius:
|
|
41
|
-
}
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
a {
|
|
69
|
+
color: var(--color-link);
|
|
70
|
+
text-decoration: inherit;
|
|
71
|
+
}
|
|
72
|
+
a:is(:hover, :focus) {
|
|
73
|
+
color: var(--color-linkh);
|
|
74
|
+
text-decoration: 2px underline;
|
|
75
|
+
}
|
|
76
|
+
a:active {
|
|
77
|
+
color: var(--color-linka);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
th, td {
|
|
81
|
+
padding: 2px 5px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
table {
|
|
85
|
+
border-collapse: collapse;
|
|
86
|
+
}
|
|
87
|
+
tr th {
|
|
88
|
+
border-bottom: 2px solid var(--color-line);
|
|
89
|
+
}
|
|
90
|
+
tr:not(:last-child) td {
|
|
91
|
+
border-bottom: 1px solid var(--color-line);
|
|
92
|
+
}
|
|
93
|
+
:is(th, td):not(:last-child) {
|
|
94
|
+
border-right: 1px solid var(--color-line);
|
|
95
|
+
}
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bluetonic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SuperYoshi10000
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: jekyll
|
|
@@ -47,6 +47,7 @@ files:
|
|
|
47
47
|
- README.md
|
|
48
48
|
- _config.yml
|
|
49
49
|
- _includes/head.html
|
|
50
|
+
- _includes/script.html
|
|
50
51
|
- _layouts/default.html
|
|
51
52
|
- _sass/base.scss
|
|
52
53
|
- assets/blue.scss
|
|
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
69
|
- !ruby/object:Gem::Version
|
|
69
70
|
version: '0'
|
|
70
71
|
requirements: []
|
|
71
|
-
rubygems_version: 3.6.
|
|
72
|
+
rubygems_version: 3.6.9
|
|
72
73
|
specification_version: 4
|
|
73
74
|
summary: ''
|
|
74
75
|
test_files: []
|