-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
173 lines (148 loc) · 7.33 KB
/
Copy pathstyles.css
File metadata and controls
173 lines (148 loc) · 7.33 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
:root {
color-scheme: dark;
--bg: #07111f;
--surface: rgba(15, 28, 47, 0.88);
--surface-strong: #12233b;
--line: #263b57;
--text: #e7eef8;
--muted: #9aabc2;
--accent: #38bdf8;
--accent-strong: #0284c7;
--safe: #34d399;
--warn: #fbbf24;
--danger: #fb7185;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
color: var(--text);
background:
radial-gradient(circle at 10% -10%, rgba(14, 165, 233, 0.24), transparent 35rem),
radial-gradient(circle at 95% 8%, rgba(52, 211, 153, 0.14), transparent 30rem),
var(--bg);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(1380px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.hero {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 32px;
border: 1px solid rgba(56, 189, 248, 0.3);
border-radius: 24px;
background: linear-gradient(130deg, rgba(12, 74, 110, 0.94), rgba(15, 118, 110, 0.72));
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.eyebrow { margin: 0 0 8px; color: #bae6fd; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; }
.hero-copy { max-width: 680px; margin: 12px 0 0; color: #d9f3ff; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.readonly-badge, .button {
display: inline-flex;
min-height: 42px;
align-items: center;
justify-content: center;
padding: 0 16px;
border-radius: 12px;
white-space: nowrap;
}
.readonly-badge { background: rgba(3, 15, 29, 0.45); color: #a7f3d0; font-weight: 800; }
.button { border: 1px solid rgba(255, 255, 255, 0.24); cursor: pointer; text-decoration: none; }
.button-secondary { background: rgba(3, 15, 29, 0.38); color: white; }
.button:hover, .button:focus-visible { border-color: var(--accent); background: rgba(2, 132, 199, 0.28); outline: none; }
.safety-note {
margin: 18px 0;
padding: 15px 18px;
border: 1px solid rgba(251, 191, 36, 0.35);
border-radius: 14px;
background: rgba(120, 53, 15, 0.22);
color: #fde68a;
line-height: 1.6;
}
.toolbar {
padding: 22px;
border: 1px solid var(--line);
border-radius: 18px;
background: var(--surface);
backdrop-filter: blur(18px);
}
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: 0.9rem; }
.stats span { padding: 7px 11px; border-radius: 9px; background: rgba(38, 59, 87, 0.58); }
.stats strong { color: var(--accent); }
.search-box {
display: flex;
align-items: center;
gap: 10px;
padding: 0 15px;
border: 1px solid var(--line);
border-radius: 13px;
background: #081422;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
.search-box input { width: 100%; padding: 14px 0; border: 0; outline: 0; color: white; background: transparent; }
.search-box input::placeholder { color: #71839a; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 17px; }
.category-list, .subcategory-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subcategory-list { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-button {
padding: 8px 13px;
border: 1px solid var(--line);
border-radius: 999px;
background: var(--surface-strong);
color: var(--muted);
cursor: pointer;
}
.filter-button:hover, .filter-button:focus-visible { border-color: var(--accent); color: white; outline: none; }
.filter-button.active { border-color: var(--accent); background: var(--accent-strong); color: white; }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.sort-control select { padding: 8px 30px 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: white; background: var(--surface-strong); }
.status-message { min-height: 24px; margin: 18px 2px 0; color: var(--muted); }
.status-message.error { color: #fecaca; }
.command-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 17px; margin-top: 12px; }
.command-card { display: flex; flex-direction: column; min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }
.command-card:hover { transform: translateY(-2px); border-color: #3e5c7d; transition: 160ms ease; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 9px; border-radius: 999px; background: #1d4ed8; color: white; font-size: 0.75rem; font-weight: 750; }
.badge.sub { background: #334155; color: #cbd5e1; }
.danger-badge { color: #fecdd3; font-size: 0.75rem; font-weight: 800; }
.command-code {
width: 100%;
margin: 0;
padding: 14px;
border: 1px solid #29415e;
border-radius: 11px;
overflow-x: auto;
color: var(--safe);
background: #07101d;
font: 0.9rem/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.description { margin: 13px 0; color: var(--muted); line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tag { padding: 4px 8px; border-radius: 7px; background: #20334d; color: #c4d2e4; font-size: 0.76rem; }
.copy-button { width: 100%; margin-top: 15px; padding: 10px; border: 0; border-radius: 10px; color: white; background: #0369a1; cursor: pointer; font-weight: 750; }
.copy-button:hover, .copy-button:focus-visible { background: #0284c7; outline: 3px solid rgba(56, 189, 248, 0.18); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.page-button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-strong); cursor: pointer; }
.page-button.active { border-color: var(--accent); background: var(--accent-strong); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; border-radius: 11px; color: white; background: #065f46; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
.page-shell { width: min(100% - 20px, 1380px); padding-top: 10px; }
.hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; border-radius: 18px; }
.hero-actions { justify-content: flex-start; }
.toolbar { padding: 16px; }
.filters { align-items: flex-start; flex-direction: column; }
.command-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}