forked from lesander/netflix-viewing-activity
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fancy loading spinner when downloading
- Loading branch information
Showing
5 changed files
with
307 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/** Make sure the buttons keep working, | ||
even after Netflix changes their style. **/ | ||
|
||
/** Default button **/ | ||
.va-button { | ||
position: relative; | ||
font-size: 1em; | ||
padding: 24.5px 2em; | ||
min-width: 74px; | ||
min-height: 50px; | ||
margin: .5em .5em .5em 0; | ||
|
||
display: inline-block; | ||
text-decoration: none; | ||
line-height: 1em; | ||
vertical-align: middle; | ||
cursor: pointer; | ||
font-weight: 400; | ||
letter-spacing: .1px; | ||
-webkit-border-radius: 2px; | ||
-moz-border-radius: 2px; | ||
border-radius: 2px; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
text-align: center; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
border: 0; | ||
|
||
color: #000; | ||
background-color: #e6e6e6; | ||
background-image: -webkit-gradient(linear,left top,left bottom,from(#e6e6e6),to(#ddd)); | ||
background-image: -webkit-linear-gradient(top,#e6e6e6,#ddd); | ||
background-image: -moz-linear-gradient(top,#e6e6e6,#ddd); | ||
background-image: -o-linear-gradient(top,#e6e6e6,#ddd); | ||
background-image: linear-gradient(to bottom,#e6e6e6,#ddd); | ||
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
-moz-box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
} | ||
|
||
.va-button:hover { | ||
text-decoration: none; | ||
background: #eaeaea; | ||
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
-moz-box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
box-shadow: 0 1px 0 rgba(0,0,0,.2); | ||
} | ||
|
||
.va-button:active { | ||
background: #c2c2c2; | ||
} | ||
|
||
/** Small button **/ | ||
.va-button.va-button-small { | ||
display: inline-block; | ||
font-size: 13px; | ||
padding: 12px 2em; | ||
min-width: 98px; | ||
min-height: 37px; | ||
margin-right: .5em; | ||
padding-left: 1em; | ||
padding-right: 1em; | ||
width: auto; | ||
line-height: 1em; | ||
} | ||
|
||
/** Blue button **/ | ||
.va-button-blue { | ||
color: #fff; | ||
background-color: #0080ff; | ||
background-image: -webkit-gradient(linear,left top,left bottom,from(#0080ff),to(#0277ec)); | ||
background-image: -webkit-linear-gradient(top,#0080ff,#0277ec); | ||
background-image: -moz-linear-gradient(top,#0080ff,#0277ec); | ||
background-image: -o-linear-gradient(top,#0080ff,#0277ec); | ||
background-image: linear-gradient(to bottom,#0080ff,#0277ec); | ||
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
-moz-box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
} | ||
|
||
.va-button-blue:hover { | ||
background: #2490fd; | ||
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
-moz-box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
box-shadow: 0 1px 0 rgba(0,0,0,.55); | ||
} | ||
|
||
.va-button-blue:active { | ||
background: #0166c9; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/** | ||
* Created by Scott Galloway | ||
* March 15 2016, April 13 2018 | ||
* https://codepen.io/scottloway/pen/zqoLyQ | ||
*/ | ||
|
||
/** Container **/ | ||
.va-loading-section { | ||
text-align: center; | ||
padding-top: 1em; | ||
} | ||
.va-loading-section h1 { | ||
text-align: left; | ||
font-size: inherit; | ||
} | ||
|
||
/** Circle loader **/ | ||
.va-circle-loader { | ||
margin-bottom: 1em; | ||
border: 1px solid rgba(0, 0, 0, 0.2); | ||
border-left-color: #5cb85c; | ||
animation: va-loading 1.2s infinite linear; | ||
position: relative; | ||
display: inline-block; | ||
vertical-align: top; | ||
border-radius: 50%; | ||
width: 7em; | ||
height: 7em; | ||
} | ||
|
||
.va-load-complete { | ||
-webkit-animation: none; | ||
animation: none; | ||
border-color: #5cb85c; | ||
transition: border 500ms ease-out; | ||
} | ||
|
||
@keyframes va-loading { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
/** Checkmark done **/ | ||
.va-checkmark { | ||
display: none; | ||
} | ||
|
||
.va-checkmark.va-draw:after { | ||
animation-duration: 800ms; | ||
animation-timing-function: ease; | ||
animation-name: va-checkmark; | ||
transform: scaleX(-1) rotate(135deg); | ||
} | ||
|
||
.va-checkmark:after { | ||
opacity: 1; | ||
height: 3.5em; | ||
width: 1.75em; | ||
transform-origin: left top; | ||
border-right: 3px solid #5cb85c; | ||
border-top: 3px solid #5cb85c; | ||
content: ''; | ||
left: 1.75em; | ||
top: 3.5em; | ||
position: absolute; | ||
} | ||
|
||
@keyframes va-checkmark { | ||
0% { | ||
height: 0; | ||
width: 0; | ||
opacity: 1; | ||
} | ||
20% { | ||
height: 0; | ||
width: 1.75em; | ||
opacity: 1; | ||
} | ||
40% { | ||
height: 3.5em; | ||
width: 1.75em; | ||
opacity: 1; | ||
} | ||
100% { | ||
height: 3.5em; | ||
width: 1.75em; | ||
opacity: 1; | ||
} | ||
} |
Oops, something went wrong.