77 lines
1.3 KiB
CSS
77 lines
1.3 KiB
CSS
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
--stroke-width: clamp(4px, 0.5vw, 8px);
|
|
|
|
display: grid;
|
|
place-items: center;
|
|
background: #f1f1f1;
|
|
font-family: "Space Mono";
|
|
font-weight: 700;
|
|
font-size: clamp(0.75rem, 1.25vw, 1.5rem);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.grid {
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
gap: clamp(0.75rem, 1.5vw, 2rem);
|
|
padding: clamp(0.75rem, 1.5vw, 2rem);
|
|
background: #fff;
|
|
grid-column: 1;
|
|
}
|
|
|
|
.grid div {
|
|
position: relative;
|
|
background-size: cover;
|
|
background-position: center center;
|
|
}
|
|
|
|
.grid div:hover {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.circle:after {
|
|
position: absolute;
|
|
content: "";
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 20%;
|
|
aspect-ratio: 1 / 1;
|
|
background: #000;
|
|
border-radius: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.circle--outline:after {
|
|
background: #fff;
|
|
border: var(--stroke-width) solid #000;
|
|
}
|
|
|
|
.tracker {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
font-size: 3rem;
|
|
line-height: 3rem;
|
|
transform: translate(-50%, -50%);
|
|
color: red;
|
|
font-weight: 400;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
}
|
|
|
|
.instruction {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.125rem;
|
|
text-decoration-thickness: 0.125rem;
|
|
color: blue;
|
|
} |