-
Notifications
You must be signed in to change notification settings - Fork 37
/
style.css
181 lines (150 loc) · 3.06 KB
/
style.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
/* --- reset and general --- */
* { margin: 0; padding: 0; }
body {
font-family: Serif;
line-height: 20px;
color: #333;
background: #fff;
}
h1,h2 {
font-family: Sans-Serif;
letter-spacing: -.04em;
color: #000;
}
h1 { font-size: 80px; line-height: 60px; }
h2 { font-size: 30px; line-height: 40px; }
body.dropit { background: #eee; }
body.dropit:after {
content: "Drop it!";
font-family: sans-serif;
position: fixed;
z-index: 200;
top: 50%;
left: 50%;
background: red;
color: #fff;
display: block;
width: 200px;
height: 200px;
border-radius: 110px;
line-height: 200px;
text-align: center;
font-weight: bold;
font-size: 40px;
margin: -100px 0 0 -100px;
border: 5px solid #fff;
box-shadow: 0 0 15px rgba(0,0,0,.5), 0 0 100px #000;
}
body.error h1, body.error p, body.error pre { margin: 0 0 15px 0; }
body.error pre {
background: #eee;
padding: 15px 30px 15px 15px;
}
a {
color: #E90094;
text-decoration: none;
}
/* --- loading --- */
body.loading:before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
color: #666;
background: #fff url("images/loading.gif") center center no-repeat;
text-align: center;
z-index: 1000;
}
/* --- nav --- */
nav {
position: fixed;
bottom: 0;
right: 0;
background: #ccc;
font-family: sans-serif;
padding: 2px 10px 2px 8px;
z-index: 200;
border-radius: 5px 0 0 0;
font-size: 12px;
}
nav * { margin: 0 0 0 2px; }
nav a { font-weight: bold; margin: 0 0 0 8px; }
nav label { cursor: pointer; }
/* --- ace editor stuff --- */
div[role="input"] section {
position: relative;
height: 33.4%;
margin: 0 10px 0 0;
overflow: hidden;
}
div[role="input"] pre {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
section label {
position: absolute;
top: 0;
right: 15px;
color: #000;
background: rgba(255,255,255,.75);
font-family: sans-serif;
padding: 2px 7px;
z-index: 100;
border-radius: 0 0 0 5px;
font-size: 14px;
transition: all .2s ease;
}
pre.focus + label { top: -30px; }
pre.invalid + label {
top: 0;
background: #E00000;
}
pre.invalid + label:before { content: "Invalid "; }
/* --- layout --- */
div[role="input"], div[role="output"] {
position: absolute;
top: 20px;
left: 20px;
min-height: 400px;
}
div[role="input"] {
width: auto;
bottom: 20px;
width: 320px;
}
div[role="output"] {
right: 20px;
left: 340px;
bottom: 20px;
}
@media all and (min-width: 1200px) {
div[role="input"] { width: 420px; }
div[role="output"] { left: 440px; }
}
@media all and (min-width: 1600px) {
div[role="input"] { width: 620px; }
div[role="output"] { left: 640px; }
}
/* --- output --- */
#ifrOutput {
width: 100%;
border: none;
outline: 1px dashed #ccc;
height: 100%;
}
/* --- view overrides (default=split) --- */
body[role="edit"] div[role="input"] { width: auto; right: 10px; }
body[role="edit"] div[role="input"] section {
width: 33.3%;
float: left;
height: 100%;
margin: 0;
}
body[role="edit"] div[role="output"] { display: none; }
body[role="result"] div[role="input"] { display: none; }
body[role="result"] div[role="output"] { left: 20px; }