From 9c5ad4648f1b760b982c609a4f4547468ab9ff47 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 31 Oct 2017 23:14:14 -0700 Subject: [PATCH] FIX: improves icon alignment the mobile icon has a higher height than other icons, given we want a total 30px height and we apply a 5px top and bottom padding, the icon can be at most 20px height --- .../stylesheets/common/admin/customize.scss | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/common/admin/customize.scss b/app/assets/stylesheets/common/admin/customize.scss index 370ac30b7e1..91665d43b70 100644 --- a/app/assets/stylesheets/common/admin/customize.scss +++ b/app/assets/stylesheets/common/admin/customize.scss @@ -88,21 +88,27 @@ } .nav.target { + margin-top: 15px; + li { position: relative; + + a { + display: flex; + align-items: center; + justify-content: space-between; + } } - margin-top: 15px; + .fa { - margin-left: 3px; - } - li.mobile a { - padding-right: 25px; + margin-left: 8px; } + .d-icon-mobile { - position: absolute; - right: 10px; - top: 3px; + position: relative; + top: -3px; font-size: 1.5em; + max-height: 20px; } }