UNPKG

@antmjs/vantui

Version:

一套适用于Taro3及React的vantui组件库

98 lines (73 loc) 1.47 kB
@import '../style/var.less'; @class-prefix-space: ~'van-space'; .@{class-prefix-space}-item { flex: none; } .@{class-prefix-space} { display: inline-flex; &-vertical { flex-direction: column; > .@{class-prefix-space}-item { .theme(margin-bottom, '@space-gap-vertical'); &:last-child { margin-bottom: 0; } } } &-horizontal { flex-direction: row; > .@{class-prefix-space}-item { .theme(margin-right, '@space-gap-horizontal'); &:last-child { margin-right: 0; } } &.@{class-prefix-space}-wrap { flex-wrap: wrap; .theme(margin-bottom, '@space-gap-vertical'); > .@{class-prefix-space}-item { .theme(padding-bottom, '@space-gap-vertical'); } } } &.@{class-prefix-space}-block { display: flex; } &-align { &-center { align-items: center; } &-start { align-items: flex-start; } &-end { align-items: flex-end; } &-baseline { align-items: baseline; } } &-justify { &-center { justify-content: center; } &-start { justify-content: flex-start; } &-end { justify-content: flex-end; } &-between { justify-content: space-between; } &-around { justify-content: space-around; } &-evenly { justify-content: space-evenly; } &-stretch { justify-content: stretch; } } }