From 08f634f1fd4dc0df9e9f166bab699e63b57d9396 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 10 Aug 2019 16:05:18 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=90=8C=E6=AD=A5=E9=80=9A=E7=94=A8?= =?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/theme.css | 31 +++++++++++++++++++ .../wwwroot/css/theme-responsive.css | 4 +++ Bootstrap.Client/wwwroot/css/theme.css | 7 ++++- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/Bootstrap.Admin/wwwroot/css/theme.css b/Bootstrap.Admin/wwwroot/css/theme.css index 989c11b5..33edd004 100644 --- a/Bootstrap.Admin/wwwroot/css/theme.css +++ b/Bootstrap.Admin/wwwroot/css/theme.css @@ -31,6 +31,37 @@ body { opacity: 0.8; } + .header .navbar { + padding: 0 0 0 1rem; + } + + .header .navbar .dropdown-menu { + padding: 0.25rem 0; + } + + .header .navbar .dropdown-menu-arrow { + width: 0; + height: 0; + border-width: 0 6px 6px; + border-style: solid; + border-color: transparent transparent rgba(0,0,0,.15); + position: absolute; + left: 16px; + margin-top: -10px; + } + + .header .navbar .dropdown-menu-arrow:after { + content: " "; + width: 0; + height: 0; + border-width: 0 6px 6px; + border-style: solid; + border-color: transparent transparent #fff; + position: absolute; + top: 1px; + left: -6px; + } + .userinfo img { height: 29px; width: 29px; diff --git a/Bootstrap.Client/wwwroot/css/theme-responsive.css b/Bootstrap.Client/wwwroot/css/theme-responsive.css index 60f76c00..4cc0f799 100644 --- a/Bootstrap.Client/wwwroot/css/theme-responsive.css +++ b/Bootstrap.Client/wwwroot/css/theme-responsive.css @@ -122,4 +122,8 @@ .modal-xl { max-width: 1100px; } + + .modal-body-fixed { + max-height: calc(80vh); + } } diff --git a/Bootstrap.Client/wwwroot/css/theme.css b/Bootstrap.Client/wwwroot/css/theme.css index 48ccc712..33edd004 100644 --- a/Bootstrap.Client/wwwroot/css/theme.css +++ b/Bootstrap.Client/wwwroot/css/theme.css @@ -342,7 +342,7 @@ footer { left: 0; bottom: 0; right: 0; - z-index: 100; + z-index: 1040; display: flex; } @@ -488,6 +488,11 @@ input.pending { padding: 15px 15px 0 15px; } +.modal-body-fixed { + max-height: calc(54vh); + overflow-y: auto; +} + .card { margin-bottom: 15px; box-shadow: 0 0 8px 0 rgba(0,0,0,.075), 0 2px 4px 0 rgba(255,255,255,0);