forked from mozilla/friendlycode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errorhelp.css
executable file
·227 lines (188 loc) · 4.22 KB
/
errorhelp.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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
/* ------ ERRORS AND HELP MESSAGE STYLING ------ */
html .flipped {
margin-top: -180px;
}
html .help:not(.flipped) .up-arrow,
html .error:not(.flipped) .up-arrow {
display: block;
}
html .flipped .down-arrow {
display: block;
}
.error,
.help {
display: block;
position: absolute;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
/* Force the left side of the message to be on the left side of the
* editing area. CodeMirror.addWidget() will set the left side on the
* style attribute of the widget to be where the relevant character is,
* and we want to override that. */
left: 0 !important;
width: 97%;
height: 140px;
background-color: #FDFDFD;
margin: 10px;
margin-top: 20px;
padding: 4px;
white-space: normal;
border: 1px solid rgb(193,193,193);
-webkit-box-shadow: 0 0 5px 1px #C1C1C1;
box-shadow: 0 0 5px 1px #C1C1C1;
z-index: 1000;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.error p {
display: inline;
}
.error .icon,
.help .icon {
display: inline-block;
width: 20%;
height: 100%;
border-right: 1px solid #C0C0C0;
text-align: center;
vertical-align: middle;
background-position: center center;
background-repeat: no-repeat;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.error .content,
.help .content {
display: inline-block;
width: 78%;
height: 90%;
vertical-align: top;
overflow: auto;
padding: 5px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.error .icon {
background-image: url("../img/error.png");
}
.help .icon {
background-image: url("../img/help.png");
}
.CodeMirror-gutter-text .gutter-highlight-error {
color: white;
background: #FF2A04;
}
.error a,
.error strong,
.error code,
.error em[data-highlight] {
color: #FF2A04;
}
.CodeMirror-gutter-text .gutter-highlight-help {
color: white;
background: #FF9933;
}
.help a,
.help strong,
.help code,
.help em[data-highlight] {
color: #FF9933;
}
.error a,
.help a {
font-weight: bold;
}
.error strong,
.help strong {
font-weight: bold;
font-size: 110%;
}
.error code,
.help code {
font-weight: bold;
font-size: 110%;
}
.error em.highlight-1 {
font-style: normal;
text-decoration: underline;
cursor: pointer;
}
.CodeMirror span.highlight-1,
.CodeMirror span.highlight-2 {
background: rgba(255, 0, 0, 0.05) !important;
}
.CodeMirror span.cursor-help-highlight,
.cursor-help-highlight {
background-color: rgba(255, 160, 0, 0.2);
}
.error em.highlight-2 {
text-decoration: underline;
cursor: pointer;
font-style: normal;
}
.CodeMirror .cursor-pointer {
display: absolute;
font-size: 40px;
padding-top: 0px;
font-weight: bold;
z-index: 2000;
color: #FF2A04;
text-shadow:
-2px -2px 0 white,
2px -2px 0 white,
-2px 2px 0 white,
2px 2px 0 white;
}
.cursor-pointer:before {
content: '▲';
}
.error .down-arrow,
.help .down-arrow,
.error .up-arrow,
.help .up-arrow {
position: absolute;
display: none;
width: 40px;
height: 23px;
background-repeat: no-repeat;
background-position: center center;
padding-left: 20px;
}
.error .down-arrow,
.help .down-arrow {
top: 138px;
background-image: url("../img/hint-down-arrow.png");
}
.error .up-arrow,
.help .up-arrow {
top: -22px;
background-image: url("../img/hint-up-arrow.png");
}
.hint-marker-positioning {
left: auto !important; /* CodeMirror will set this value, but we don't want it set! */
right: 1em;
background-color: transparent;
margin: 0px;
padding: 0px;
cursor: pointer;
width: 1.4em;
height: 1.4em;
margin-top: -1.3em;
background-size: 100% 100%;
}
.hint-marker-help {
background-image: url("../img/questionmark.png");
}
.hint-marker-error {
background-image: url("../img/explanationpt.png");
}
svg.gutter-pointer {
z-index: 100;
}
svg.gutter-pointer.gutter-highlight-error polygon {
fill: #FF2A04;
}
svg.gutter-pointer.gutter-highlight-help polygon {
fill: #FF9933;
}