Merge pull request #3062 from pukhrajbal/master

Blurriness and duplication of fpmenu
pull/4643/head^2
Thibault Duplessis 2017-05-21 09:53:15 +02:00 committed by GitHub
commit 4889b0c0f6
2 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,7 @@ body.fpmenu #fpmenu {
}
#fpmenu .forgot {
font-size: 0.8em;
margin-top: 5px;
margin-top: 4px;
text-align: center;
}
#fpmenu .forgot a {

View File

@ -612,9 +612,10 @@ lichess.topMenuIntent = function() {
return false;
});
$('#ham-plate').one('mouseover click', function() {
$('body').append($('<div id=fpmenu>').load('/fpmenu'));
$('#ham-plate').one('mouseover', function() {
lichess.loadCss('/assets/stylesheets/fpmenu.css');
}).one('click', function() {
$('body').append($('<div id=fpmenu>').load('/fpmenu'));
}).click(function() {
document.body.classList.toggle('fpmenu');
});