Revert recent feature and fix it
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user