Skip to content

Commit 8aadf07

Browse files
committed
Style fixes for mobile
1 parent f06e4d6 commit 8aadf07

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

public/2016/css/main.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,16 @@ section {
2020
background-size: 100%;
2121
margin: -70px 0 0;
2222
}
23+
section .wrap {
24+
width: 500px;
25+
margin: 0 auto;
26+
display: block;
27+
text-align: center;
28+
}
2329
section img {
2430
bottom: -80px;
2531
display: block;
26-
width: 500px;
32+
width: 100%;
2733
margin: 0 auto;
2834
position: relative;
2935
z-index: 2;
@@ -114,7 +120,7 @@ footer {
114120

115121
/*-- Smallest devices (phones, 320px to 480px) --*/
116122
@media (min-width: 320px) and (max-width: 480px) {
117-
section img {
123+
section .wrap {
118124
width: 250px;
119125
}
120126
h1 {
@@ -128,7 +134,7 @@ footer {
128134

129135
/*-- Small devices (tablets, 481px to 767px) --*/
130136
@media (min-width: 481px) and (max-width: 767px) {
131-
section img {
137+
section .wrap {
132138
width: 290px;
133139
}
134140
h1 {
@@ -142,7 +148,7 @@ footer {
142148

143149
/*-- Medium devices (desktops, 768px to 991px) --*/
144150
@media (min-width: 768px) and (max-width: 991px) {
145-
section img {
151+
section .wrap {
146152
width: 430px;
147153
}
148154
}

public/2016/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@
2424
<div class="clearfix"></div>
2525

2626
<div class="wrapper">
27+
2728
<section>
29+
<div class="wrap">
2830
<img class="slideInDown animated" src="images/gophercon2016.svg" />
31+
</div>
2932
</section>
3033

3134
<h1 class="slideInLeft animated">July 11th - 13th, 2016 <br /> Denver, Colorado</h1>

0 commit comments

Comments
 (0)