Skip to content

Commit 7b8c0cd

Browse files
committed
added breakpoints
1 parent 1fdf74b commit 7b8c0cd

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed

src/style/_home.scss

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,23 @@
22
float: left;
33
width: 450px;
44
background: url("images/arrow-right.svg") right 197px no-repeat;
5+
6+
@include mobile {
7+
float: none;
8+
margin: 0 auto;
9+
width: 100%;
10+
background: none;
11+
}
512
}
613

714
.headings {
815
@include clearfix;
916
margin-bottom: 80px;
17+
18+
@include mobile() {
19+
text-align: center;
20+
margin-bottom: 0;
21+
}
1022
}
1123

1224
.isogrammer {
@@ -15,12 +27,28 @@
1527
background: url("images/logo.svg") center center no-repeat;
1628
float: left;
1729
margin: 0 25px 0 0;
30+
31+
@include mobile {
32+
float: none;
33+
position: absolute;
34+
left: 50%;
35+
margin-left: -87px;
36+
}
1837
}
1938

2039
.tagline {
2140
font-weight: 100;
2241
float: left;
2342
line-height: 1.9;
43+
44+
@include mobile {
45+
float: none;
46+
position: absolute;
47+
left: 50%;
48+
margin-left: -150px;
49+
width: 300px;
50+
margin-top: 40px;
51+
}
2452
}
2553

2654
.isogram-input {
@@ -35,22 +63,57 @@
3563
@include placeholder {
3664
color: white;
3765
}
66+
67+
@include mobile {
68+
width: 300px;
69+
position: absolute;
70+
left: 50%;
71+
margin-left: -150px;
72+
text-align: center;
73+
margin-top: 100px;
74+
}
3875
}
3976

4077
.warning {
4178
margin: 20px auto 180px auto;
4279
height: 20px;
4380
@include animation(flash 4s ease-in-out infinite);
81+
82+
@include mobile {
83+
display: none;
84+
}
4485
}
4586

4687
.credits {
4788
font-size: 14px;
89+
90+
@include mobile {
91+
display: none;
92+
}
93+
}
94+
95+
.credits-mobile {
96+
display: none;
97+
98+
@include mobile {
99+
display: block;
100+
text-align: center;
101+
margin-top: 30px;
102+
}
48103
}
49104

105+
50106
.script-output {
51107
float: right;
52108
margin-top: 100px;
109+
max-width: 570px;
53110
@include size(570px auto);
111+
112+
@include mobile {
113+
float: none;
114+
margin: 225px auto 0 auto;
115+
width: 80%;
116+
}
54117
}
55118

56119
.output-top {
@@ -60,7 +123,6 @@
60123
background: url("images/logo-ga.svg") #8FA3AD 20px center no-repeat;
61124
}
62125

63-
64126
.output-bottom {
65127
border-radius: 0 0 3px 3px;
66128
background-color: #F7F6F4;
@@ -71,6 +133,13 @@
71133
padding: 20px;
72134
overflow: hidden;
73135
letter-spacing: -0.8px;
136+
137+
@include mobile {
138+
overflow-x: scroll;
139+
padding: 10px;
140+
font-size: 10px;
141+
letter-spacing: -1.25px;
142+
}
74143
}
75144

76145
.active {

src/style/_layout.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
@include clearfix;
33
@include size(1050px auto);
44
margin: 100px auto 0 auto;
5+
6+
@include mobile {
7+
width: 100%;
8+
margin-top: 50px;
9+
}
510
}

src/style/_mixins.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@mixin mobile($size: $mobile) {
2+
@media screen and (max-width: $size) {
3+
@content;
4+
}
5+
}

src/style/main.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
$red: #FF2750;
2+
$mobile: 1080px;
3+
14
@import "normalize";
25
@import "bourbon/bourbon";
6+
@import "mixins";
37
@import "animations";
48

5-
$red: #FF2750;
9+
610

711
// defaults
812
*,

src/views/index.jade

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ html
3434
ga('create', 'UIDHERE', 'auto');
3535
ga('send', 'pageview');
3636
</script>
37+
38+
p.credits-mobile by 
39+
a(href="https://twitter.com/jaxgeller") @jaxgeller
40+
3741
script(src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
3842
script(src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js")
3943
script(src="main.js")

0 commit comments

Comments
 (0)