Skip to content

Commit a3999c5

Browse files
committed
Merge pull request #44 from mrjoelkemp/history
Fixes
2 parents 0d8cfe3 + 85311d2 commit a3999c5

14 files changed

Lines changed: 649 additions & 201 deletions

.deprc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": "js/",
3+
"sass_root": "css/"
4+
}

.jscsrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"preset": "google"
3+
}

css/_keyframes.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@-webkit-keyframes fade {
2+
0% { opacity: 1; }
3+
100% { opacity: 0.25; }
4+
}
5+
6+
// Used for the progress bar/spinner
7+
@-webkit-keyframes load1 {
8+
0%,
9+
80%,
10+
100% {
11+
box-shadow: 0 0 #FFF;
12+
height: 4em;
13+
}
14+
40% {
15+
box-shadow: 0 -2em #ffffff;
16+
height: 5em;
17+
}
18+
}
19+
20+
@keyframes load1 {
21+
0%,
22+
80%,
23+
100% {
24+
box-shadow: 0 0 #FFF;
25+
height: 4em;
26+
}
27+
40% {
28+
box-shadow: 0 -2em #ffffff;
29+
height: 5em;
30+
}
31+
}

css/styles.css

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/styles.scss

Lines changed: 92 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1+
@import "_keyframes.scss";
2+
13
$page-width: 860px;
24
$error-red: #F00;
35

4-
@mixin border-radius($radius) {
5-
border-top-radius: $radius;
6-
-moz-border-radius-top: $radius;
7-
-webkit-border-top-radius: $radius;
8-
}
9-
10-
@-webkit-keyframes fade {
11-
0% { opacity: 1; }
12-
100% { opacity: 0.25; }
13-
}
14-
156
body {
167
font-family: sans-serif;
178
}
@@ -26,7 +17,7 @@ body {
2617
width: $sidebar-width;
2718
display: inline-block;
2819
vertical-align: top;
29-
text-align: center;
20+
text-align: left;
3021
font-size: 12px;
3122
> div {
3223
padding: 5px 0;
@@ -38,25 +29,56 @@ body {
3829
color: black;
3930
font-size: 23px;
4031
}
32+
button {
33+
display: none;
34+
}
4135
}
4236
.link-to-heroku {
4337
display: none;
4438
}
4539
.submit {
4640
width: 100%;
4741
position: relative;
48-
text-align: center;
4942
margin-bottom: 3px;
43+
font-size: 11px;
5044
span {
5145
display: block;
5246
font-family: Courier;
5347
margin-bottom: 5px;
5448
&.shortcut {
5549
border: 1px solid #ddd;
56-
padding: 5px;
50+
padding: 3px;
5751
display: inline-block !important;
5852
}
5953
}
54+
55+
button {
56+
display: none;
57+
}
58+
}
59+
.share-code {
60+
input {
61+
width: 62%;
62+
}
63+
}
64+
.credits {
65+
width: 100%;
66+
& > iframe {
67+
position: relative;
68+
top: -1px;
69+
}
70+
.fb-like {
71+
top: -4px;
72+
}
73+
}
74+
.fork-info {
75+
width: 100%;
76+
span {
77+
font-style: italic;
78+
font-size: 12px;
79+
position: relative;
80+
top: -5px;
81+
}
6082
}
6183
}
6284
.rightcol {
@@ -76,6 +98,7 @@ body {
7698
position: relative;
7799
border: 1px solid black;
78100
background-color: #eee;
101+
font-size: 16px;
79102
overflow: auto;
80103
.loader {
81104
display: none;
@@ -111,36 +134,11 @@ body {
111134
-webkit-animation-delay: -0.32s;
112135
animation-delay: -0.32s;
113136
}
114-
@-webkit-keyframes load1 {
115-
0%,
116-
80%,
117-
100% {
118-
box-shadow: 0 0 #FFF;
119-
height: 4em;
120-
}
121-
40% {
122-
box-shadow: 0 -2em #ffffff;
123-
height: 5em;
124-
}
125-
}
126-
@keyframes load1 {
127-
0%,
128-
80%,
129-
100% {
130-
box-shadow: 0 0 #FFF;
131-
height: 4em;
132-
}
133-
40% {
134-
box-shadow: 0 -2em #ffffff;
135-
height: 5em;
136-
}
137-
}
138137
.output-container{
139138
margin: 5px 10px;
140139
span {
141140
font-family: "Lucida Console", Monaco, monospace;
142141
color: black;
143-
font-size: 16px;
144142
&.error {
145143
color: $error-red;
146144
}
@@ -158,42 +156,69 @@ body {
158156
text-align: right;
159157
right: -1px;
160158
top: -21px;
159+
font-size: 15px;
160+
161161
span {
162+
position: absolute;
163+
bottom: 5px;
164+
right: 5px;
162165
color: #888;
163-
font-size: 15px;
164166
font-style: italic;
165-
margin-top: 5px;
166-
margin-right: 5px;
167167
text-shadow: 2px 2px #FFFFFF;
168168
}
169169
}
170170
}
171171

172-
.fork-info {
173-
width: 100%;
174-
text-align: center;
175-
span {
176-
font-style: italic;
177-
font-size: 12px;
178-
position: relative;
179-
top: -5px;
180-
}
181-
}
182-
183-
.credits {
184-
width: 100%;
185-
margin-top: 5px;
186-
position: relative;
187-
text-align: center;
188-
.fb-like {
189-
top: -4px;
190-
}
191-
span, a {
192-
font-style: italic;
193-
font-size: 13px;
194-
}
195-
}
196-
197172
.error-gutter {
198173
background-color: $error-red;
199174
}
175+
176+
// Mobile breakpoint styles (large screen first for now)
177+
@media screen and (max-width: 40.5em) {
178+
.container {
179+
width: 95%;
180+
padding-top: 0;
181+
182+
.fork-me {
183+
display: none;
184+
}
185+
186+
.sidebar {
187+
width: 100%;
188+
text-align: left;
189+
190+
.title {
191+
position: relative;
192+
span {
193+
font-size: 18px;
194+
display: inline-block;
195+
}
196+
197+
button {
198+
display: inline-block;
199+
position: absolute;
200+
right: 0;
201+
}
202+
}
203+
204+
.built-by,
205+
.heroku-version,
206+
.fork-info,
207+
.credits,
208+
.share-code,
209+
.submit {
210+
display: none;
211+
}
212+
}
213+
214+
.rightcol {
215+
width: 100%;
216+
217+
#editor,
218+
.console,
219+
.timestamp {
220+
font-size: 12px;
221+
}
222+
}
223+
}
224+
}

0 commit comments

Comments
 (0)