forked from js-parsons/js-parsons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parsons.css
130 lines (119 loc) · 2.55 KB
/
parsons.css
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
/** Stylesheet for the puzzles */
.sortable-code {
position: static;
padding-left: 0px;
/*margin-left: 2%;*/
float: left;
}
#sortableTrash { width: 38%; }
#sortable { width: 56%; }
#starter-code { width: 40%; }
#parsons-solution {
width: 58%;
margin-left: 2%;}
.sortable-code ul {
font-size: 120%;
font-family: monospace;
list-style: none;
background-color: #efefff;
padding-bottom: 10px;
padding-left: 0;
margin-left: 0;
border: 1px solid #efefff;;
}
.sortable-code ul:empty {
padding-bottom: 30px;
}
.sortable-code li, .sortable-code li:before, .sortable-code li:after {
box-sizing: content-box;
}
ul.output {
background-color: #FFA;
}
.sortable-code li {
-moz-border-radius:10px;
-webkit-border-radius:10px;
border-radius: 10px;
background-color:#EFEFEF;
border:1px solid lightgray;
padding:10px;
margin-top: 5px;
white-space: nowrap;
overflow: hidden;
cursor: move;
}
.sortable-code li:hover {
overflow: visible;
}
ul.incorrect {
border: 1px solid red;
background-color: #ffefef;
}
ul.correct {
background-color: #efffef;
background-color: #DFF2BF;
}
li.incorrectIndent {
border: 1px solid red;
border-left: 10px solid red;
}
li.correctIndent {
border: 1px solid green;
border-left: 10px solid green;
}
li.incorrectPosition, .testcase.fail, .testcase.error {
background-color: #FFBABA;
border:1px solid red;
}
li.correctPosition, .testcase.pass {
background-color: #DFF2BF;
border:1px solid green;
}
.testcase { padding: 10px; margin-bottom: 10px;}
.testcase .msg { font-weight: bold; }
.testcase .error { color: red;}
.testcase .feedback { font-weight: bolder;}
.testcase .fail .expected, .testcase .fail .actual {
color: red;
font-weight: bolder;
}
.testcase .output {
display: block;
white-space: pre;
background-color: #555555;
color: white;
font-size: 12px;
line-height: 15px;
margin: 5px;
padding: 5px;
}
/** For styling the toggleable elements */
.jsparson-toggle {
padding: 0 15px;
display: inline-block;
border: 1px dashed black;
z-index: 500;
cursor: pointer;
min-width: 10px;
min-height: 15px;
}
.jsparson-toggle:empty {
border-color: red;
}
.jsparson-toggle:empty:before {
content: "??";
display: block;
color: red;
}
/** For input within parsons blocks */
.text-box {
border: solid 1px black;
width:80px;
min-width:80px;
padding: 5px;
font-size: 13.3333px;
font-family: monospace;
}
.text-box:focus{
outline:0;
}