Skip to content

Commit

Permalink
Fixes modals on iphone
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex authored and Alex committed Jun 9, 2012
1 parent acec957 commit ff5af60
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion represent-map/bootstrap/css/bootstrap-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
padding-left: 10px;
}
.modal {
position: absolute;
position: fixed;
top: 10px;
right: 10px;
left: 10px;
Expand Down
12 changes: 12 additions & 0 deletions represent-map/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<meta charset="UTF-8">
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700|Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="map.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="mobile.css" type="text/css" />
<script src="/scripts/jquery-1.7.1.js" type="text/javascript" charset="utf-8"></script>
Expand Down Expand Up @@ -356,6 +357,17 @@ function show(type) {
</div>
</div>

<!-- more info modal -->
<div class="modal hide" id="modal_info_mobile">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>About This Map</h3>
</div>
<div class="modal-body">
hey there
</div>
</div>


<!-- more info modal -->
<div class="modal hide" id="modal_info">
Expand Down
2 changes: 1 addition & 1 deletion represent-map/map.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ html, body, #map_canvas
}
#modal_info .badges
{
width: 500px;
max-width: 500px;
overflow: hidden;
clear: both;
text-align: center;
Expand Down
21 changes: 6 additions & 15 deletions represent-map/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,19 @@ body
padding: 8px 12px;
}



/* modals (mobile) */
.modal
{
position: absolute;
}
#modal_add .modal-body
#modal_info,
#modal_add
{
max-height: 200px;
}
#modal_info .modal-body
{
max-height: 200px;
margin: 10px 0px;
top: 0;
}



/* landscape styles */
@media screen and (orientation:landscape) {
.menu_mobile
{
display: none;
}
}
}

0 comments on commit ff5af60

Please sign in to comment.