|
1 | | -* { |
| 1 | +#demo-figure * { |
2 | 2 | margin: 0; |
3 | 3 | padding: 0; |
4 | 4 | box-sizing: border-box; |
|
9 | 9 | font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; |
10 | 10 | } |
11 | 11 |
|
12 | | -.demo-wrapper { |
| 12 | +#demo-figure .demo-wrapper { |
13 | 13 | position: relative; |
14 | 14 | overflow: hidden; |
15 | 15 | border-radius: 8px; |
16 | 16 | } |
17 | 17 |
|
18 | | -.container { |
| 18 | +#demo-figure .container { |
19 | 19 | display: flex; |
20 | 20 | height: 500px; |
21 | 21 | background: #f8f8f8; |
22 | 22 | } |
23 | 23 |
|
24 | | -.code-panel { |
| 24 | +#demo-figure .code-panel { |
25 | 25 | width: 50%; |
26 | 26 | background: white; |
27 | 27 | display: flex; |
|
33 | 33 | } |
34 | 34 |
|
35 | 35 |
|
36 | | -.code-header { |
| 36 | +#demo-figure .code-header { |
37 | 37 | background: #f5f5f5; |
38 | 38 | padding: 12px 16px; |
39 | 39 | border-bottom: 1px solid #ddd; |
|
43 | 43 | text-align: left; |
44 | 44 | } |
45 | 45 |
|
46 | | -.code-content { |
| 46 | +#demo-figure .code-content { |
47 | 47 | flex: 1; |
48 | 48 | overflow-y: auto; |
49 | 49 | font-size: 12px; |
|
56 | 56 | } |
57 | 57 |
|
58 | 58 | /* Style scrollbar for Chrome, Safari and Opera */ |
59 | | -.code-content::-webkit-scrollbar { |
| 59 | +#demo-figure .code-content::-webkit-scrollbar { |
60 | 60 | width: 8px; |
61 | 61 | } |
62 | 62 |
|
63 | | -.code-content::-webkit-scrollbar-track { |
| 63 | +#demo-figure .code-content::-webkit-scrollbar-track { |
64 | 64 | background: #f5f5f5; |
65 | 65 | } |
66 | 66 |
|
67 | | -.code-content::-webkit-scrollbar-thumb { |
| 67 | +#demo-figure .code-content::-webkit-scrollbar-thumb { |
68 | 68 | background: #ccc; |
69 | 69 | border-radius: 4px; |
70 | 70 | } |
71 | 71 |
|
72 | | -.code-content::-webkit-scrollbar-thumb:hover { |
| 72 | +#demo-figure .code-content::-webkit-scrollbar-thumb:hover { |
73 | 73 | background: #999; |
74 | 74 | } |
75 | 75 |
|
76 | | -.code-line { |
| 76 | +#demo-figure .code-line { |
77 | 77 | display: flex; |
78 | 78 | align-items: flex-start; |
79 | 79 | transition: background-color 0.3s ease; |
80 | 80 | padding: 1px 0; |
81 | 81 | border-left: 3px solid transparent; |
82 | 82 | } |
83 | 83 |
|
84 | | -.line-number { |
| 84 | +#demo-figure .line-number { |
85 | 85 | color: #999; |
86 | 86 | width: 38px; |
87 | 87 | flex-shrink: 0; |
|
91 | 91 | font-size: 12px; |
92 | 92 | } |
93 | 93 |
|
94 | | -.line-content { |
| 94 | +#demo-figure .line-content { |
95 | 95 | flex: 1; |
96 | 96 | white-space: pre; |
97 | 97 | padding-right: 12px; |
98 | 98 | text-align: left; |
99 | 99 | } |
100 | 100 |
|
101 | 101 |
|
102 | | -.added { |
| 102 | +#demo-figure .added { |
103 | 103 | background-color: #d4edda !important; |
104 | 104 | } |
105 | 105 |
|
106 | | -.deleted { |
| 106 | +#demo-figure .deleted { |
107 | 107 | background-color: #ffebee !important; |
108 | 108 | opacity: 0.7; |
109 | 109 | } |
110 | 110 |
|
111 | | -.modified { |
| 111 | +#demo-figure .modified { |
112 | 112 | background-color: #fff3cd; |
113 | 113 | border-left: 3px solid #ffc107; |
114 | 114 | animation: slideInYellow 0.5s ease; |
|
143 | 143 |
|
144 | 144 |
|
145 | 145 | /* Status badge */ |
146 | | -.status-badge { |
| 146 | +#demo-figure .status-badge { |
147 | 147 | position: absolute; |
148 | 148 | bottom: 20px; |
149 | 149 | left: 50%; |
|
160 | 160 | } |
161 | 161 |
|
162 | 162 | /* Phase indicator */ |
163 | | -.phase-indicator { |
| 163 | +#demo-figure .phase-indicator { |
164 | 164 | display: inline-block; |
165 | 165 | width: 10px; |
166 | 166 | height: 10px; |
|
170 | 170 | transition: all 0.3s ease; |
171 | 171 | } |
172 | 172 |
|
173 | | -.phase-indicator.phase-loading { |
| 173 | +#demo-figure .phase-indicator.phase-loading { |
174 | 174 | background: #ff9800; |
175 | 175 | animation: pulse 1s infinite; |
176 | 176 | } |
177 | 177 |
|
178 | | -.phase-indicator.phase-library { |
| 178 | +#demo-figure .phase-indicator.phase-library { |
179 | 179 | background: #2196F3; |
180 | 180 | animation: pulse 1s infinite; |
181 | 181 | } |
182 | 182 |
|
183 | | -.phase-indicator.phase-solution { |
| 183 | +#demo-figure .phase-indicator.phase-solution { |
184 | 184 | background: #4CAF50; |
185 | 185 | animation: pulse 1s infinite; |
186 | 186 | } |
187 | 187 |
|
188 | | -.phase-indicator.phase-complete { |
| 188 | +#demo-figure .phase-indicator.phase-complete { |
189 | 189 | background: #9C27B0; |
190 | 190 | } |
191 | 191 |
|
|
196 | 196 |
|
197 | 197 |
|
198 | 198 | /* Syntax highlighting */ |
199 | | -.keyword { |
| 199 | +#demo-figure .keyword { |
200 | 200 | color: #0066cc; |
201 | 201 | font-weight: bold; |
202 | 202 | } |
203 | 203 |
|
204 | | -.builtin { |
| 204 | +#demo-figure .builtin { |
205 | 205 | color: #3366cc; |
206 | 206 | font-weight: 500; |
207 | 207 | } |
208 | 208 |
|
209 | | -.string { |
| 209 | +#demo-figure .string { |
210 | 210 | color: #009900; |
211 | 211 | } |
212 | 212 |
|
213 | | -.docstring { |
| 213 | +#demo-figure .docstring { |
214 | 214 | color: #006600; |
215 | 215 | font-style: italic; |
216 | 216 | } |
217 | 217 |
|
218 | | -.comment { |
| 218 | +#demo-figure .comment { |
219 | 219 | color: #808080; |
220 | 220 | font-style: italic; |
221 | 221 | } |
222 | 222 |
|
223 | | -.function { |
| 223 | +#demo-figure .function { |
224 | 224 | color: #cc6600; |
225 | 225 | font-weight: bold; |
226 | 226 | } |
227 | 227 |
|
228 | | -.number { |
| 228 | +#demo-figure .number { |
229 | 229 | color: #ff6600; |
230 | 230 | } |
231 | 231 |
|
232 | | -.decorator { |
| 232 | +#demo-figure .decorator { |
233 | 233 | color: #9966cc; |
234 | 234 | font-weight: bold; |
235 | 235 | } |
236 | 236 |
|
237 | | -.type { |
| 237 | +#demo-figure .type { |
238 | 238 | color: #006666; |
239 | 239 | font-style: italic; |
240 | 240 | } |
241 | 241 |
|
242 | 242 | /* Mobile responsive font sizes */ |
243 | 243 | @media (max-width: 768px) { |
244 | | - .code-header { |
| 244 | + #demo-figure .code-header { |
245 | 245 | font-size: 12px; |
246 | 246 | } |
247 | 247 |
|
248 | | - .code-content { |
| 248 | + #demo-figure .code-content { |
249 | 249 | font-size: 9px; |
250 | 250 | line-height: 10px; |
251 | 251 | } |
252 | 252 |
|
253 | | - .line-number { |
| 253 | + #demo-figure .line-number { |
254 | 254 | font-size: 9px; |
255 | 255 | width: 22px; |
256 | 256 | padding-right: 4px; |
257 | 257 | } |
258 | 258 |
|
259 | | - .status-badge { |
| 259 | + #demo-figure .status-badge { |
260 | 260 | font-size: 10px; |
261 | 261 | padding: 2px 10px; |
262 | 262 | bottom: 10px; |
263 | 263 | } |
264 | 264 | } |
265 | 265 |
|
266 | 266 | @media (max-width: 480px) { |
267 | | - .code-header { |
| 267 | + #demo-figure .code-header { |
268 | 268 | font-size: 10px; |
269 | 269 | } |
270 | 270 |
|
271 | | - .code-content { |
| 271 | + #demo-figure .code-content { |
272 | 272 | font-size: 7px; |
273 | 273 | line-height: 8px; |
274 | 274 | } |
275 | 275 |
|
276 | | - .line-number { |
| 276 | + #demo-figure .line-number { |
277 | 277 | font-size: 7px; |
278 | 278 | width: 17px; |
279 | 279 | padding-right: 3px; |
280 | 280 | } |
281 | 281 |
|
282 | | - .status-badge { |
| 282 | + #demo-figure .status-badge { |
283 | 283 | font-size: 8px; |
284 | 284 | padding: 1px 6px; |
285 | 285 | bottom: 5px; |
|
0 commit comments