Commit a1871820 authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch '189-accession-map-on-the-home-page-doesn-t-lead-to-the-map' into 'master'

#189 Accession map on mobile, fixed link opening, centered the map.

Closes #189 and #190

See merge request genesys-pgr/genesys-server!102
parents bc498717 a0b040fd
......@@ -81,6 +81,12 @@ $light-font-family: 'Roboto-Light';
&:-ms-input-placeholder {@content}
}
//fixing iOS focus on scroll bug
html,body{
-webkit-overflow-scrolling : touch !important;
overflow: auto !important;
height: 100% !important;
}
.genesys-page, .admin-page{
font-family: $default-font-family;
......@@ -4603,6 +4609,26 @@ table.accessions {
}
@media (max-width: 991px) {
.genesys-page, .admin-page {
#content {
.map-wrapper-mobile {
position: absolute;
padding: 0;
}
.row.map #globalmap {
background-image: url('../images/map-bg-mobile.png');
height: 200px;
position: absolute;
top: 51px;
width: 100%;
background-position-x: 50%;
background-position-y: 0;
background-size: 380px auto;
background-repeat: no-repeat;
}
}
}
//crop page
.crop-page {
.about-section .free-text div:last-child {
......@@ -4983,12 +5009,6 @@ table.accessions {
}
.row.map {
#stats {
height: 460px;
background-image: url('../images/map-bg-mobile.png');
background-position-x: 0;
background-position-y: 51px;
background-size: 380px auto;
background-repeat: no-repeat;
h2.short {
/*left: 0;*/
......
......@@ -54,7 +54,7 @@
</div>
</div>
<div class="hidden-xs col-md-8 col-sm-12">
<div class="col-xs-12 col-md-8 map-wrapper-mobile">
<%-- <h2>
<spring:message code="maps.accession-map" />
</h2> --%>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment