Group up existing components into elements

This commit is contained in:
2019-11-19 16:12:52 +09:00
parent dc4fc1410d
commit c542bcdcd6
77 changed files with 291 additions and 349 deletions

View File

@ -0,0 +1,11 @@
component LoadingAnimation
#loading.sk-cube-grid.fade
.sk-cube.hide
.sk-cube
.sk-cube.hide
.sk-cube
.sk-cube.sk-cube-center
.sk-cube
.sk-cube.hide
.sk-cube
.sk-cube.hide

View File

@ -0,0 +1,42 @@
const loading-anim-duration = 0.8s
const loading-anim-size = 24px
#loading
position fixed
bottom 1.15rem
right 1.15rem
z-index 1
pointer-events none
.sk-cube-grid
horizontal-wrap
width loading-anim-size
height loading-anim-size
transform rotateZ(0deg)
animation sk-rotate loading-anim-duration infinite linear
.sk-cube
width 33.3%
height 33.3%
background-color loading-anim-color
opacity 0.7
border-radius 100%
animation sk-pulse loading-anim-duration infinite linear
.sk-cube-center
opacity 1.0
.hide
visibility hidden
animation sk-rotate
0%
transform rotateZ(0deg)
100%
transform rotateZ(360deg)
animation sk-pulse
0%, 100%
transform scale3D(0.4, 0.4, 0.4)
50%
transform scale3D(0.9, 0.9, 0.9)