Skip to content

Commit 6d636e9

Browse files
author
Philip Guo
committed
refactored CSS to prevent style clashes: make each ExecutionVisualizer
object contain its own div.ExecutionVisualizer, and prefix all CSS rules with div.ExecutionVisualizer
1 parent db8092e commit 6d636e9

4 files changed

Lines changed: 135 additions & 227 deletions

File tree

‎PyTutorGAE/css/2012-08-29-CSS-encapsulation/README‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ I'm also wondering whether there could be unforeseen interactions with
4444
other classes that might have been prespecified on that div. I don't
4545
know what the downsides of the new approach are, though.
4646

47+
---
48+
My thoughts:
49+
50+
- maybe just have a set of css styles for a standalone visualizer, and
51+
then add an option or something to flip a bit to make it embedded ...
52+
if the visualizer is embedded, then use js to set css for certain
53+
attributes
54+

‎PyTutorGAE/css/opt-frontend.css‎

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ body {
2727
font-size: 10pt;
2828
}
2929

30-
a {
31-
color: #3D58A2;
32-
}
33-
34-
a:visited {
35-
color: #3D58A2;
36-
}
37-
30+
a,
31+
a:visited,
3832
a:hover {
3933
color: #3D58A2;
4034
}
@@ -67,3 +61,21 @@ button.smallBtn {
6761
padding: 3px;
6862
}
6963

64+
button.bigBtn {
65+
font-size: 12pt;
66+
padding: 5px;
67+
}
68+
69+
#footer {
70+
color: #666666;
71+
font-size: 9pt;
72+
border-top: 1px solid #bbbbbb;
73+
padding-top: 5px;
74+
margin-top: 5px;
75+
76+
max-width: 700px;
77+
/* center align */
78+
margin-left: auto;
79+
margin-right: auto;
80+
}
81+

0 commit comments

Comments
 (0)