cavepedia/src/static/cavepedia.css

179 lines
3.2 KiB
CSS

body {
background-color: darkgray;
font-size: 18px;
line-height: 1.6;
margin: 40px auto;
max-width: 700px;
text-align: center;
}
body p, #howto {
text-align: left;
}
#search {
height: 25px;
width: 300px;
}
/* bat */
.bat-container {
width: 125px;
height: 170px;
margin: auto;
bottom: 80px;
}
.pin-bottom {
right: 0;
bottom: 0;
left: 0;
}
.bat-wrapper {
position: absolute;
height: 170px;
width: 125px;
animation: ease-in-out wiggle 7s 0s infinite alternate both;
}
.bat {
background-size: 2250px 170px;
background-image: url('/static/bat.svg');
height: 170px;
width: 125px;
animation: flapping .4s steps(18) infinite alternate;
}
.bat-leg-1 {
bottom: 54px;
left: 55px;
display: block;
width: 4px;
height: 15px;
position: absolute;
border-radius: 12px;
background: #008dba;
animation: ease-in-out leg 2s 0s infinite alternate both;
}
.bat-leg-2 {
bottom: 54px;
left: 65px;
display: block;
width: 4px;
height: 15px;
position: absolute;
border-radius: 12px;
background: #008dba;
animation: ease-in-out leg2 2s 0s infinite alternate both;
}
.bat-shadow {
position: relative;
width: 20px;
height: 10px;
border-radius: 50%;
background-color: #005773;
opacity: .2;
top: 180px;
left: 60px;
animation: ease-in-out bat-shadow 7s 0s infinite alternate both;
}
@keyframes wiggle {
0% {
transform: rotate( 0deg) translateY(-22px) scale(1.0);
}
33% {
transform: rotate( -10deg) translateY(0px) scale(1.05) translateX(-15px);
}
50% {
transform: rotate( 0deg) translateY(7px) scale(1.0) translateX(5px);
}
66% {
transform: rotate( 5deg) translateY(15px);
}
75% {
transform: rotate( 0deg) translateY(8px);
}
100% {
transform: rotate( 10deg) translateY(0px) translateX(-15px);
}
}
@-webkit-keyframes wiggle {
0% {
transform: rotate( 0deg) translateY(-22px) scale(1.0);
}
33% {
transform: rotate( -10deg) translateY(0px) scale(1.05) translateX(-15px);
}
50% {
transform: rotate( 0deg) translateY(7px) scale(1.0) translateX(5px);
}
66% {
transform: rotate( 5deg) translateY(15px);
}
75% {
transform: rotate( 0deg) translateY(8px);
}
100% {
transform: rotate( 10deg) translateY(0px) translateX(-15px);
}
}
@keyframes flapping {
100% {
background-position: -2250px 0px;
}
}
@-webkit-keyframes flapping {
100% {
background-position: -2250px 0px;
}
}
@keyframes bat-shadow {
0% {
transform: scale(.7) translateX(0px);
}
33% {
transform: scale(1) translateX(-5px);
}
50% {
transform: scale(1.1) translateX(4px);
}
66% {
transform: scale(1.3);
}
75% {
transform: scale(1.2);
}
100% {
transform: scale(1.0) translateX(-5px);
}
}
@-webkit-keyframes bat-shadow {
0% {
transform: scale(.7) translateX(0px);
}
33% {
transform: scale(1) translateX(-5px);
}
50% {
transform: scale(1.1) translateX(4px);
}
66% {
transform: scale(1.3);
}
75% {
transform: scale(1.2);
}
100% {
transform: scale(1.0) translateX(-5px);
}
}