|
1 | | -@import url("https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap"); |
2 | | - |
3 | | -/* ── Scanline texture overlay ── */ |
4 | | -/* .wrapper::after { |
5 | | - content: ""; |
6 | | - position: absolute; |
7 | | - inset: 0; |
8 | | - background: repeating-linear-gradient( |
9 | | - to bottom, |
10 | | - transparent 0px, |
11 | | - transparent 3px, |
12 | | - rgba(0, 0, 0, 0.08) 3px, |
13 | | - rgba(0, 0, 0, 0.08) 4px |
14 | | - ); |
15 | | - pointer-events: none; |
16 | | - z-index: 10; |
17 | | - border-radius: 10px; |
18 | | -} */ |
19 | | - |
| 1 | +/* ========================================================================== |
| 2 | + 1. MAIN COMPONENT CONTAINER |
| 3 | + ========================================================================== */ |
20 | 4 | .wrapper { |
21 | 5 | position: relative; |
22 | | - margin: 2rem 0; |
23 | | - border: 1px solid #1a3a1a; |
24 | | - border-radius: 10px; |
| 6 | + margin: 1.5rem 0; |
| 7 | + border: 1px solid var(--ifm-toc-border-color); |
| 8 | + border-radius: var(--ifm-global-radius); |
25 | 9 | overflow: hidden; |
26 | | - background-color: #030a03; |
27 | | - box-shadow: |
28 | | - 0 0 0 1px #0d2b0d, |
29 | | - 0 0 20px rgba(0, 255, 70, 0.07), |
30 | | - 0 0 60px rgba(0, 255, 70, 0.04), |
31 | | - 0 8px 32px rgba(0, 0, 0, 0.6); |
| 10 | + background-color: var(--ifm-background-surface-color); |
| 11 | + box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); |
| 12 | + transition: border-color 0.15s ease; |
32 | 13 | } |
33 | 14 |
|
34 | | -[data-theme="light"] { |
35 | | - .output { |
36 | | - background-color: #dbdbdb; |
37 | | - color: hsl(0, 0%, 10%); |
38 | | - } |
39 | | - .console { |
40 | | - background-color: #dbdbdb; |
41 | | - } |
42 | | - .codeHeader { |
43 | | - background-color: #e0e0e0; |
44 | | - border-bottom: 1px solid #c0c0c0; |
45 | | - } |
46 | | - .runButton { |
47 | | - background-color: #e0e0e0; |
48 | | - color: hsl(0, 0%, 10%); |
49 | | - border-top: 1px solid #c0c0c0; |
50 | | - border-bottom: 1px solid #c0c0c0; |
51 | | - } |
52 | | - .runButton:hover:not(:disabled) { |
53 | | - background-color: #d0d0d0; |
54 | | - color: hsl(0, 0%, 10%); |
55 | | - } |
56 | | - .submitInputBtn { |
57 | | - background: #e0e0e0; |
58 | | - border: 1px solid #c0c0c0; |
59 | | - color: hsl(0, 0%, 10%); |
60 | | - } |
61 | | - .submitInputBtn:hover { |
62 | | - background-color: #d0d0d0; |
63 | | - border-color: hsl(0, 0%, 10%); |
64 | | - color: hsl(0, 0%, 10%); |
65 | | - } |
66 | | - .codeHeaderText { |
67 | | - color: hsl(0, 0%, 10%); |
68 | | - text-shadow: 0 0 8px rgba(0, 0, 0, 0.2); |
69 | | - } |
70 | | - |
71 | | -} |
72 | | -/* ── Title bar ── */ |
| 15 | +/* ========================================================================== |
| 16 | + 2. HEADER BAR (Polished & Minimalist) |
| 17 | + ========================================================================== */ |
73 | 18 | .codeHeader { |
74 | | - background-color: #050f05; |
75 | | - padding: 10px 16px; |
| 19 | + background-color: var(--ifm-background-color); |
| 20 | + padding: 12px 16px; |
76 | 21 | display: flex; |
77 | 22 | align-items: center; |
78 | | - gap: 10px; |
79 | | - border-bottom: 1px solid #1a3a1a; |
| 23 | + gap: 8px; |
| 24 | + border-bottom: 1px solid var(--ifm-toc-border-color); |
80 | 25 | } |
81 | 26 |
|
| 27 | +/* The hacker indicator icon is removed completely */ |
82 | 28 | .codeHeader::before { |
83 | | - content: "▮"; |
84 | | - color: #00ff46; |
85 | | - font-size: 1rem; |
86 | | - animation: blink 1.2s step-end infinite; |
87 | | - font-family: "VT323", monospace; |
| 29 | + display: none; |
88 | 30 | } |
89 | 31 |
|
90 | 32 | .codeHeaderText { |
91 | | - font-family: "VT323", monospace; |
92 | | - font-size: 1.1rem; |
93 | | - color: #00ff46; |
94 | | - letter-spacing: 0.12rem; |
95 | | - text-shadow: 0 0 8px rgba(0, 255, 70, 0.6); |
| 33 | + font-family: var(--ifm-font-family-base, sans-serif); |
| 34 | + font-weight: 600; |
| 35 | + font-size: 0.85rem; |
| 36 | + color: var(--ifm-font-color-base); |
| 37 | + letter-spacing: 0.05rem; |
96 | 38 | text-transform: uppercase; |
97 | 39 | } |
98 | 40 |
|
99 | 41 | .codeHeaderStatus { |
100 | 42 | margin-left: auto; |
101 | | - font-family: "Share Tech Mono", monospace; |
102 | | - font-size: 0.7rem; |
103 | | - color: #2a7a2a; |
104 | | - letter-spacing: 0.08rem; |
| 43 | + font-family: var(--ifm-font-family-base, sans-serif); |
| 44 | + font-weight: 500; |
| 45 | + font-size: 0.75rem; |
| 46 | + color: var(--ifm-font-color-secondary); |
105 | 47 | } |
106 | 48 |
|
107 | 49 | .codeHeaderStatus.ready { |
108 | | - color: #00cc38; |
109 | | - text-shadow: 0 0 6px rgba(0, 204, 56, 0.5); |
| 50 | + color: var(--ifm-color-success, #2e7d32); |
110 | 51 | } |
111 | 52 |
|
112 | | -/* ── Run button ── */ |
| 53 | +[data-theme="dark"] .codeHeaderStatus.ready { |
| 54 | + color: var(--ifm-color-success, #4caf50); |
| 55 | +} |
| 56 | + |
| 57 | +/* ========================================================================== |
| 58 | + 3. RUN BUTTON |
| 59 | + ========================================================================== */ |
113 | 60 | .runButton { |
114 | 61 | display: block; |
115 | 62 | width: 100%; |
116 | | - padding: 11px; |
117 | | - background-color: #050f05; |
118 | | - color: #00ff46; |
| 63 | + padding: 12px; |
| 64 | + background-color: var(--ifm-color-primary); |
| 65 | + color: #ffffff; |
119 | 66 | border: none; |
120 | | - border-top: 1px solid #1a3a1a; |
121 | | - border-bottom: 1px solid #1a3a1a; |
122 | | - font-family: "VT323", monospace; |
123 | | - font-size: 1.2rem; |
124 | | - letter-spacing: 0.15rem; |
| 67 | + border-bottom: 1px solid var(--ifm-toc-border-color); |
| 68 | + font-family: var(--ifm-font-family-base, sans-serif); |
| 69 | + font-weight: 600; |
| 70 | + font-size: 0.95rem; |
| 71 | + letter-spacing: 0.05rem; |
125 | 72 | cursor: pointer; |
126 | | - transition: |
127 | | - background-color 0.15s ease, |
128 | | - text-shadow 0.15s ease; |
129 | | - text-shadow: 0 0 8px rgba(0, 255, 70, 0.4); |
130 | 73 | text-transform: uppercase; |
| 74 | + transition: background-color 0.15s ease, opacity 0.15s ease; |
131 | 75 | } |
132 | 76 |
|
133 | 77 | .runButton:hover:not(:disabled) { |
134 | | - background-color: #071407; |
135 | | - color: #33ff6e; |
136 | | - text-shadow: |
137 | | - 0 0 14px rgba(0, 255, 70, 0.9), |
138 | | - 0 0 30px rgba(0, 255, 70, 0.4); |
| 78 | + background-color: var(--ifm-color-primary-dark); |
139 | 79 | } |
140 | 80 |
|
141 | 81 | .runButton:disabled { |
142 | | - color: #1a4a1a; |
| 82 | + background-color: var(--ifm-background-color); |
| 83 | + color: var(--ifm-font-color-secondary); |
| 84 | + opacity: 0.6; |
143 | 85 | cursor: not-allowed; |
144 | | - text-shadow: none; |
145 | 86 | } |
146 | 87 |
|
147 | 88 | .runButton:not(:disabled):active { |
148 | | - background-color: #0a1f0a; |
| 89 | + background-color: var(--ifm-color-primary-darker); |
149 | 90 | } |
150 | 91 |
|
151 | | -/* ── Console area ── */ |
| 92 | +/* ========================================================================== |
| 93 | + 4. CONSOLE & OUTPUT AREA |
| 94 | + ========================================================================== */ |
152 | 95 | .console { |
153 | | - background-color: #020802; |
154 | | - border-top: 1px solid #1a3a1a; |
| 96 | + background-color: #1e293b; /* Deep slate workspace for contrast in both modes */ |
| 97 | + border-top: 1px solid var(--ifm-toc-border-color); |
155 | 98 | min-height: 60px; |
156 | | - animation: fadeIn 0.2s ease-out; |
157 | 99 | } |
158 | 100 |
|
159 | | -/* ── Output text ── */ |
| 101 | +[data-theme="light"] .console { |
| 102 | + background-color: #f1f5f9; /* Clean, modern light-grey playground */ |
| 103 | +} |
| 104 | + |
160 | 105 | .output { |
161 | 106 | margin: 0; |
162 | 107 | padding: 1rem 1.2rem; |
163 | | - color: #a8ffb8; |
164 | | - font-size: 0.875rem; |
165 | | - font-family: "Share Tech Mono", monospace; |
166 | | - line-height: 1.2; |
| 108 | + color: #f8fafc; /* Crisp, easily readable white in dark console */ |
| 109 | + font-size: 0.9rem; |
| 110 | + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 111 | + line-height: 1.6; |
167 | 112 | white-space: pre-wrap; |
168 | | - text-shadow: 0 0 4px rgba(168, 255, 184, 0.25); |
169 | 113 | min-height: 20px; |
170 | 114 | } |
171 | 115 |
|
| 116 | +[data-theme="light"] .output { |
| 117 | + color: #0f172a; /* Dark slate text in light-mode console */ |
| 118 | +} |
| 119 | + |
172 | 120 | .output:empty { |
173 | 121 | display: none; |
174 | 122 | } |
175 | 123 |
|
176 | | -/* ── Input row ── */ |
| 124 | +/* ========================================================================== |
| 125 | + 5. INPUT SECTION |
| 126 | + ========================================================================== */ |
177 | 127 | .inputForm { |
178 | 128 | display: flex; |
179 | 129 | align-items: center; |
180 | | - padding: 0.5rem 1.2rem 0.8rem; |
181 | | - gap: 0; |
182 | | - border-top: 1px dashed #0d2b0d; |
| 130 | + padding: 0.75rem 1.2rem; |
| 131 | + gap: 8px; |
| 132 | + border-top: 1px solid rgba(0, 0, 0, 0.06); |
| 133 | + background-color: rgba(0, 0, 0, 0.02); |
| 134 | +} |
| 135 | + |
| 136 | +[data-theme="dark"] .inputForm { |
| 137 | + border-top: 1px solid rgba(255, 255, 255, 0.06); |
| 138 | + background-color: rgba(255, 255, 255, 0.02); |
183 | 139 | } |
184 | 140 |
|
185 | 141 | .promptText { |
186 | | - font-family: "Share Tech Mono", monospace; |
187 | | - font-size: 0.875rem; |
188 | | - color: #00cc38; |
189 | | - white-space: pre; |
190 | | - text-shadow: 0 0 6px rgba(0, 204, 56, 0.4); |
| 142 | + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 143 | + font-size: 0.9rem; |
| 144 | + color: var(--ifm-color-primary); |
| 145 | + font-weight: 600; |
191 | 146 | flex-shrink: 0; |
192 | 147 | } |
193 | 148 |
|
|
196 | 151 | background: transparent; |
197 | 152 | border: none; |
198 | 153 | outline: none; |
199 | | - color: #e0ffe8; |
200 | | - font-family: "Share Tech Mono", monospace; |
201 | | - font-size: 0.5rem; |
202 | | - caret-color: #00ff46; |
203 | | - text-shadow: 0 0 4px rgba(224, 255, 232, 0.3); |
204 | | - padding: 0 4px; |
| 154 | + color: #f8fafc; |
| 155 | + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 156 | + font-size: 0.9rem; |
| 157 | + caret-color: var(--ifm-color-primary); |
| 158 | + padding: 4px 6px; |
| 159 | + border-radius: 4px; |
| 160 | +} |
| 161 | + |
| 162 | +[data-theme="light"] .terminalInput { |
| 163 | + color: #0f172a; |
205 | 164 | } |
206 | 165 |
|
| 166 | +/* Accessible and clean action button */ |
207 | 167 | .submitInputBtn { |
208 | | - background: transparent; |
209 | | - border: 1px solid #1a4a1a; |
210 | | - color: #2a8a2a; |
211 | | - font-family: "VT323", monospace; |
212 | | - font-size: 1rem; |
213 | | - letter-spacing: 0.08rem; |
214 | | - padding: 2px 12px; |
| 168 | + background-color: var(--ifm-color-primary); |
| 169 | + border: none; |
| 170 | + color: #ffffff; |
| 171 | + font-family: var(--ifm-font-family-base, sans-serif); |
| 172 | + font-weight: 600; |
| 173 | + font-size: 0.8rem; |
| 174 | + letter-spacing: 0.02rem; |
| 175 | + padding: 6px 14px; |
215 | 176 | cursor: pointer; |
216 | | - border-radius: 2px; |
217 | | - transition: all 0.15s ease; |
| 177 | + border-radius: 4px; |
| 178 | + transition: background-color 0.15s ease; |
218 | 179 | text-transform: uppercase; |
219 | 180 | flex-shrink: 0; |
220 | 181 | } |
221 | 182 |
|
222 | 183 | .submitInputBtn:hover { |
223 | | - background-color: #071407; |
224 | | - border-color: #00ff46; |
225 | | - color: #00ff46; |
226 | | - text-shadow: 0 0 8px rgba(0, 255, 70, 0.7); |
227 | | - box-shadow: 0 0 8px rgba(0, 255, 70, 0.15); |
228 | | -} |
229 | | - |
230 | | -/* ── Animations ── */ |
231 | | -@keyframes blink { |
232 | | - 0%, |
233 | | - 100% { |
234 | | - opacity: 1; |
235 | | - } |
236 | | - 50% { |
237 | | - opacity: 0; |
238 | | - } |
| 184 | + background-color: var(--ifm-color-primary-dark); |
239 | 185 | } |
240 | 186 |
|
241 | | -@keyframes fadeIn { |
242 | | - from { |
243 | | - opacity: 0; |
244 | | - } |
245 | | - to { |
246 | | - opacity: 1; |
247 | | - } |
248 | | -} |
249 | | - |
250 | | -@media (min-width: 768px) { |
| 187 | +/* ========================================================================== |
| 188 | + 6. RESPONSIVE ADJUSTMENTS |
| 189 | + ========================================================================== */ |
| 190 | +@media (max-width: 996px) { |
251 | 191 | .output { |
252 | | - font-size: 1rem; |
| 192 | + font-size: 0.85rem; |
| 193 | + padding: 0.85rem 1rem; |
253 | 194 | } |
254 | | - .promptText { |
255 | | - font-size: 1rem; |
| 195 | + |
| 196 | + .promptText, |
| 197 | + .terminalInput { |
| 198 | + font-size: 0.85rem; |
256 | 199 | } |
257 | | -} |
258 | 200 |
|
259 | | -@media (min-width: 996px) { |
260 | | - .output { |
261 | | - font-size: 1.2em; |
| 201 | + .inputForm { |
| 202 | + padding: 0.6rem 1rem; |
262 | 203 | } |
263 | 204 | } |
0 commit comments