Revert recent feature and fix it
This commit is contained in:
@ -2,12 +2,6 @@
|
|||||||
* based off of https://github.com/gitterHQ/sidecar
|
* based off of https://github.com/gitterHQ/sidecar
|
||||||
* license: MIT
|
* license: MIT
|
||||||
*/
|
*/
|
||||||
.map {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
max-height: 90vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.map-aside {
|
.map-aside {
|
||||||
|
|
||||||
z-index: 20000;
|
z-index: 20000;
|
||||||
@ -87,14 +81,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.map-fixed-header {
|
.map-fixed-header {
|
||||||
|
position: fixed;
|
||||||
background: white;
|
background: white;
|
||||||
|
width: 100%;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
flex: 1;
|
left: 0;
|
||||||
padding-bottom: 25px;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-accordion {
|
.map-accordion {
|
||||||
flex: 9;
|
position: absolute;
|
||||||
|
margin-top: 180px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,11 +269,15 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
if (lastChallenge.length) {
|
if (lastChallenge.length) {
|
||||||
lastChallenge = lastChallenge[lastChallenge.length - 1];
|
lastChallenge = lastChallenge[lastChallenge.length - 1];
|
||||||
var scrollTo = $(lastChallenge).offset().top - 400;
|
var scrollTo = $(lastChallenge).offset().top - 380;
|
||||||
$('.map-accordion').scrollTop(scrollTo);
|
$('html, body, .map-accordion').scrollTop(scrollTo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (String(window.location).match(/\/map$/ig)) {
|
||||||
|
$('.text-center').css('top', '50px');
|
||||||
|
}
|
||||||
|
|
||||||
// map
|
// map
|
||||||
$('#nav-map-btn').on('click', () => {
|
$('#nav-map-btn').on('click', () => {
|
||||||
if (!main.isMapAsideLoad) {
|
if (!main.isMapAsideLoad) {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
extends ../layout-wide
|
extends ../layout-wide
|
||||||
block content
|
block content
|
||||||
.map
|
.text-center.map-fixed-header
|
||||||
.map-fixed-header.text-center
|
|
||||||
h1 Challenge Map
|
h1 Challenge Map
|
||||||
p Required challenges are marked with a *
|
p Required challenges are marked with a *
|
||||||
.row
|
.row
|
||||||
|
Reference in New Issue
Block a user