-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.css
More file actions
229 lines (202 loc) · 4.8 KB
/
common.css
File metadata and controls
229 lines (202 loc) · 4.8 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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
/* Common styles for F1 data visualization pages */
/* CSS Variables - Unified Theme */
:root {
--bg-color: #02040a;
--bg-elevated: #101320;
--panel-color: #101320;
--accent-color: #00e0ff;
--accent-soft: rgba(0, 224, 255, 0.18);
--text-color: #f5f5f5;
--muted-color: #9ca3af;
--border-color: #27272f;
--border-subtle: #272b33;
--radius: 8px;
--radius-lg: 16px;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
--transition-fast: 0.18s ease-out;
--font: system-ui, -apple-system, BlinkMacSystemFont, -system-ui, sans-serif;
}
/* Universal Reset */
* {
box-sizing: border-box;
}
/* Base Body Styles */
body {
margin: 0;
padding: 0;
min-height: 100vh;
font-family: var(--font);
background: radial-gradient(circle at top, #050816 0, #000 55%, #000 100%);
color: var(--text-color);
line-height: 1.4;
}
/* Top Navigation Bar */
.top-nav {
background: #0a0c14;
border-bottom: 1px solid var(--border-color);
padding: 0;
display: flex;
justify-content: flex-start;
position: sticky;
top: 0;
z-index: 1000;
}
.top-nav a {
color: var(--muted-color);
text-decoration: none;
padding: 12px 24px;
font-size: 13px;
font-weight: 500;
transition: all var(--transition-fast);
border-bottom: 2px solid transparent;
}
.top-nav a:hover {
color: var(--text-color);
background: rgba(0, 224, 255, 0.05);
}
.top-nav a.active {
color: var(--accent-color);
border-bottom-color: var(--accent-color);
}
/* Status Message */
.status-message {
font-size: 11px;
color: var(--muted-color);
white-space: nowrap;
margin-left: auto;
}
/* Form Elements */
/* Select Dropdowns */
select {
width: 100%;
padding: 9px 10px;
border-radius: var(--radius-lg);
border: 1px solid var(--border-color);
background-color: #020308;
color: var(--text-color);
font-size: 13px;
outline: none;
appearance: none;
cursor: pointer;
transition:
border-color var(--transition-fast),
box-shadow var(--transition-fast),
background-color var(--transition-fast),
transform var(--transition-fast);
box-shadow: 0 0 0 1px transparent;
/* Custom dropdown arrow */
background-image:
linear-gradient(45deg, transparent 50%, var(--accent-color) 50%),
linear-gradient(135deg, var(--accent-color) 50%, transparent 50%);
background-position:
calc(100% - 16px) 11px,
calc(100% - 11px) 11px;
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
}
select:disabled {
cursor: not-allowed;
opacity: 0.35;
background-image: none;
}
select:hover:not(:disabled) {
border-color: var(--accent-color);
box-shadow: 0 0 12px var(--accent-soft);
transform: translateY(-1px);
}
select:focus-visible {
border-color: var(--accent-color);
box-shadow: 0 0 14px var(--accent-soft);
}
/* Number Inputs */
input[type="number"] {
padding: 6px 8px;
border-radius: var(--radius);
border: 1px solid var(--border-color);
background-color: #020308;
color: var(--text-color);
font-size: 13px;
outline: none;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input[type="number"]:focus {
border-color: var(--accent-color);
box-shadow: 0 0 8px var(--accent-soft);
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type="number"] {
-moz-appearance: textfield;
}
/* Checkboxes */
input[type="checkbox"] {
cursor: pointer;
accent-color: var(--accent-color);
width: 14px;
height: 14px;
}
/* Base Button Styles */
button {
background: #11141a;
color: var(--text-color);
border: 1px solid var(--border-color);
padding: 6px 12px;
border-radius: var(--radius);
font-size: 13px;
cursor: pointer;
transition: all var(--transition-fast);
outline: none;
}
button:hover:not(:disabled) {
border-color: var(--accent-color);
box-shadow: 0 0 8px var(--accent-soft);
transform: translateY(-1px);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Label Styles */
label.small,
.label {
font-size: 11px;
color: var(--muted-color);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.field-label {
display: block;
font-size: 11px;
color: var(--muted-color);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 4px;
}
/* Container/Panel Styles */
.container {
width: 100%;
background: linear-gradient(to bottom right, #050816ee, #020308f0);
border-radius: 24px;
padding: 12px 20px 20px;
border: 1px solid rgba(148, 163, 253, 0.08);
box-shadow:
0 18px 60px rgba(0, 0, 0, 0.85),
0 0 40px rgba(0, 224, 255, 0.05);
backdrop-filter: blur(14px);
}
.panel {
background: var(--panel-color);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
padding: 16px;
}
/* Utility Classes */
.text-muted {
color: var(--muted-color);
}
.text-small {
font-size: 11px;
}