From 262c0ba08e80df87768c1bd855374ef2ec93432e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Sun, 15 Dec 2019 20:17:59 +0800 Subject: [PATCH] perf[documentation]: refine css --- src/components/Share/DropdownMenu.vue | 5 ++++- src/views/documentation/index.vue | 30 +++++++-------------------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/components/Share/DropdownMenu.vue b/src/components/Share/DropdownMenu.vue index a629fe9a..d194a517 100644 --- a/src/components/Share/DropdownMenu.vue +++ b/src/components/Share/DropdownMenu.vue @@ -44,6 +44,7 @@ $t: .1s; width: 250px; position: relative; z-index: 1; + height: auto!important; &-title { width: 100%; display: block; @@ -65,10 +66,12 @@ $t: .1s; position: absolute; width: 100%; background: #e0e0e0; + color: #000; line-height: 60px; height: 60px; cursor: pointer; - font-size: 20px; + font-size: 18px; + overflow: hidden; opacity: 1; transition: transform 0.28s ease; &:hover { diff --git a/src/views/documentation/index.vue b/src/views/documentation/index.vue index 6f69cf42..d3f77468 100644 --- a/src/views/documentation/index.vue +++ b/src/views/documentation/index.vue @@ -1,26 +1,10 @@ @@ -53,8 +37,10 @@ export default { margin: 50px; display: flex; flex-wrap: wrap; + justify-content: space-evenly; + .document-btn { - margin-left: 50px; + flex-shrink: 0; display: block; cursor: pointer; background: black;