Spaces:
Sleeping
Sleeping
File size: 2,073 Bytes
fca4ff8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | /* this style is used inline in extras.js */
/* grain for dither */
.grain {
position: absolute;
mix-blend-mode: difference;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg' version='1.1' width='256' height='256' viewBox='0 0 256 256'><defs><filter id='grain' x='0' y='0' width='1' height='1' filterUnits='objectBoundingBox' primitiveUnits='userSpaceOnUse' color-interpolation-filters='linearRGB'><feTurbulence type='turbulence' baseFrequency='0.7' numOctaves='7' seed='42' stitchTiles='stitch' x='-1%' y='-1%' width='102%' height='102%' result='turbulence' id='feTurbulence2' /><feSpecularLighting surfaceScale='7' specularConstant='3' specularExponent='10' lighting-color='%23ffffff' x='-1%' y='-1%' width='102%' height='102%' in='turbulence' result='specularLighting' id='feSpecularLighting'><feDistantLight azimuth='3' elevation='163' id='feDistantLight' /></feSpecularLighting></filter></defs><rect width='320' height='320' fill='%23000000' id='blackbody' x='-32' y='-32' opacity='0.03' /><rect width='320' height='320' fill='%23ffffff' filter='url(%23grain)' id='noise' x='-32' y='-32' opacity='0.03' /></svg>");
width: 100%;
height: 100%;
}
/* distraction */
#dwclock {
opacity: 0.33;
margin: auto;
width: 100vmin;
height: 100vmin;
filter: blur(2vmin) saturate(2);
}
#hour,
#min {
position: absolute;
width: 100vmin;
height: 100vmin;
}
.hand {
--min: 40vmin;
--hour: 28vmin;
--tsf: translateY(calc(50vmin - var(--min)));
margin: 0 auto auto ;
border-right: 2vmin solid transparent;
border-bottom: var(--min) solid #60f;
border-left: 2vmin solid transparent;
border-radius: 2vmin;
background-image: linear-gradient(0deg, var(--bg) 0%, #60f 100%);
width: 3vmin;
height: var(--min);
}
#hour .hand {
--tsf: translateY(calc(50vmin - var(--hour)));
border-bottom: var(--hour) solid #20f;
background-image: linear-gradient(0deg, var(--bg) 0%, #20f 100%);
height: var(--hour);
} |