From 34ec8f6213834224f7af2bf163070ac758f8c565 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 18 Aug 2019 14:52:11 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=90=88=E5=B9=B6=20username=20?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/css/lte.css | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Bootstrap.Admin/wwwroot/css/lte.css b/Bootstrap.Admin/wwwroot/css/lte.css index b2d7eb52..55a643ff 100644 --- a/Bootstrap.Admin/wwwroot/css/lte.css +++ b/Bootstrap.Admin/wwwroot/css/lte.css @@ -37,13 +37,16 @@ } .username { - margin-left: 0.625rem; font-size: 1rem; font-weight: 500; vertical-align: middle; max-width: 120px; } +.username, aside:hover .nav-header span, .userinfo .dropdown-item .username + div { + margin-left: 0.625rem; +} + .userinfo img { border-radius: 4px; width: 40px; @@ -84,10 +87,6 @@ max-width: 180px; } - .userinfo .dropdown-item .username + div { - margin-left: 0.625rem; - } - .userinfo .dropdown-item a { padding: 0.25rem 0.625rem; } @@ -259,10 +258,6 @@ body { transition: top .3s linear; } - aside, aside .nav-header img { - transition: width .3s linear; - } - aside .sub .nav-tem, .sidebar-open aside:hover .sidebar .sub .nav-item { margin-left: 10px; } @@ -290,7 +285,7 @@ body { color: #eee; } - aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item { + aside .sub .nav-link, .userinfo .dropdown-item, aside .sidebar .sub .nav-item, aside, aside .nav-header img { transition: all .3s linear; } @@ -319,7 +314,8 @@ body { } .sidebar-open aside .nav-header img { - width: 2.25rem + width: 2.25rem; + height: 2.25rem; } .sidebar-open aside .nav-brand img, .sidebar-open aside:hover .nav-brand span, .sidebar-open aside:hover .nav-header span, .sidebar-open aside:hover .nav-item span {