forked from techtonik/OnlinePythonTutor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopt-frontend.css
More file actions
167 lines (143 loc) · 3.6 KB
/
opt-frontend.css
File metadata and controls
167 lines (143 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/* CSS accompanying ../visualize.html */
h1 {
font-weight: normal;
font-size: 20pt;
font-family: georgia, serif;
line-height: 1em; /* enforce single spacing so that Georgia works */
margin-top: 0px;
margin-bottom: 8px;
}
h2 {
font-size: 12pt;
font-weight: normal;
font-family: georgia, serif;
line-height: 1.1em; /* enforce single spacing so that Georgia works */
margin-top: 2px;
margin-bottom: 20px;
}
body {
background-color: white;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 10pt;
}
a,
a:visited,
a:hover {
color: #3D58A2;
}
span {
padding: 0px;
}
table#pyOutputPane {
padding: 10px;
}
#pyInputPane, #loadingPane {
margin-top: 10px;
margin-bottom: 20px;
max-width: 700px;
/* center align */
margin-left: auto;
margin-right: auto;
}
#codeInputPane {
margin-top: 5px;
font-size: 12pt;
border: 1px solid #ddd;
}
button.smallBtn {
font-size: 10pt;
padding: 3px;
}
button.bigBtn {
font-size: 12pt;
padding: 6px;
margin-top: 6px;
}
button.surveyBtn {
font-size: 8pt;
margin-top: 8px;
}
#footer {
color: #888888;
font-size: 9pt;
border-top: 1px solid #bbbbbb;
padding-top: 5px;
margin-top: 5px;
max-width: 700px;
/* center align */
margin-left: auto;
margin-right: auto;
}
#frontendErrorOutput {
color: #e93f34; /* should match brightRed JavaScript variable */
font-size: 12pt;
line-height: 1.5em;
margin-top: 8px;
}
.togetherjsBtn {
color: #b80000;
font-size: 11pt;
padding: 5px;
margin-top: 6px;
}
#syncBtn {
font-size: 8pt;
margin-left: 10px;
}
#experimentalHeader {
margin-bottom: 10px;
}
/* necessary for CodeMirror error line highlighting to work! */
.CodeMirror .errorLine { background: #ffff3f !important; }
/* from http://rog.ie/blog/css-star-rater */
.star-rating {
font-size: 0;
white-space: nowrap;
display: inline-block;
/* pgbovine - scale this appropriately with a 5:1 ratio */
width: 100px;
height: 20px;
overflow: hidden;
position: relative;
background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
background-size: contain;
}
.star-rating i {
opacity: 0;
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 20%;
z-index: 1;
background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
background-size: contain;
}
.star-rating input {
-moz-appearance: none;
-webkit-appearance: none;
opacity: 0;
display: inline-block;
width: 20%;
height: 100%;
margin: 0;
padding: 0;
z-index: 2;
position: relative;
}
.star-rating input:hover + i,
.star-rating input:checked + i {
opacity: 1;
}
.star-rating i ~ i {
width: 40%;
}
.star-rating i ~ i ~ i {
width: 60%;
}
.star-rating i ~ i ~ i ~ i {
width: 80%;
}
.star-rating i ~ i ~ i ~ i ~ i {
width: 100%;
}