@antmjs/vantui
Version:
一套适用于Taro3及React的vantui组件库
71 lines (53 loc) • 1.3 kB
text/less
@import '../style/var.less';
@import '../style/hairline.less';
.van-share-sheet {
&__options {
position: relative;
display: flex;
padding: @padding-md 0 @padding-md @padding-xs;
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
&--border::before {
.hairline-top(@cell-border-color, @padding-md);
}
&::-webkit-scrollbar {
height: 0;
}
}
&__option {
display: flex;
flex-direction: column;
align-items: center;
user-select: none;
&:active {
.theme(opacity, '@active-opacity');
}
}
&__button {
height: auto;
padding: 0;
line-height: inherit;
background-color: transparent;
border: 0;
&::after {
border: 0;
}
}
&__icon {
.theme(width, '@share-sheet-icon-size');
.theme(height, '@share-sheet-icon-size');
margin: 0 @padding-md;
}
&__name {
.theme(margin-top, '@padding-xs');
padding: 0 @padding-base;
.theme(color, '@share-sheet-option-name-color');
.theme(font-size, '@share-sheet-option-name-font-size');
}
&__option-description {
padding: 0 @padding-base;
.theme(color, '@share-sheet-option-description-color');
.theme(font-size, '@share-sheet-option-description-font-size');
}
}