Revert recent feature and fix it

This commit is contained in:
Arsen Melikyan
2016-01-19 02:47:51 +04:00
parent 714c351d65
commit 092db019e6
3 changed files with 13 additions and 13 deletions

View File

@ -2,12 +2,6 @@
* based off of https://github.com/gitterHQ/sidecar
* license: MIT
*/
.map {
display: flex;
flex-direction: column;
max-height: 90vh;
}
.map-aside {
z-index: 20000;
@ -87,14 +81,17 @@
}
.map-fixed-header {
position: fixed;
background: white;
width: 100%;
z-index: 1;
flex: 1;
padding-bottom: 25px;
left: 0;
top: 0;
}
.map-accordion {
flex: 9;
position: absolute;
margin-top: 180px;
overflow-y: auto;
}

View File

@ -269,11 +269,15 @@ $(document).ready(function() {
});
if (lastChallenge.length) {
lastChallenge = lastChallenge[lastChallenge.length - 1];
var scrollTo = $(lastChallenge).offset().top - 400;
$('.map-accordion').scrollTop(scrollTo);
var scrollTo = $(lastChallenge).offset().top - 380;
$('html, body, .map-accordion').scrollTop(scrollTo);
}
}
if (String(window.location).match(/\/map$/ig)) {
$('.text-center').css('top', '50px');
}
// map
$('#nav-map-btn').on('click', () => {
if (!main.isMapAsideLoad) {

View File

@ -1,7 +1,6 @@
extends ../layout-wide
block content
.map
.map-fixed-header.text-center
.text-center.map-fixed-header
h1 Challenge Map
p Required challenges are marked with a *
.row