-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathcookie-consent.css
More file actions
88 lines (77 loc) · 1.56 KB
/
cookie-consent.css
File metadata and controls
88 lines (77 loc) · 1.56 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
#cookie-banner {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 99999;
background-color: #ffffff;
color: #1e293b;
width: 100%;
max-width: 400px;
padding: 24px;
border-radius: 12px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
display: none;
flex-direction: column;
gap: 16px;
border: 1px solid #e2e8f0;
font-family: 'Inter', 'Noto Sans TC', sans-serif;
/* Initial hidden state */
opacity: 0;
transform: translateY(30px);
transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#cookie-banner.visible {
opacity: 1;
transform: translateY(0);
}
.cookie-banner-content h3 {
margin: 0 0 8px 0;
font-size: 1.125rem;
font-weight: 600;
color: #0f172a;
}
.cookie-banner-content p {
margin: 0;
font-size: 0.875rem;
line-height: 1.5;
color: #475569;
}
.cookie-banner-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
}
.cookie-btn {
padding: 8px 16px;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
border: none;
font-family: inherit;
}
.cookie-btn.btn-primary {
background-color: #3b82f6;
color: #ffffff;
}
.cookie-btn.btn-primary:hover {
background-color: #2563eb;
}
.cookie-btn.btn-secondary {
background-color: #f1f5f9;
color: #475569;
}
.cookie-btn.btn-secondary:hover {
background-color: #e2e8f0;
}
/* RWD */
@media (max-width: 480px) {
#cookie-banner {
bottom: 16px;
right: 16px;
left: 16px;
width: auto;
max-width: none;
}
}