mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 15:16:40 -04:00
super simple serverless hit counter for fun (#410)
This commit is contained in:
@ -16,6 +16,31 @@
|
||||
will-change: transform; // stylelint-disable-line plugin/no-unsupported-browser-features
|
||||
}
|
||||
|
||||
// modified from https://tobiasahlin.com/spinkit/
|
||||
.spinner {
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
|
||||
> div {
|
||||
width: 5px;
|
||||
height: 10px;
|
||||
display: inline-block;
|
||||
animation: loader 1.4s infinite ease-in-out both;
|
||||
|
||||
@include colors() {
|
||||
background-color: c(medium-light);
|
||||
}
|
||||
}
|
||||
|
||||
.spin-bounce1 {
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
.spin-bounce2 {
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes wave {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
@ -66,6 +91,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loader {
|
||||
0%,
|
||||
80%,
|
||||
100% {
|
||||
transform: scale(0);
|
||||
}
|
||||
40% {
|
||||
transform: scale(0.6);
|
||||
}
|
||||
}
|
||||
|
||||
// https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
|
@ -6,10 +6,10 @@ div.layout-single {
|
||||
padding-bottom: 1em;
|
||||
|
||||
div#meta {
|
||||
font-size: 0.875em;
|
||||
line-height: 1.3;
|
||||
font-size: 0.825em;
|
||||
line-height: 1.8;
|
||||
letter-spacing: 0.04em;
|
||||
margin-top: 0.8em;
|
||||
margin-top: 0.5em;
|
||||
|
||||
@include colors() {
|
||||
color: c(medium);
|
||||
@ -19,8 +19,15 @@ div.layout-single {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
span.dash {
|
||||
margin: 0 0.7em;
|
||||
> span {
|
||||
margin-right: 1.25em;
|
||||
white-space: nowrap;
|
||||
|
||||
img.emoji {
|
||||
margin-right: 0.25em;
|
||||
vertical-align: -0.27em;
|
||||
cursor: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user