mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[new feature] add Tabbar component (#204)
* [Document] add english document of Checkbox * [Document] add english document of Field * [Document] add english document of NumberKeyboard * [bugfix] NumberKeyboard should not dispaly title when title is empty * [Document] add english document of PasswordInput * [Document] add english document of Radio * [document] add english document of Switch * [bugfix] remove redundent styles in english document * [Document] fix details * fix Switch test cases * [bugfix] Swipe shouid reinitialize when item changes * [new feature] ImagePreview reconstruct * [new feature] add Tabbar component
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
@import './steps.css';
|
||||
@import './tag.css';
|
||||
@import './tab.css';
|
||||
@import './tabbar.css';
|
||||
@import './image-preview.css';
|
||||
@import './stepper.css';
|
||||
@import './progress.css';
|
||||
|
50
packages/vant-css/src/tabbar.css
Normal file
50
packages/vant-css/src/tabbar.css
Normal file
@@ -0,0 +1,50 @@
|
||||
@import './common/var.css';
|
||||
|
||||
.van-tabbar {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
|
||||
&--fixed {
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
&-item {
|
||||
flex: 1;
|
||||
color: #666;
|
||||
display: flex;
|
||||
line-height: 1;
|
||||
font-size: 12px;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
&__icon {
|
||||
font-size: 18px;
|
||||
margin-bottom: 5px;
|
||||
position: relative;
|
||||
|
||||
&-dot {
|
||||
&::after {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
border-radius: 100%;
|
||||
background-color: $red;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
&--active {
|
||||
color: $blue;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user