Skip to content

Commit 18036d3

Browse files
fix css selectors for demo
1 parent 8c47848 commit 18036d3

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

diff-viz-styles.css

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* {
1+
#demo-figure * {
22
margin: 0;
33
padding: 0;
44
box-sizing: border-box;
@@ -9,19 +9,19 @@
99
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
1010
}
1111

12-
.demo-wrapper {
12+
#demo-figure .demo-wrapper {
1313
position: relative;
1414
overflow: hidden;
1515
border-radius: 8px;
1616
}
1717

18-
.container {
18+
#demo-figure .container {
1919
display: flex;
2020
height: 500px;
2121
background: #f8f8f8;
2222
}
2323

24-
.code-panel {
24+
#demo-figure .code-panel {
2525
width: 50%;
2626
background: white;
2727
display: flex;
@@ -33,7 +33,7 @@
3333
}
3434

3535

36-
.code-header {
36+
#demo-figure .code-header {
3737
background: #f5f5f5;
3838
padding: 12px 16px;
3939
border-bottom: 1px solid #ddd;
@@ -43,7 +43,7 @@
4343
text-align: left;
4444
}
4545

46-
.code-content {
46+
#demo-figure .code-content {
4747
flex: 1;
4848
overflow-y: auto;
4949
font-size: 12px;
@@ -56,32 +56,32 @@
5656
}
5757

5858
/* Style scrollbar for Chrome, Safari and Opera */
59-
.code-content::-webkit-scrollbar {
59+
#demo-figure .code-content::-webkit-scrollbar {
6060
width: 8px;
6161
}
6262

63-
.code-content::-webkit-scrollbar-track {
63+
#demo-figure .code-content::-webkit-scrollbar-track {
6464
background: #f5f5f5;
6565
}
6666

67-
.code-content::-webkit-scrollbar-thumb {
67+
#demo-figure .code-content::-webkit-scrollbar-thumb {
6868
background: #ccc;
6969
border-radius: 4px;
7070
}
7171

72-
.code-content::-webkit-scrollbar-thumb:hover {
72+
#demo-figure .code-content::-webkit-scrollbar-thumb:hover {
7373
background: #999;
7474
}
7575

76-
.code-line {
76+
#demo-figure .code-line {
7777
display: flex;
7878
align-items: flex-start;
7979
transition: background-color 0.3s ease;
8080
padding: 1px 0;
8181
border-left: 3px solid transparent;
8282
}
8383

84-
.line-number {
84+
#demo-figure .line-number {
8585
color: #999;
8686
width: 38px;
8787
flex-shrink: 0;
@@ -91,24 +91,24 @@
9191
font-size: 12px;
9292
}
9393

94-
.line-content {
94+
#demo-figure .line-content {
9595
flex: 1;
9696
white-space: pre;
9797
padding-right: 12px;
9898
text-align: left;
9999
}
100100

101101

102-
.added {
102+
#demo-figure .added {
103103
background-color: #d4edda !important;
104104
}
105105

106-
.deleted {
106+
#demo-figure .deleted {
107107
background-color: #ffebee !important;
108108
opacity: 0.7;
109109
}
110110

111-
.modified {
111+
#demo-figure .modified {
112112
background-color: #fff3cd;
113113
border-left: 3px solid #ffc107;
114114
animation: slideInYellow 0.5s ease;
@@ -143,7 +143,7 @@
143143

144144

145145
/* Status badge */
146-
.status-badge {
146+
#demo-figure .status-badge {
147147
position: absolute;
148148
bottom: 20px;
149149
left: 50%;
@@ -160,7 +160,7 @@
160160
}
161161

162162
/* Phase indicator */
163-
.phase-indicator {
163+
#demo-figure .phase-indicator {
164164
display: inline-block;
165165
width: 10px;
166166
height: 10px;
@@ -170,22 +170,22 @@
170170
transition: all 0.3s ease;
171171
}
172172

173-
.phase-indicator.phase-loading {
173+
#demo-figure .phase-indicator.phase-loading {
174174
background: #ff9800;
175175
animation: pulse 1s infinite;
176176
}
177177

178-
.phase-indicator.phase-library {
178+
#demo-figure .phase-indicator.phase-library {
179179
background: #2196F3;
180180
animation: pulse 1s infinite;
181181
}
182182

183-
.phase-indicator.phase-solution {
183+
#demo-figure .phase-indicator.phase-solution {
184184
background: #4CAF50;
185185
animation: pulse 1s infinite;
186186
}
187187

188-
.phase-indicator.phase-complete {
188+
#demo-figure .phase-indicator.phase-complete {
189189
background: #9C27B0;
190190
}
191191

@@ -196,90 +196,90 @@
196196

197197

198198
/* Syntax highlighting */
199-
.keyword {
199+
#demo-figure .keyword {
200200
color: #0066cc;
201201
font-weight: bold;
202202
}
203203

204-
.builtin {
204+
#demo-figure .builtin {
205205
color: #3366cc;
206206
font-weight: 500;
207207
}
208208

209-
.string {
209+
#demo-figure .string {
210210
color: #009900;
211211
}
212212

213-
.docstring {
213+
#demo-figure .docstring {
214214
color: #006600;
215215
font-style: italic;
216216
}
217217

218-
.comment {
218+
#demo-figure .comment {
219219
color: #808080;
220220
font-style: italic;
221221
}
222222

223-
.function {
223+
#demo-figure .function {
224224
color: #cc6600;
225225
font-weight: bold;
226226
}
227227

228-
.number {
228+
#demo-figure .number {
229229
color: #ff6600;
230230
}
231231

232-
.decorator {
232+
#demo-figure .decorator {
233233
color: #9966cc;
234234
font-weight: bold;
235235
}
236236

237-
.type {
237+
#demo-figure .type {
238238
color: #006666;
239239
font-style: italic;
240240
}
241241

242242
/* Mobile responsive font sizes */
243243
@media (max-width: 768px) {
244-
.code-header {
244+
#demo-figure .code-header {
245245
font-size: 12px;
246246
}
247247

248-
.code-content {
248+
#demo-figure .code-content {
249249
font-size: 9px;
250250
line-height: 10px;
251251
}
252252

253-
.line-number {
253+
#demo-figure .line-number {
254254
font-size: 9px;
255255
width: 22px;
256256
padding-right: 4px;
257257
}
258258

259-
.status-badge {
259+
#demo-figure .status-badge {
260260
font-size: 10px;
261261
padding: 2px 10px;
262262
bottom: 10px;
263263
}
264264
}
265265

266266
@media (max-width: 480px) {
267-
.code-header {
267+
#demo-figure .code-header {
268268
font-size: 10px;
269269
}
270270

271-
.code-content {
271+
#demo-figure .code-content {
272272
font-size: 7px;
273273
line-height: 8px;
274274
}
275275

276-
.line-number {
276+
#demo-figure .line-number {
277277
font-size: 7px;
278278
width: 17px;
279279
padding-right: 3px;
280280
}
281281

282-
.status-badge {
282+
#demo-figure .status-badge {
283283
font-size: 8px;
284284
padding: 1px 6px;
285285
bottom: 5px;

0 commit comments

Comments
 (0)