48
48
margin : 0 auto;
49
49
margin-bottom : 20px ;
50
50
box-shadow : 0 10px 10px rgba (0 , 0 , 0 , 0.5 );
51
+ box-shadow : inset 0 0 10px rgba (0 , 0 , 0 , 1 ), 0 10px 20px rgba (0 , 0 , 0 , 0.5 );
51
52
border : 8px solid var (--border );
52
53
border-radius : 50% ;
53
54
background : var (--clock-bg );
62
63
left : 50% ;
63
64
transform : translate (-50% , -90% ) rotate (0deg );
64
65
transform-origin : 50% 90% ;
66
+ /* clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%); */
65
67
transition : transform 0.35s ease-in-out;
66
68
cursor : grab;
67
69
box-sizing : content-box;
68
- border-radius : 4 px ;
70
+ border-radius : 10 px ;
69
71
touch-action : none;
70
72
}
71
73
72
74
.hand .hour {
73
75
z-index : 2 ;
76
+ border : 3px solid color-mix (in srgb, var (--accent-hour ) 60% , black);
74
77
background : var (--accent-hour );
75
- width : 10 px ;
78
+ width : 11 px ;
76
79
height : 80px ;
77
80
}
78
81
79
82
.hand .minute {
80
83
z-index : 1 ;
84
+ border : 3px solid color-mix (in srgb, var (--accent-minute ) 60% , black);
81
85
background : var (--accent-minute );
82
86
width : 5px ;
83
- height : 120 px
87
+ height : 115 px ;
84
88
}
85
89
86
90
# hourHand ,
@@ -100,10 +104,14 @@ p {
100
104
left : 50% ;
101
105
transform : translate (-50% , -50% );
102
106
z-index : 10 ;
107
+ box-shadow : 0 0 5px rgba (0 , 0 , 0 , 0.5 );
108
+ border : 2px solid rgba (0 , 0 , 0 , 0.5 );
103
109
border-radius : 50% ;
104
110
background : var (--text );
111
+ background : radial-gradient (circle at center, # fff 0% , # 999 100% );
105
112
width : 16px ;
106
113
height : 16px ;
114
+ ;
107
115
}
108
116
109
117
.number {
112
120
transform : translate (-50% , -50% );
113
121
cursor : pointer;
114
122
padding : 10px ;
123
+ color : # 333 ;
115
124
font-weight : bold;
116
- font-size : 1.2rem ;
125
+ font-size : 1.4rem ;
126
+ text-shadow : 0px 1px 1px rgba (0 , 0 , 0 , 0.5 );
117
127
}
118
128
119
129
.tick {
125
135
transform-origin : center center;
126
136
cursor : pointer;
127
137
box-sizing : content-box;
138
+ border-radius : 1px ;
128
139
background : var (--text );
129
140
background-clip : content-box;
130
141
padding : 10px ;
@@ -135,17 +146,17 @@ p {
135
146
/* Digital input */
136
147
input [type = "time" ] {
137
148
box-sizing : border-box;
138
- border : 2 px solid var (--border );
139
- border-radius : 8 px ;
149
+ border : 5 px solid var (--border );
150
+ border-radius : 10 px ;
140
151
background : var (--card );
141
- padding : 8 px 12 px ;
152
+ padding : 6 px 25 px ;
142
153
width : 12ch ;
143
154
min-width : 0 ;
144
155
height : 40px ;
145
156
min-inline-size : 0 ;
146
157
color : var (--text );
147
158
font-weight : bold;
148
- font-size : 1 rem ;
159
+ font-size : 1.2 rem ;
149
160
line-height : normal;
150
161
}
151
162
0 commit comments