Skip to content

Commit

Permalink
modularized css
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 11, 2018
1 parent 4395112 commit 3b675ea
Show file tree
Hide file tree
Showing 12 changed files with 1,200 additions and 1,335 deletions.
14 changes: 14 additions & 0 deletions src/css/balloon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@import '../../node_modules/balloon-css/balloon.css';

[data-balloon]:before {
display: none;
}

[data-balloon]:after {
padding: 0.3em 0.7em;
background: rgba(17, 17, 17, 0.7);
}

[data-balloon][data-balloon-pos="up"]:after {
margin-bottom: 0;
}
85 changes: 85 additions & 0 deletions src/css/bezel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.dplayer-bezel {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
font-size: 22px;
color: #fff;
pointer-events: none;
.dplayer-bezel-icon {
position: absolute;
top: 50%;
left: 50%;
margin: -26px 0 0 -26px;
height: 52px;
width: 52px;
padding: 12px;
box-sizing: border-box;
background: rgba(0, 0, 0, .5);
border-radius: 50%;
opacity: 0;
pointer-events: none;
&.dplayer-bezel-transition {
animation: bezel-hide .5s linear;
}
@keyframes bezel-hide {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(2);
}
}
}
.dplayer-danloading {
position: absolute;
top: 50%;
margin-top: -7px;
width: 100%;
text-align: center;
font-size: 14px;
line-height: 14px;
animation: my-face 5s infinite ease-in-out;
}
.diplayer-loading-icon {
display: none;
position: absolute;
top: 50%;
left: 50%;
margin: -18px 0 0 -18px;
height: 36px;
width: 36px;
pointer-events: none;
.diplayer-loading-hide {
display: none;
}
.diplayer-loading-dot {
animation: diplayer-loading-dot-fade .8s ease infinite;
opacity: 0;
fill: #fff;
transform-origin: 4px 4px;
@for $i from 7 through 1 {
&.diplayer-loading-dot-#{$i} {
animation-delay: .1s * $i;
}
}
}
@keyframes diplayer-loading-dot-fade {
0% {
opacity: .7;
transform: scale(1.2, 1.2)
}
50% {
opacity: .25;
transform: scale(.9, .9)
}
to {
opacity: .25;
transform: scale(.85, .85)
}
}
}
}
Loading

0 comments on commit 3b675ea

Please sign in to comment.