Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 6b24f81

Browse files
authored
Merge pull request #18 from chicio/pull-to-refresh 🚀
Pull to refresh 🚀
2 parents c995b24 + 4dd37bf commit 6b24f81

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2555
-5397
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Change Log
22
All changes to Chicio coding will be documented in this file.
33

4+
## [1.14.0](https://github.com/chicio/chicio.github.io/releases/tag/1.14.0)
5+
Release date: 2019-09-15.
6+
7+
#### Added
8+
9+
- new pull to refresh feature
10+
- updated dependencies
11+
12+
#### Fixed
13+
14+
- flow build removes old js build
15+
- improved code quality with eslint
16+
417
## [1.13.1](https://github.com/chicio/chicio.github.io/releases/tag/1.13.1)
518
Release date: 2019-07-28.
619

_css/blog-pull-to-refresh.scss

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
html {
2+
overscroll-behavior-y: contain;
3+
}
4+
5+
.pullable-content {
6+
margin-top: 10px
7+
}
8+
9+
.pull-to-refresh {
10+
height: 100px;
11+
background-color: $general-background;
12+
margin-top: 55px;
13+
margin-bottom: 10px;
14+
box-shadow: inset 0px -2px 6px 1px $divider-color;
15+
display: flex;
16+
flex-direction: column;
17+
justify-content: flex-end;
18+
align-items: center;
19+
padding: 10px;
20+
21+
&.visible-pull {
22+
visibility: visible;
23+
}
24+
25+
&.hidden-pull {
26+
visibility: hidden;
27+
}
28+
29+
.pull-to-refresh-status {
30+
font-weight: bold;
31+
font-size: 14px;
32+
}
33+
34+
.pull-to-refresh-loader {
35+
border: 3px solid $primary-color-dark;
36+
border-top: 3px solid $primary-color-light;
37+
border-radius: 50%;
38+
width: 30px;
39+
height: 30px;
40+
margin-bottom: 10px;
41+
opacity: 0;
42+
43+
&.animate {
44+
animation: spin 1.25s linear infinite;
45+
}
46+
47+
@keyframes spin {
48+
0% { transform: rotate(0deg); }
49+
100% { transform: rotate(360deg); }
50+
}
51+
}
52+
}
53+
54+
.start-pull {
55+
transform: translateY(-100px);
56+
}
57+
58+
.end-pull {
59+
transform: translateY(-100px) !important;
60+
transition: 0.4s ease-in-out;
61+
}

_css/style.blog.archive.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
@import "./blog-common.scss";
33
@import "./blog-masthead.scss";
44
@import "./blog-header.scss";
5-
@import "./blog-archive.scss";
5+
@import "./blog-archive.scss";
6+
@import "./blog-pull-to-refresh.scss";

_css/style.blog.home.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
@import "./blog-masthead.scss";
77
@import "./blog-header.scss";
88
@import "./blog-pages-button.scss";
9+
@import "./blog-pull-to-refresh.scss";

_css/style.blog.post.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
@import "./blog-post.scss";
1010
@import "./blog-recent-posts.scss";
1111
@import "./blog-post-tags.scss";
12-
@import "./disqus.scss";
12+
@import "./disqus.scss";
13+
@import "./blog-pull-to-refresh.scss";

_css/style.blog.tags.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
@import "./blog-masthead.scss";
44
@import "./blog-header.scss";
55
@import "./blog-post-tags.scss";
6-
@import "./blog-tags.scss";
6+
@import "./blog-tags.scss";
7+
@import "./blog-pull-to-refresh.scss";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div id="pull-to-refresh" class="pull-to-refresh start-pull hidden-pull">
2+
<div id="pull-to-refresh-loader" class="pull-to-refresh-loader"></div>
3+
<div id="pull-to-refresh-status" class="pull-to-refresh-status">
4+
Pull down to refresh
5+
</div>
6+
</div>

_includes/critical-blog-post-archive.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)