-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
173 lines (154 loc) · 3.83 KB
/
popup.css
File metadata and controls
173 lines (154 loc) · 3.83 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/* popup.css - shadcn UI 스타일 */
/* shadcn/ui 색상 시스템을 위한 CSS 변수 */
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96%;
--secondary-foreground: 222.2 84% 4.9%;
--muted: 210 40% 96%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96%;
--accent-foreground: 222.2 84% 4.9%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 222.2 84% 4.9%;
--radius: 0.5rem;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: hsl(var(--background));
color: hsl(var(--foreground));
font-feature-settings: "rlig" 1, "calt" 1;
}
/* 컨테이너 */
.popup-container {
width: 320px;
padding: 1.5rem;
background-color: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
/* 헤더 */
.header {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
margin-bottom: 1rem;
}
.logo {
width: 2rem;
height: 2rem;
}
h1 {
font-size: 1.25rem;
font-weight: 600;
color: hsl(var(--primary));
}
/* 설명 */
.description {
font-size: 0.875rem;
color: hsl(var(--muted-foreground));
text-align: center;
margin-bottom: 1.5rem;
}
/* 버튼 */
.btn-primary {
width: 100%;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: calc(var(--radius) - 2px);
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease-in-out;
border: none;
cursor: pointer;
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
height: 2.5rem;
padding: 0.5rem 1rem;
margin-bottom: 1rem;
}
.btn-primary:hover {
background-color: hsl(var(--primary) / 0.9);
}
.btn-primary:focus-visible {
outline: 2px solid hsl(var(--ring));
outline-offset: 2px;
}
.btn-primary:disabled {
opacity: 0.5;
pointer-events: none;
}
/* 상태 메시지 */
.status-base {
font-size: 0.75rem;
padding: 0.75rem;
border-radius: calc(var(--radius) - 2px);
border: 1px solid;
text-align: center;
}
.status-success {
background-color: rgb(240 253 244);
color: rgb(21 128 61);
border-color: rgb(187 247 208);
}
.status-warning {
background-color: rgb(255 251 235);
color: rgb(146 64 14);
border-color: rgb(253 230 138);
}
.status-error {
background-color: hsl(var(--destructive) / 0.1);
color: hsl(var(--destructive));
border-color: hsl(var(--destructive) / 0.2);
}
/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
:root {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
}
.status-success {
background-color: rgb(20 83 45 / 0.2);
color: rgb(187 247 208);
border-color: rgb(20 83 45 / 0.5);
}
.status-warning {
background-color: rgb(146 64 14 / 0.2);
color: rgb(253 230 138);
border-color: rgb(146 64 14 / 0.5);
}
}