From c4d5887516136eab370afc572693483e254a3dc0 Mon Sep 17 00:00:00 2001
From: 康凯 <kangk26@foxmail.com>
Date: Tue, 14 Dec 2021 16:08:42 +0800
Subject: [PATCH] 底部导航,高亮状态文字没有对齐的,并且高亮线和文字等宽
---
src/views/layout/listIndex.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/views/layout/listIndex.vue b/src/views/layout/listIndex.vue
index f450b0c..da552b1 100644
--- a/src/views/layout/listIndex.vue
+++ b/src/views/layout/listIndex.vue
@@ -127,28 +127,36 @@
}
.mint-tabbar /deep/ .mint-tab-item {
- padding: 20px 0;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
}
.mint-tabbar /deep/ .mint-tab-item-label {
+ width: 7.75rem;
+ height: 100%;
+ border-top: 1px solid white;
+
font-size: 1.75rem;
font-family: Source Han Sans CN;
font-weight: 400;
- line-height: 1.93rem;
+ line-height: 3.5rem;
color: #767676;
opacity: 1;
}
.mint-tabbar /deep/ .is-selected {
background-color: white;
- border-top: 0.5vh solid #BC0000;
}
.mint-tabbar /deep/ .is-selected .mint-tab-item-label {
+ border-top: 1px solid #BC0000;
+
font-size: 1.75rem;
font-family: Source Han Sans CN;
font-weight: bold;
- line-height: 1.93rem;
+ line-height: 3.5rem;
color: #BC0000;
opacity: 1;
}
--
Gitblit v1.9.3