From 9104fc75cc4d82aa093cda254a0d4d3b8603dd0c Mon Sep 17 00:00:00 2001 From: Pukhraj Bal Date: Sat, 20 May 2017 17:29:54 -0700 Subject: [PATCH 1/2] Remove blurriness from anon sign in fpmenu --- public/stylesheets/fpmenu.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/stylesheets/fpmenu.css b/public/stylesheets/fpmenu.css index c2b2e2ed2e..17b7a02c5b 100644 --- a/public/stylesheets/fpmenu.css +++ b/public/stylesheets/fpmenu.css @@ -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 { From 5e60700800b0343cd9170122763a779b245d5e8a Mon Sep 17 00:00:00 2001 From: Pukhraj Bal Date: Sat, 20 May 2017 18:18:38 -0700 Subject: [PATCH 2/2] Load fpmenu only once - this avoids duplication of dom generated by mouseover and click. Duplicate dom is visible with current stylesheet when you have browser size less than 970px --- ui/site/src/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/site/src/main.js b/ui/site/src/main.js index 92089859a2..82a767c88f 100644 --- a/ui/site/src/main.js +++ b/ui/site/src/main.js @@ -612,9 +612,10 @@ lichess.topMenuIntent = function() { return false; }); - $('#ham-plate').one('mouseover click', function() { - $('body').append($('
').load('/fpmenu')); + $('#ham-plate').one('mouseover', function() { lichess.loadCss('/assets/stylesheets/fpmenu.css'); + }).one('click', function() { + $('body').append($('
').load('/fpmenu')); }).click(function() { document.body.classList.toggle('fpmenu'); });