aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player/spinner.scss
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-11 15:25:46 +0200
committerChocobozzz <me@florianbigard.com>2018-06-11 15:25:46 +0200
commit2a19a1e4de848c8c60ef4b4e606770220b3a28df (patch)
treef4d37dc34887df5ade26fab2a25a741674b0d77c /client/src/sass/player/spinner.scss
parentf286060081609f9f96475da7f80225f47de92787 (diff)
downloadPeerTube-2a19a1e4de848c8c60ef4b4e606770220b3a28df.tar.gz
PeerTube-2a19a1e4de848c8c60ef4b4e606770220b3a28df.tar.zst
PeerTube-2a19a1e4de848c8c60ef4b4e606770220b3a28df.zip
Split player sass file
Diffstat (limited to 'client/src/sass/player/spinner.scss')
-rw-r--r--client/src/sass/player/spinner.scss54
1 files changed, 54 insertions, 0 deletions
diff --git a/client/src/sass/player/spinner.scss b/client/src/sass/player/spinner.scss
new file mode 100644
index 000000000..a6af8da33
--- /dev/null
+++ b/client/src/sass/player/spinner.scss
@@ -0,0 +1,54 @@
1@import '_variables';
2@import '_mixins';
3
4// Thanks: https://projects.lukehaas.me/css-loaders/
5.vjs-loading-spinner {
6 left: 50%;
7 font-size: 10px;
8 text-indent: -9999em;
9 border: 0.7em solid rgba(255, 255, 255, 0.2);
10 border-left-color: #ffffff;
11 transform: translateZ(0);
12 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
13 overflow: hidden;
14 visibility: hidden;
15
16 &::before {
17 animation: none !important;
18 }
19
20 &::after {
21 border-radius: 50%;
22 width: 6em;
23 height: 6em;
24 animation: none !important;
25 }
26
27 @keyframes spinner {
28 0% {
29 transform: rotate(0deg);
30 }
31 100% {
32 transform: rotate(360deg);
33 }
34 }
35
36 @keyframes vjs-spinner-show {
37 0% {
38 display: none;
39 opacity: 0;
40 }
41
42 1% {
43 display: block;
44 visibility: visible;
45 opacity: 0;
46 }
47
48 100% {
49 display: block;
50 visibility: visible;
51 opacity: 1;
52 }
53 }
54} \ No newline at end of file