Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
136 lines (123 loc) · 3.12 KB
/
Copy pathstyle.css
File metadata and controls
136 lines (123 loc) · 3.12 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
:root {
--bg: #000000;
--accent-color: #3b82f6;
--accent-glow: rgba(59, 130, 246, 0.4);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
overflow: hidden;
background-color: var(--bg);
}
body {
color: var(--accent-color);
font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
/* ---- 메인 시계 컨테이너 ---- */
.clock {
height: 100%;
min-height: 100svh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: calc(env(safe-area-inset-top, 0px) + 0.5rem)
calc(env(safe-area-inset-right, 0px) + 0.5rem)
calc(env(safe-area-inset-bottom, 0px) + 0.5rem)
calc(env(safe-area-inset-left, 0px) + 0.5rem);
text-align: center;
position: relative;
background: var(--bg);
}
/* ---- 7세그먼트 디지털 시간 숫자 선명 표시 ---- */
.time-digit {
font-family: 'DSEG7-Classic', 'Orbitron', 'Share Tech Mono', monospace;
color: var(--accent-color);
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1;
text-shadow: 0 0 16px var(--accent-glow), 0 0 32px var(--accent-glow);
letter-spacing: 0.02em;
}
/* 시간 / 분 크기 (원래대로 최대 대형) */
.hours,
.minutes {
font-size: clamp(6.5rem, 34vw, 24rem);
margin-bottom: 0.1rem;
}
/* 초 크기 */
.seconds {
font-size: clamp(2.4rem, 11vw, 5.5rem);
margin-top: 0.4rem;
margin-bottom: 0.4rem;
}
/* ---- 날짜 & 요일 (초시계급 대형 사이즈 유지) ---- */
.date {
font-size: clamp(2.2rem, 8.5vw, 5.2rem);
font-family: 'Share Tech Mono', 'Orbitron', 'Noto Sans KR', sans-serif;
font-weight: 700;
color: var(--accent-color);
letter-spacing: 0.04em;
margin-top: 0.4rem;
margin-bottom: 0.3rem;
text-shadow: 0 0 14px var(--accent-glow);
white-space: nowrap;
}
.day {
font-size: clamp(2.6rem, 10vw, 6.2rem);
font-family: 'Noto Sans KR', sans-serif;
font-weight: 900;
color: var(--accent-color);
letter-spacing: 0.08em;
text-shadow: 0 0 16px var(--accent-glow);
}
/* ---- 컨트롤 버튼 ---- */
.controls {
position: fixed;
top: calc(env(safe-area-inset-top, 0px) + 0.8rem);
right: calc(env(safe-area-inset-right, 0px) + 0.8rem);
display: flex;
gap: 0.5rem;
opacity: 0;
transform: translateY(-6px);
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
z-index: 100;
}
.controls.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
.ctrl-btn {
min-width: 2.8rem;
height: 2.8rem;
padding: 0 0.6rem;
border-radius: 2rem;
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: background 0.2s ease, transform 0.1s ease;
}
.ctrl-btn:active {
transform: scale(0.92);
background: rgba(255, 255, 255, 0.2);
}