mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): improve header style
This commit is contained in:
parent
5de2acd964
commit
f457ae3c87
@ -47,7 +47,9 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li v-if="langLabel && langLink" class="van-doc-header__top-nav-item">
|
<li v-if="langLabel && langLink" class="van-doc-header__top-nav-item">
|
||||||
<a class="van-doc-header__cube" :href="langLink">{{ langLabel }}</a>
|
<a class="van-doc-header__cube" :href="langLink">
|
||||||
|
{{ langLabel }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<search-input
|
<search-input
|
||||||
@ -181,9 +183,10 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
color: #fff;
|
color: #001938;
|
||||||
|
background: #f7f8fa;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 28px;
|
line-height: 30px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.7);
|
border: 1px solid rgba(255, 255, 255, 0.7);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
@ -196,11 +199,11 @@ export default {
|
|||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 9px;
|
top: 10px;
|
||||||
right: 9px;
|
right: 9px;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
color: rgba(255, 255, 255, 0.9);
|
color: #001938;
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
border-color: transparent transparent currentColor currentColor;
|
border-color: transparent transparent currentColor currentColor;
|
||||||
transform: rotate(-45deg);
|
transform: rotate(-45deg);
|
||||||
@ -263,8 +266,8 @@ export default {
|
|||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 28px;
|
width: 30px;
|
||||||
height: 28px;
|
height: 30px;
|
||||||
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -50,5 +50,15 @@ export default {
|
|||||||
|
|
||||||
.DocSearch-Button {
|
.DocSearch-Button {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
background: #f7f8fa;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.DocSearch-Search-Icon {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -27,7 +27,7 @@ module.exports = {
|
|||||||
title: 'Vant',
|
title: 'Vant',
|
||||||
description: '轻量、可靠的移动端 Vue 组件库',
|
description: '轻量、可靠的移动端 Vue 组件库',
|
||||||
logo: 'https://img.yzcdn.cn/vant/logo.png',
|
logo: 'https://img.yzcdn.cn/vant/logo.png',
|
||||||
langLabel: '中文',
|
langLabel: '中',
|
||||||
links: [
|
links: [
|
||||||
{
|
{
|
||||||
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
logo: 'https://b.yzcdn.cn/vant/logo/github.svg',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user