-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolor_flipper.css
More file actions
159 lines (137 loc) · 2.78 KB
/
color_flipper.css
File metadata and controls
159 lines (137 loc) · 2.78 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
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap");
:root {
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--text-color: #ffffff;
--transition-speed: 0.4s;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Outfit", sans-serif;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
transition: background-color var(--transition-speed) ease;
overflow: hidden;
background-color: #1a1a1a;
}
.container {
position: relative;
z-index: 10;
background: var(--glass-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 3rem;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
text-align: center;
max-width: 400px;
width: 90%;
}
.color-display {
margin-bottom: 2rem;
}
#bgtext {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 2px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 0.5rem;
}
.hex-code {
font-size: 3rem;
font-weight: 600;
color: var(--text-color);
display: block;
margin-bottom: 1rem;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.timer-section {
margin: 1.5rem 0;
}
#countdown {
font-size: 1.2rem;
font-weight: 300;
color: var(--text-color);
background: rgba(0, 0, 0, 0.2);
display: inline-block;
padding: 0.4rem 1.2rem;
border-radius: 50px;
}
#hex-label {
transition: transform 0.2s ease;
}
#hex-label.pop {
transform: scale(1.1);
}
.controls {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 2rem;
}
.btn {
padding: 0.8rem 1.5rem;
border: none;
border-radius: 12px;
cursor: pointer;
font-family: inherit;
font-weight: 500;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
#copybutton {
background: rgba(255, 255, 255, 0.15);
color: white;
}
#copybutton:hover {
background: rgba(255, 255, 255, 0.25);
transform: translateY(-2px);
}
#button {
background: white;
color: #1a1a1a;
box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
#button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
#button:active {
transform: translateY(0);
}
.toast {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 0.8rem 1.5rem;
border-radius: 10px;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
transform: translateX(-50%) translateY(0);
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.color-display {
animation: fadeIn 0.8s ease-out;
}