Skip to content

Commit

Permalink
mobile styles media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyObviously committed Jul 17, 2019
1 parent b10445d commit 6ded54c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down
37 changes: 24 additions & 13 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {


.logo{
font-size: 3vh;
letter-spacing: 2vh;
}
}


.App {
Expand Down Expand Up @@ -72,7 +61,7 @@ a {

.map-container {
margin: 0 auto;
width: 450px;
width: 400px;
}

.cta {
Expand Down Expand Up @@ -129,4 +118,26 @@ display: inline;}
.NavBar {
margin-bottom: 20px;
font-size: 5vh;
}
}

@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {

.logo{
font-size: 10vh;
letter-spacing: 2vh;
display: flex;
}

h1, h2{
font-size: 1.5rem;
}

.cta {
font-size: 1.5em;
}

}
2 changes: 1 addition & 1 deletion src/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Map extends Component {
map = {this.map}
need = {this.props.need}
onClick={area => this.props.selectDistrict(area.alt)}
width = {450}
width = {400}
imgWidth = {783}
src='https://i.imgur.com/yDK9h4z.png'
/>
Expand Down

0 comments on commit 6ded54c

Please sign in to comment.