From 78893aac37ff8bdc2ef339d91f383e40aa530300 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 05 十一月 2019 17:36:54 +0800 Subject: [PATCH] update-header --- src/components/sidemenu/index.scss | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/sidemenu/index.scss b/src/components/sidemenu/index.scss index e3396d2..ec7e69f 100644 --- a/src/components/sidemenu/index.scss +++ b/src/components/sidemenu/index.scss @@ -88,6 +88,9 @@ .ant-col { padding: 10px; } + .ant-card-head-title { + text-align: center; + } .ant-card-body { padding: 2px; position: relative; @@ -95,25 +98,23 @@ overflow: hidden; .card-operation { position: absolute; - left: 0px; right: 0px; - bottom: 0px; - top: 100%; - background: rgba(0, 0, 0, 0.35); - padding-top: 0; - transition: top 0.3s, padding-top 0.3s; - button:first-child { - margin-right: 10px; - } + top: 0; + height: 0px; + overflow: hidden; + transition: height 0.3s; button { + height: 30px; + padding: 0 10px; + margin-top: 5px; + margin-right: 10px; display: none; } } } .ant-card-body:hover { .card-operation { - top: 0; - padding-top: 24%; + height: 40px; button { display: inline-block; } -- Gitblit v1.8.0