forked from remy/jsconsole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
console.css
223 lines (181 loc) · 8.47 KB
/
console.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
* {
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
/* make transparent link selection, adjust last value opacity 0 to 1.0 */
-webkit-tap-highlight-color: rgba(0,0,0,0);
margin: 0;
padding: 0;
}
html { height: 100%; background: #fff; }
body { height: 100%; overflow: hidden; border: 0; margin: 0; padding: 0; font-family: "helvetica neue", arial, helvetica; width: 100%; overflow-x: hidden; }
input, textarea { margin: 0; padding: 0; position: relative; font-size: 18px; width: 100%; -webkit-border-radius: 0; -webkit-appearance: none; } /* webkit-mobile adds rounded corners :( */
input { padding: 2px; }
/*#console { position: absolute; left: 0; right: 0; width: 100%; bottom: 0; overflow: auto; border-bottom: 1px solid #5B5C5B; }*/
/* HACK attempt to allow multiline */
body { overflow: auto; }
#console { bottom: 35px; left: 0; right: 0; width: 100%; margin-bottom: 35px; overflow: auto; /*border-bottom: 1px solid #5B5C5B;*/ }
#output { list-style: none; }
#output li { margin: 5px 0; padding: 5px; border-top: 1px solid #EEEFEE; white-space: pre-wrap; }
#output li:last-child { border-bottom: 0;}
#output > li > div { margin-left: 20px; line-height: 20px; }
#console span.gutter { float: left; display: block; width: 5px; }
#output li div { position: relative; }
#output .echo .permalink { position: absolute; right: 0; overflow: hidden; display: block; background: url(link.png) no-repeat center; height: 20px; width: 30px; text-indent: -200px; top: 0; opacity: 0.5; }
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
#output .echo .permalink {
background: url(link@2x.png) no-repeat center;
background-size: 16px 16px;
}
}
#output .echo .permalink:hover { opacity: 1; }
/* log types */
#output span.gutter:before { position: absolute; }
#output .echo span.gutter:before { content: '> '; color: #3583FC; font-size: 18px; font-weight: bold; }
#output .info span.gutter:before { content: 'i '; color: #27A700; font-size: 18px; font-weight: bold; }
#output .error span.gutter:before { content: '\0000D7 '; color: #E81D20; font-size: 28px; font-weight: bold; margin-right: -10px; line-height: 24px; }
#output .response span.gutter:before { content: '« '; color: #BDC3CD; font-size: 18px; font-weight: normal; margin-right: -10px; line-height: 18px; }
/* if response is directly next to echo, don't give it a line - only consoles get lines */
#output li.echo + li.response { border-width: 0px; }
/* hard line on new echo */
#output li.response + li.echo { border-width: 2px; border-color: #DFDFDF; }
#output li.error + li.echo { border-width: 2px; border-color: #DFDFDF; }
#output li.log + li.echo { border-width: 2px; border-color: #DFDFDF; }
#output li.info + li.echo { border-width: 2px; border-color: #DFDFDF; }
/*#output li.info .response span { line-height: 30px; }*/
#output li.echo:first-child { border-width: 0;}
#output li:first-child { border-width: 0; padding-top: 0; }
iframe { display: none; }
/* input style - note: moz-shadow purposely omitted because it affects layout */
form { padding: 5px; border-bottom: 1px solid #AAABB8; background: #E6E8F2; -webkit-box-shadow: 0px 2px 10px rgba(0,0,0,.3); -o-box-shadow: 0px 2px 10px rgba(0,0,0,.3); box-shadow: 0px 2px 10px rgba(0,0,0,.3); }
#exec, .fakeInput { resize: none; position: absolute; left: 0; right: 0; border: 0; /*padding: 5px; */outline: 0; background: #E6E8F2; color: #000; height: 24px; line-height: 24px; overflow: hidden; }
/* HACK */
form { position: fixed; top: 0; width: 100%; z-index: 2; }
#console { padding-top: 35px; }
#exec, .fakeInput { position: relative; height: auto; }
/* bottom position */
.bottom form { bottom: 0; top: auto; }
.bottom form { border-bottom: 0; border-top: 1px solid #AAABB8; background: #E6E8F2; -webkit-box-shadow: 0px -2px 10px rgba(0,0,0,.3); -o-box-shadow: 0px -2px 10px rgba(0,0,0,.3); box-shadow: 0px -2px 10px rgba(0,0,0,.3); }
/* footer, credit, etc */
#footer { position: fixed; bottom: 0; left: 0; right: 0; height: 34px; background-color: #9E9E9E; color: #9E9F9E; color: rgba(158, 158, 158, 0.5); width: 100%; color: #fff; text-shadow: 1px 1px 0 #000; line-height: 24px; border-top: 1px solid #CED1CE; -webkit-transition: background-color ease-out 100ms; -moz-transition: background-color ease-out 100ms; -o-transition: background-color ease-out 100ms; transition: background-color ease-out 100ms; }
#footer:hover { background: #727372; }
#footer a { line-height: 34px; text-transform: lowercase; margin: 0 5px; color: #fff; text-decoration: none; text-shadow: 1px 1px 0 #000; }
/* font size control */
/*#console { top: 35px; bottom: 35px; }*/
#output li, #exec, .fakeInput { min-height: 20px; font-size: 15px; font-family: "Menlo", consolas, monospace; }
/* code complete visual tweaks */
#cursor { display: inline-block; height: 24px; min-width: 1px; outline: 0; top: 0; left: 0; z-index: 999;}
/* HACK */
#cursor { height: auto; white-space: pre-wrap; }
#exec, .fakeInput { cursor: text; }
#exec .suggest { color: #999; }
/* large command input */
body.large #console { top: 0; padding-top: 0; bottom: 0; margin-bottom: 0; right: 40%; width: auto; position: absolute; }
body.large form { right: 0; width: 40%; bottom: 0; background: none; border: 0; padding: 0; }
body.large #exec { position: absolute; width: 100%; padding: 0; border-bottom: 0; top: 0; bottom: 0; height: 100%; z-index: 10; background: #E6E8F2; color: #000; -webkit-box-shadow: none; border-left: 1px solid #AAABB8; left: auto; }
body.large #cursor { padding: 5px; }
/* with footer - which I've removed temporarily */
/* body.large #console {
bottom: 35px;
} */
/* syntax highlighting */
/** Pretty printing styles. Used with prettify.js. */
.str { color: #080; }
.kwd { color: #008; }
.com { color: #800; }
.typ { color: #606; }
.lit { color: #066; }
.pun { color: #660; }
.pln { color: #000; }
.tag { color: #008; }
.atn { color: #606; }
.atv { color: #080; }
.dec { color: #606; }
.error span { color: #E81D20;}
/* hide the footer after a short amount of time */
#footer {
transition: opacity 200ms ease-out;
-webkit-transition: opacity 200ms ease-out;
-moz-transition: opacity 200ms ease-out;
-o-transition: opacity 200ms ease-out;
-ms-transition: opacity 200ms ease-out;
opacity: 1;
}
#footer.hidden {
opacity: 0;
}
#footer:hover {
opacity: 1;
}
.fakeInput {
display: block;
position: absolute;
top: 0;
left: 0;
padding: 5px;
border: 0;
color: red;
opacity: 0;
/* pointer-events: auto !important;*/
}
/*#footer {
-webkit-animation-name: hidefooter;
-webkit-animation-duration: 200ms;
-webkit-animation-delay: 1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-fill-mode: none;
-webkit-transition: opacity 200ms ease-out;
opacity: 1;
}
#footer:hover {
opacity: 1 !important;
}
@-webkit-keyframes hidefooter {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
*/
/* difference display types */
/* iPhone type display */
@media screen and (max-device-width: 480px) {
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
html, body { height: auto; overflow-y: auto; overflow-x: hidden; }
#console { overflow: auto; bottom: 0; border-bottom: 0; margin-bottom: 0; padding-top: 5px; }
#console { margin-top: 35px; }
#output .echo .permalink { width: 18px; height: 20px; }
#footer { display: none; }
#exec, .fakeInput { font-weight: bold; padding-right: 10px; }
#output li { min-height: 20px; font-size: 14px; padding: 2px 5px 0 5px; }
#output > li > div { margin-left: 12px; line-height: 20px; }
#output > li:last-child { padding-bottom: 0; margin-bottom: 0; }
#output .gutter { line-height: 20px; }
#output .echo { padding-top: 5px; }
#output .echo span.gutter:before,
#output .info span.gutter:before,
#output .response span.gutter:before { font-size: 14px; line-height: 18px; height: 14px; }
#output .error span.gutter:before { font-size: 18px; line-height: 18px; }
/* .info span { line-height: 30px; }*/
}
@media screen and (max-device-width: 768px) {
#footer { display: none; }
}
/* allow the debug to be printed */
@media print {
body { overflow: auto; }
#console { overflow: visible; }
}
@media print {
.str { color: #060; }
.kwd { color: #006; font-weight: bold; }
.com { color: #600; font-style: italic; }
.typ { color: #404; font-weight: bold; }
.lit { color: #044; }
.pun { color: #440; }
.pln { color: #000; }
.tag { color: #006; font-weight: bold; }
.atn { color: #404; }
.atv { color: #060; }
}