153 lines
3.8 KiB
SCSS
153 lines
3.8 KiB
SCSS
/* Variables */
|
|
$centersize: 100px;
|
|
$center1size: 250px;
|
|
$bezelsize: 285px;
|
|
$vibratesize: $centersize*1.06;
|
|
$vibratemargin:-$vibratesize/2;
|
|
$vibrateblurinner: 3px;
|
|
$vibrateblurouter: 2px;
|
|
|
|
/* Extenders */
|
|
%base {
|
|
border-radius: 100%;
|
|
}
|
|
%rivet {
|
|
position: absolute;
|
|
height: 8px;
|
|
width: 8px;
|
|
background-color: #555;
|
|
border-radius: 100%;
|
|
box-shadow: inset 0 0 3px #000, 0 0 2px #000;
|
|
}
|
|
|
|
/* Keyframes */
|
|
@keyframes vibrateInner {
|
|
50% {
|
|
-webkit-filter: blur($vibrateblurinner);
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
|
|
@keyframes vibrateOuter {
|
|
0% {
|
|
-webkit-filter: blur($vibrateblurouter);
|
|
filter: blur($vibrateblurouter);
|
|
}
|
|
30% {
|
|
-webkit-filter: blur(0);
|
|
filter: blur(0);
|
|
}
|
|
50% {
|
|
-webkit-filter: blur($vibrateblurouter);
|
|
filter: blur($vibrateblurouter);
|
|
}
|
|
65% {
|
|
-webkit-filter: blur(0);
|
|
filter: blur(0);
|
|
}
|
|
70% {
|
|
-webkit-filter: blur($vibrateblurouter);
|
|
filter: blur($vibrateblurouter);
|
|
}
|
|
80% {
|
|
-webkit-filter: blur($vibrateblurouter);
|
|
filter: blur($vibrateblurouter);
|
|
}
|
|
100% {
|
|
-webkit-filter: blur($vibrateblurouter);
|
|
filter: blur($vibrateblurouter);
|
|
}
|
|
}
|
|
|
|
#beatSpeakerCenterInner {
|
|
@extend %base;
|
|
height: $centersize;
|
|
width: $centersize;
|
|
position: absolute;
|
|
bottom: 60px;
|
|
right: 60px;
|
|
-webkit-filter: blur(1px);
|
|
filter: blur(1px);
|
|
background: rgb(0,0,0);
|
|
background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%, rgba(79,79,79,1) 0%, rgba(0,0,0,1) 100%);
|
|
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,1)), color-stop(0%,rgba(79,79,79,1)), color-stop(100%,rgba(0,0,0,1)));
|
|
background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%,rgba(79,79,79,1) 0%,rgba(0,0,0,1) 100%);
|
|
background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%,rgba(79,79,79,1) 0%,rgba(0,0,0,1) 100%);
|
|
background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,1) 0%,rgba(79,79,79,1) 0%,rgba(0,0,0,1) 100%);
|
|
background: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%,rgba(79,79,79,1) 0%,rgba(0,0,0,1) 100%);
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 1);
|
|
}
|
|
.vibrateInner{
|
|
-webkit-animation: vibrateInner 0.15s linear 1;
|
|
animation: vibrateInner 0.15s linear 1;
|
|
}
|
|
#beatSpeakerCenterOuter {
|
|
@extend %base;
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 16px;
|
|
height: $center1size;
|
|
width: $center1size;
|
|
border: 15px solid #333;
|
|
box-shadow: -3px -3px 15px rgba(0, 0, 0, 0.4), inset -3px -3px 15px rgba(0, 0, 0, 0.5);
|
|
background: -moz-linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
|
background: -webkit-linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
|
background: -o-linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
|
background: -ms-linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
|
background: linear-gradient(130deg, rgba(117, 117, 117, 1) 55%, rgba(220, 220, 220, 1) 100%);
|
|
}
|
|
.vibrateOuter {
|
|
-webkit-animation: vibrateOuter 0.15s linear 1;
|
|
animation: vibrateOuter 0.15s linear 1;
|
|
}
|
|
.bezel {
|
|
@extend %base;
|
|
margin: 0 auto;
|
|
height: $bezelsize;
|
|
width: $bezelsize;
|
|
position: relative;
|
|
background-color: #A8A8A8;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), inset 3px 3px 10px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.8), inset 0 0 30px -5px rgba(0, 0, 0, 0.8);
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.rivet1 {
|
|
@extend %rivet;
|
|
top: 6px;
|
|
left: 50%;
|
|
}
|
|
.rivet2 {
|
|
@extend %rivet;
|
|
bottom: 6px;
|
|
left: 50%;
|
|
}
|
|
.rivet3 {
|
|
@extend %rivet;
|
|
top: 50%;
|
|
left: 6px;
|
|
}
|
|
.rivet4 {
|
|
@extend %rivet;
|
|
top: 50%;
|
|
right: 6px;
|
|
}
|
|
.rivet5 {
|
|
@extend %rivet;
|
|
top: 18%;
|
|
left: 13.7%;
|
|
}
|
|
.rivet6 {
|
|
@extend %rivet;
|
|
top: 18%;
|
|
right: 13.5%;
|
|
}
|
|
.rivet7 {
|
|
@extend %rivet;
|
|
bottom: 17%;
|
|
left: 13.5%;
|
|
}
|
|
.rivet8 {
|
|
@extend %rivet;
|
|
bottom: 17%;
|
|
right: 13.5%;
|
|
}
|