Skip to content

Commit 40e34fc

Browse files
author
Philip Guo
committed
refactored CSS to clean it up a bit
1 parent cb5cebe commit 40e34fc

1 file changed

Lines changed: 30 additions & 63 deletions

File tree

edu-python.css

Lines changed: 30 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -254,54 +254,42 @@ table.listTbl {
254254
border-spacing: 0px;
255255
}
256256

257-
table.listTbl td.listHeader {
258-
padding-left: 5px;
259-
padding-top: 3px;
260-
font-size: 8pt;
261-
color: #666666;
262-
text-align: left;
263-
border-left: 1px solid #555555;
264-
}
265-
266-
table.listTbl td.listElt {
267-
padding-top: 0px;
268-
padding-bottom: 8px;
269-
padding-left: 10px;
270-
padding-right: 10px;
271-
border-bottom: 1px solid #555555; /* must match td.listHeader border */
272-
border-left: 1px solid #555555; /* must match td.listHeader border */
273-
vertical-align: bottom;
274-
}
275-
276257
table.tupleTbl {
277258
background-color: #dddddd; /* must match .frameDataViz background-color */
278259
border-spacing: 0px;
279260
color: black;
280261

281262
border-bottom: 1px solid #555555; /* must match td.tupleHeader border */
282-
border-top: 1px solid #555555; /* must match td.tupleHeader border */
283-
border-right: 1px solid #555555; /* must match td.tupleHeader border */
263+
border-top: 1px solid #555555; /* must match td.tupleHeader border */
264+
border-right: 1px solid #555555; /* must match td.tupleHeader border */
284265
}
285266

267+
table.listTbl td.listHeader,
286268
table.tupleTbl td.tupleHeader {
287269
padding-left: 5px;
288270
padding-top: 3px;
289-
padding-bottom: 0px;
290271
font-size: 8pt;
291272
color: #666666;
292273
text-align: left;
293274
border-left: 1px solid #555555;
294275
}
295276

277+
table.listTbl td.listElt {
278+
border-bottom: 1px solid #555555; /* must match td.listHeader border */
279+
border-left: 1px solid #555555; /* must match td.listHeader border */
280+
}
281+
296282
table.tupleTbl td.tupleElt {
297-
vertical-align: bottom;
283+
border-left: 1px solid #555555; /* must match td.tupleHeader border */
284+
}
298285

286+
table.listTbl td.listElt,
287+
table.tupleTbl td.tupleElt {
299288
padding-top: 0px;
300289
padding-bottom: 8px;
301290
padding-left: 10px;
302291
padding-right: 10px;
303-
304-
border-left: 1px solid #555555; /* must match td.tupleHeader border */
292+
vertical-align: bottom;
305293
}
306294

307295
table.setTbl {
@@ -316,11 +304,10 @@ table.setTbl td.setElt {
316304
padding: 8px;
317305
}
318306

307+
319308
table.dictTbl {
320-
background-color: #899CD1;
321309
border-collapse: collapse;
322310
border-spacing: 2px;
323-
/*margin: 12px;*/
324311
}
325312

326313
table.dictTbl tr.dictEntry {
@@ -329,26 +316,11 @@ table.dictTbl tr.dictEntry {
329316

330317
table.dictTbl td.dictKey {
331318
background-color: #41507A;
332-
color: #dddddd;
333-
334-
padding-top: 10px;
335-
padding-bottom: 10px;
336-
padding-left: 10px;
337-
padding-right: 8px;
338-
339-
text-align: right;
340-
vertical-align: center;
341319
}
342320

321+
table.dictTbl,
343322
table.dictTbl td.dictVal {
344-
background-color: #899CD1; /* must match color of table.dictTbl */
345-
346-
padding-top: 10px;
347-
padding-bottom: 10px;
348-
padding-right: 10px;
349-
padding-left: 8px;
350-
351-
vertical-align: center;
323+
background-color: #899CD1;
352324
}
353325

354326

@@ -364,30 +336,14 @@ table.classTbl tr.classEntry {
364336

365337
table.classTbl td.classKey {
366338
background-color: #222222;
367-
color: #dddddd;
368-
369-
padding-top: 10px;
370-
padding-bottom: 10px;
371-
padding-left: 10px;
372-
padding-right: 8px;
373-
374-
text-align: right;
375-
vertical-align: center;
376339
}
377340

378341
table.classTbl td.classVal {
379342
background-color: #ffffff;
380-
381-
padding-top: 10px;
382-
padding-bottom: 10px;
383-
padding-right: 10px;
384-
padding-left: 8px;
385-
vertical-align: center;
386343
}
387344

388345

389346
table.instTbl {
390-
background-color: #FFFFDD;
391347
border-collapse: collapse;
392348
border-spacing: 2px;
393349
}
@@ -399,19 +355,28 @@ table.instTbl tr.instEntry {
399355
table.instTbl td.instKey {
400356
background-color: #41507A;
401357
color: #ffffff;
358+
}
359+
360+
table.instTbl,
361+
table.instTbl td.instVal {
362+
background-color: #FFFFDD; /* must match color of table.instTbl */
363+
}
402364

365+
table.dictTbl td.dictKey,
366+
table.classTbl td.classKey,
367+
table.instTbl td.instKey {
368+
color: #dddddd;
403369
padding-top: 10px;
404370
padding-bottom: 10px;
405371
padding-left: 10px;
406372
padding-right: 8px;
407-
408373
text-align: right;
409374
vertical-align: center;
410375
}
411376

377+
table.dictTbl td.dictVal,
378+
table.classTbl td.classVal,
412379
table.instTbl td.instVal {
413-
background-color: #FFFFDD; /* must match color of table.instTbl */
414-
415380
padding-top: 10px;
416381
padding-bottom: 10px;
417382
padding-right: 10px;
@@ -420,6 +385,8 @@ table.instTbl td.instVal {
420385
}
421386

422387

388+
389+
423390
.typeLabel {
424391
font-size: 8pt;
425392
color: #222222;

0 commit comments

Comments
 (0)