-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
35 lines (25 loc) · 2.19 KB
/
Copy pathstyle.css
File metadata and controls
35 lines (25 loc) · 2.19 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
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #0f172a, #1e293b); padding: 1rem; }
.container { background: rgba(255,255,255,0.05); border-radius: 20px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.4); max-width: 960px; width: 100%; }
h1 { color: #fff; text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; }
h1 i { color: #38bdf8; margin-right: 0.5rem; }
.controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
select, .slider-group { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 0.5rem 0.75rem; color: #fff; font-family: inherit; }
select option { background: #1e293b; }
.slider-group label { font-size: 0.8rem; color: #cbd5e1; display: block; margin-bottom: 0.25rem; }
.slider-group span { color: #38bdf8; font-weight: 700; }
input[type="range"] { width: 100px; accent-color: #38bdf8; }
.btn { padding: 0.55rem 1.25rem; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.sort-btn { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #fff; }
.sort-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(56,189,248,0.4); }
.sort-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.shuffle-btn { background: rgba(255,255,255,0.1); color: #fff; }
.shuffle-btn:hover { background: rgba(255,255,255,0.2); }
#canvas { display: block; margin: 0 auto; background: #0f172a; border-radius: 12px; max-width: 100%; }
.legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 0.4rem; color: #cbd5e1; font-size: 0.85rem; }
.dot { width: 12px; height: 12px; border-radius: 50; display: inline-block; border-radius: 50%; }
.dot.compare { background: #fbbf24; }
.dot.swap { background: #f43f5e; }
.dot.sorted { background: #10b981; }
@media (max-width: 600px) { .controls { flex-direction: column; } }