rawfeed 0.2.7 → 0.2.8
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/layout/footer.html +7 -10
- data/_sass/includes/_footer.scss +29 -18
- data/_sass/main.scss +2 -2
- data/assets/js/fallback/default.js +10 -15
- data/lib/rawfeed/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86d58e6711cd5f71420c51b27cfbad68c02e4a8aa540d35b8313b4732d298644
|
|
4
|
+
data.tar.gz: 9d05b52b5fa177ef8a45173b6ee14dc06c5a64bb0305267d7ea39153996be093
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c5e4f5673ea2157a9b07afbb91177c20ac8c95536db126f7ef522f0c7cd2d2a22b0687cb2ad90d98532a4d32d81b221632059d19490d1a00a0be492c5951a42
|
|
7
|
+
data.tar.gz: 9759f60419606c341417fdfcfac7491f89929cae639ffcde31f7dbc3e7fc1fa28704bbc3df70097f3ae5dcfe77d4bbe780ecb41ddcd88ee036faff36cbe83fe5
|
|
@@ -6,17 +6,14 @@ See: https://rawfeed.github.io/rawfeed-jekyll/license/
|
|
|
6
6
|
|
|
7
7
|
{%- include layout/data.liquid -%}
|
|
8
8
|
|
|
9
|
-
<footer class="fixed-bottom footer">
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{%- endif -%}
|
|
19
|
-
<!-- line top button -->
|
|
10
|
+
{%- if footer_.top_button.enable -%}
|
|
11
|
+
<a id="top-link" href="#top" class="top-link" aria-label="back to top">
|
|
12
|
+
{{ footer_.top_button.icon }}
|
|
13
|
+
</a>
|
|
14
|
+
{%- endif -%}
|
|
15
|
+
|
|
16
|
+
<footer class="fixed-bottom footer">
|
|
20
17
|
|
|
21
18
|
<!-- line footer content -->
|
|
22
19
|
<div class="row footer-wrapper">
|
data/_sass/includes/_footer.scss
CHANGED
|
@@ -1,9 +1,37 @@
|
|
|
1
|
+
.top-link {
|
|
2
|
+
position: fixed;
|
|
3
|
+
color: var(--primary-color);
|
|
4
|
+
text-decoration: none !important;
|
|
5
|
+
bottom: var(--margin-bottom);
|
|
6
|
+
right: 1.2rem;
|
|
7
|
+
width: 45px;
|
|
8
|
+
height: 45px;
|
|
9
|
+
display: none;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
font-size: 3.5rem;
|
|
13
|
+
line-height: 1;
|
|
14
|
+
z-index: 1050; /* acima do conteúdo, abaixo de modals bootstrap */
|
|
15
|
+
pointer-events: auto; /* permite clique apenas nele */
|
|
16
|
+
transition: opacity .3s ease, transform .3s ease;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
&:hover {
|
|
19
|
+
color: var(--text-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.top-link.show {
|
|
24
|
+
display: flex;
|
|
25
|
+
opacity: 1;
|
|
26
|
+
transform: translateY(0);
|
|
27
|
+
}
|
|
28
|
+
|
|
1
29
|
.footer {
|
|
2
30
|
font: 16.34px monospace !important;
|
|
3
31
|
font-size: .75rem !important;
|
|
4
32
|
letter-spacing: normal !important;
|
|
5
33
|
color: var(--text-color);
|
|
6
|
-
padding: 0px
|
|
34
|
+
padding: 0px 15px;
|
|
7
35
|
|
|
8
36
|
&-wrapper {
|
|
9
37
|
height: 24px;
|
|
@@ -12,23 +40,6 @@
|
|
|
12
40
|
background-color: var(--footer-bg-color);
|
|
13
41
|
}
|
|
14
42
|
|
|
15
|
-
.top {
|
|
16
|
-
background-color: transparent;
|
|
17
|
-
margin-bottom: 5px;
|
|
18
|
-
margin-right: 2px;
|
|
19
|
-
|
|
20
|
-
@media (max-width: 1040px) {
|
|
21
|
-
display: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&-link {
|
|
25
|
-
font-size: 3rem;
|
|
26
|
-
display: none;
|
|
27
|
-
text-decoration: none !important;
|
|
28
|
-
z-index: 99;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
43
|
&-copyright-wrap {
|
|
33
44
|
text-align: left;
|
|
34
45
|
|
data/_sass/main.scss
CHANGED
|
@@ -18,7 +18,7 @@ layout:
|
|
|
18
18
|
*/
|
|
19
19
|
:root[data-theme="light"] {
|
|
20
20
|
// margins
|
|
21
|
-
--margin-bottom:
|
|
21
|
+
--margin-bottom: 35px !important; // note: This is the height of the footer.
|
|
22
22
|
|
|
23
23
|
// colors
|
|
24
24
|
--bg-color: #{theme.theme-color(bg, light)};
|
|
@@ -86,7 +86,7 @@ layout:
|
|
|
86
86
|
|
|
87
87
|
:root[data-theme="dark"] {
|
|
88
88
|
// margins
|
|
89
|
-
--margin-bottom:
|
|
89
|
+
--margin-bottom: 35px !important; // note: This is the height of the footer.
|
|
90
90
|
|
|
91
91
|
// colors
|
|
92
92
|
--bg-color: #{theme.theme-color(bg, dark)};
|
|
@@ -57,26 +57,21 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
57
57
|
/* Show/disappear top button
|
|
58
58
|
--------------------------------------------------------------------------------------------------
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
const topButton = document.getElementById("top-link");
|
|
61
61
|
const scrollThreshold = 700;
|
|
62
|
-
window.onscroll = function () { scrollFunction() };
|
|
63
62
|
|
|
64
|
-
|
|
65
|
-
if (
|
|
66
|
-
topButton.
|
|
63
|
+
window.addEventListener("scroll", () => {
|
|
64
|
+
if (window.scrollY > scrollThreshold) {
|
|
65
|
+
topButton.classList.add("show");
|
|
67
66
|
} else {
|
|
68
|
-
topButton.
|
|
67
|
+
topButton.classList.remove("show");
|
|
69
68
|
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
topButton.addEventListener("click", topFunction);
|
|
69
|
+
});
|
|
73
70
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
79
|
-
}
|
|
71
|
+
topButton.addEventListener("click", (e) => {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
74
|
+
});
|
|
80
75
|
|
|
81
76
|
/* function Giscus
|
|
82
77
|
--------------------------------------------------------------------------------------------------
|
data/lib/rawfeed/version.rb
CHANGED