-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrutiger.css
More file actions
205 lines (189 loc) · 6.12 KB
/
frutiger.css
File metadata and controls
205 lines (189 loc) · 6.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
:root {
/* Primitives from COLORS.md */
--c-white: #ffffff;
--c-dark: #172038;
--c-navy: #253a5e;
--c-blue: #4f8fba;
--c-blue-bright: #29adff;
--c-blue-dark: #3c5e8b;
--c-cyan: #a8edea;
--c-cyan-light: #d7f0ef;
--c-cyan-dark: #39dcd5;
/* Derived button colors (OKLCH from blue-bright) */
--c-btn-blue: #007df7;
--c-btn-blue-hover: #2195fe;
--c-btn-edge: #012658;
--c-btn-active: #11315f;
--c-white-ice: #effdfc;
--c-glow-cyan: #77e2dc;
--c-ocean: #0096af;
--c-caustic: #94e5e0;
/* Input field colors */
--c-input-bg: #e8e8e8;
--c-input-bg-focus: #f0f0f0;
--c-placeholder: #8a9a99;
/* Alpha scale from COLORS.md */
--alpha-white-75: rgba(255, 255, 255, 0.75);
--alpha-white-50: rgba(255, 255, 255, 0.50);
--alpha-white-25: rgba(255, 255, 255, 0.25);
--alpha-white-20: rgba(255, 255, 255, 0.20);
--alpha-white-10: rgba(255, 255, 255, 0.10);
--alpha-black-50: rgba(0, 0, 0, 0.50);
--alpha-black-25: rgba(0, 0, 0, 0.25);
--alpha-black-10: rgba(0, 0, 0, 0.10);
--alpha-black-05: rgba(0, 0, 0, 0.05);
/* Derived alphas (from base colors) */
--alpha-btn-blue-60: rgba(0, 125, 247, 0.6);
--alpha-btn-blue-25: rgba(0, 125, 247, 0.25);
--alpha-glow-50: rgba(119, 226, 220, 0.5);
--alpha-glow-15: rgba(119, 226, 220, 0.15);
--alpha-ocean-20: rgba(0, 150, 175, 0.2);
--alpha-caustic-50: rgba(148, 229, 224, 0.5);
--alpha-dark-70: rgba(23, 32, 56, 0.7);
--alpha-navy-40: rgba(37, 58, 94, 0.4);
--alpha-navy-25: rgba(37, 58, 94, 0.25);
/* Gradients */
--grad-shine: radial-gradient(75% 50% at 50% 0%, var(--c-white-ice), transparent);
--grad-glow: radial-gradient(75% 35% at 50% 80%, var(--c-glow-cyan), transparent);
--grad-caustic:
linear-gradient(to bottom, rgba(0, 0, 20, 0.5) 0%, transparent 50%),
radial-gradient(70% 70% at 50% 110%, var(--c-ocean) 10%, transparent 60%),
radial-gradient(40% 30% at 50% 95%, var(--c-caustic) 0%, transparent 50%);
/* Input colors */
--c-input-rim: #c7cfcc;
/* Input shadows - neumorphic inset, light from above */
--shadow-input-inset:
inset 0 2px 4px var(--alpha-black-10),
inset 0 1px 2px var(--alpha-black-05),
inset 0 -2px 3px var(--alpha-white-75),
0 1px 2px var(--c-white);
--shadow-input-focus:
inset 0 2px 4px var(--alpha-black-10),
inset 0 1px 2px var(--alpha-black-05),
inset 0 -2px 3px var(--alpha-white-75),
0 1px 2px var(--c-white),
0 0 0 3px var(--alpha-btn-blue-25);
}
*, *::before, *::after {
box-sizing: border-box;
}
body {
font: 400 1rem/1.5 -apple-system, system-ui, sans-serif;
color: var(--c-dark);
}
form {
display: flex;
align-items: center;
gap: 8px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea {
font-weight: 600;
font-size: 0.85rem;
padding: 8px 16px;
border: 2px solid var(--c-input-bg);
border-radius: 50px;
background:
repeating-linear-gradient(
0deg,
rgba(0,0,0,0.03) 0px,
transparent 1px,
transparent 2px
),
var(--c-input-bg);
box-shadow: var(--shadow-input-inset);
color: #555;
text-shadow:
0 -1px 1px rgba(0,0,0,0.2),
0 1px 2px var(--c-white);
outline: none;
transition: background 0.15s ease-out, box-shadow 0.15s ease-out;
}
input::placeholder, textarea::placeholder {
color: var(--c-placeholder);
text-shadow: 0 1px 1px var(--c-white);
}
input:focus, textarea:focus {
background: var(--c-input-bg-focus);
box-shadow: var(--shadow-input-focus);
}
button {
position: relative;
font-weight: 600;
font-size: 0.85rem;
color: var(--c-white);
cursor: pointer;
padding: 8px 16px;
border-radius: 50px;
border: 1px solid var(--c-btn-blue);
border-bottom: 3px solid var(--c-btn-edge);
background-color: var(--c-btn-blue);
background-image: var(--grad-shine), var(--grad-glow);
box-shadow:
inset 0 -2px 4px 1px var(--alpha-btn-blue-60),
inset 0 -4px 4px 1px var(--c-glow-cyan),
inset 0 0 2px 1px var(--alpha-white-20),
0 2px 1px 0 rgba(0, 125, 247, 0.5);
text-shadow: 0 2px 3px var(--c-btn-edge);
transition:
border-color 0.12s ease-out,
border-bottom-width 0.08s ease-out,
transform 0.08s ease-out,
background-color 0.12s ease-out,
background-image 0.15s ease-out,
box-shadow 0.2s ease-out;
}
button::before, button::after {
content: "";
position: absolute;
border-radius: 50px;
}
button::before {
top: 2px;
left: 12px;
right: 12px;
height: 40%;
background: linear-gradient(to bottom, var(--c-white-ice), transparent);
opacity: 0.75;
pointer-events: none;
transition: opacity 0.15s ease-out;
}
button::after {
inset: 0;
z-index: -1;
background: var(--alpha-btn-blue-25);
filter: blur(8px);
transform: translateY(10px);
transition: transform 0.2s ease-out, filter 0.2s ease-out, background 0.25s ease-out, box-shadow 0.2s ease-out;
}
button:hover {
background-color: var(--c-btn-blue-hover);
box-shadow:
inset 0 -2px 6px 2px var(--alpha-btn-blue-60),
inset 0 -6px 8px 2px var(--c-glow-cyan),
inset 0 0 4px 1px var(--alpha-white-50),
0 0 24px var(--alpha-glow-50),
0 6px 20px var(--alpha-navy-25);
}
button:hover::before { opacity: 1; }
button:hover::after { transform: translateY(14px); filter: blur(12px); }
button:active {
border-bottom-width: 2px;
transform: translateY(1px);
border-color: var(--c-btn-active);
background-color: var(--c-btn-active);
background-image: var(--grad-caustic);
box-shadow:
inset 0 6px 15px var(--alpha-dark-70),
inset 0 -2px 4px var(--alpha-caustic-50),
inset 0 0 10px var(--alpha-navy-40),
0 0 8px var(--alpha-glow-15);
}
button:active::before { opacity: 0.3; }
button:active::after { transform: translateY(4px); filter: blur(6px); background: var(--alpha-ocean-20); }