-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
73 lines (66 loc) · 2.18 KB
/
style.css
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* ----------------------------------------------------------------------
Neumorphic Digital Clock - Stylesheet
Author: bufferwise (https://discord.gg/26MMXRHgZB)
---------------------------------------------------------------------- */
/* GLOBAL RESET & DEFAULT STYLES ---------------------------------------- */
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* BODY STYLING --------------------------------------------------------- */
body {
font-family: 'Roboto Mono', monospace;
font-size: 4vmin;
min-height: 100vh;
display: grid;
place-items: center;
overflow: hidden;
background: linear-gradient(-45deg, #B2D7FF, #87CEEB); /* Light teal to darker teal gradient */
}
/* CLOCK STRIPS (Hours, Minutes, Seconds) ------------------------------- */
.hr, .min, .sec {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 4vmin;
align-items: start;
}
/* CLOCK NUMBERS -------------------------------------------------------- */
.number {
user-select: none;
width: 8vmin;
height: 8vmin;
display: grid;
place-items: center;
color: #FFF; /* White text color */
transition: all 500ms 100ms ease;
border-radius: 50%;
}
/* HIGHLIGHTED (POP EFFECT) NUMBERS ------------------------------------- */
.number.pop {
color: #FFC0CB; /* Pastel pink highlight */
font-weight: bold;
transform: scale(1.3);
background-color: #E0E0E0; /* Light grey background */
box-shadow:
-1vmin -1vmin 2vmin -0.5vmin #F5F5F5, /* Softer light shadow */
1vmin 1vmin 2vmin #A9A9A9; /* Darker shadow for depth */
}
/* CLOCK STRIP CONTAINERS ----------------------------------------------- */
.strip {
transition: transform 500ms ease-in-out;
border-radius: 1.333vmin;
background-color: #D7EBEE; /* Lighter teal background */
box-shadow:
-1vmin -1vmin 2vmin -0.5vmin #F0F0F0, /* Softer light shadow */
1vmin 1vmin 2vmin #A9A9A9; /* Darker shadow for depth */
}
/* CLOCK LAYOUT --------------------------------------------------------- */
.clock {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 8vmin;
height: 4vmin;
position: relative;
padding: 0 4vmin;
}