Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
163 lines (153 loc) · 5.08 KB
/
Copy pathstyle.css
File metadata and controls
163 lines (153 loc) · 5.08 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
/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body {
min-height: 100vh;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
color: #e2e8f0;
display: flex;
flex-direction: column;
align-items: center;
}
/* ---------- Hero ---------- */
.hero {
width: 100%;
text-align: center;
padding: 40px 20px 20px;
background: radial-gradient(circle at 20% 20%, #6366f1 0%, transparent 50%),
radial-gradient(circle at 80% 30%, #ec4899 0%, transparent 50%);
}
.hero h1 { font-size: 2.5rem; margin: 0 0 8px; letter-spacing: -0.5px; }
.hero p { margin: 0 0 24px; opacity: 0.85; }
.tabs {
display: inline-flex;
flex-wrap: wrap;
gap: 8px;
background: rgba(15, 23, 42, 0.5);
padding: 6px;
border-radius: 999px;
backdrop-filter: blur(8px);
}
.tab {
background: transparent;
color: #e2e8f0;
border: 0;
padding: 8px 16px;
border-radius: 999px;
cursor: pointer;
font-size: 0.95rem;
transition: background 0.2s, transform 0.1s;
}
.tab:hover { background: rgba(255,255,255,0.08); }
.tab.active { background: #e2e8f0; color: #0f172a; font-weight: 600; }
.tab:active { transform: scale(0.96); }
/* ---------- Panels ---------- */
main {
width: min(960px, 92%);
margin: 20px auto 40px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 16px;
padding: 24px;
backdrop-filter: blur(8px);
}
.panel { display: none; animation: fade 0.3s ease; }
.panel.active { display: block; }
.panel h2 { margin-top: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ---------- Buttons / Inputs ---------- */
button {
background: #7c3aed;
color: white;
border: 0;
padding: 8px 14px;
border-radius: 8px;
cursor: pointer;
font-size: 0.95rem;
transition: background 0.2s, transform 0.1s;
}
button:hover { background: #6d28d9; }
button:active { transform: scale(0.97); }
input[type=text], input[type=color] {
background: rgba(255,255,255,0.08);
color: #e2e8f0;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 8px;
padding: 8px 10px;
font-size: 0.95rem;
}
input[type=range] { accent-color: #7c3aed; }
label { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; }
/* ---------- Paint ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
#canvas {
width: 100%;
height: auto;
background: #f8fafc;
border-radius: 12px;
cursor: crosshair;
display: block;
touch-action: none;
}
/* ---------- Todo ---------- */
.todo-input { display: flex; gap: 8px; margin-bottom: 12px; }
.todo-input input { flex: 1; }
.todo-list { list-style: none; padding: 0; margin: 0; max-height: 300px; overflow-y: auto; }
.todo-list li {
display: flex; align-items: center; gap: 10px;
padding: 10px 12px;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 8px;
margin-bottom: 6px;
}
.todo-list li.done span { text-decoration: line-through; opacity: 0.5; }
.todo-list li button {
margin-left: auto;
background: transparent;
color: #fca5a5;
padding: 4px 8px;
}
.todo-list li button:hover { background: rgba(252,165,165,0.1); }
.todo-stats { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.9rem; opacity: 0.8; }
.todo-stats button { background: #475569; }
/* ---------- Game ---------- */
.game-info { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.board {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
user-select: none;
}
.cell {
aspect-ratio: 1;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 2rem;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
}
.cell.up { background: #fde68a; transform: scale(1.04); }
.cell.up:hover { background: #fcd34d; }
/* ---------- Palette ---------- */
.palette { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.sliders { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }
.swatch { width: 180px; height: 180px; border-radius: 16px; background: #7c3aed; box-shadow: 0 6px 30px rgba(0,0,0,0.4); }
.hex { font-family: 'Courier New', monospace; font-size: 1.1rem; letter-spacing: 1px; }
/* ---------- Quiz ---------- */
.quiz-box { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 20px; }
.question { font-size: 1.1rem; margin: 0 0 14px; }
.answers { display: grid; gap: 8px; }
.answers button {
background: rgba(255,255,255,0.08);
text-align: left;
}
.answers button:hover { background: rgba(255,255,255,0.15); }
.answers button.correct { background: #16a34a !important; }
.answers button.wrong { background: #dc2626 !important; }
.quiz-result { margin: 12px 0 0; font-weight: 600; }
.hidden { display: none; }
/* ---------- Footer ---------- */
footer { opacity: 0.6; font-size: 0.85rem; padding: 20px; text-align: center; }