1
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:
2021-05-30 08:55:37 -04:00
committed by GitHub
parent b3e916e063
commit cfc3334da7
11 changed files with 3571 additions and 114 deletions

View File

@ -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) {
*,

View File

@ -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;
}
}
}