tt-mp
Version:
一套组件化、可复用、易扩展的头条小程序 UI 组件库
86 lines (69 loc) • 1.48 kB
text/less
@import '../styles/mixins/index.less';
@import '../styles/themes/index.less';
.@{wux-prefix}-dialog {
&__button {
.button-reset();
display: block;
flex: 1;
color: @success ;
position: relative;
&--default {
color: @dark ;
}
&--primary {
color: @success ;
}
&--bold {
font-weight: 500 ;
}
&--hover {
background-color: @active-state-bg ;
}
&--disabled {
opacity: @disabled-opacity;
}
}
&__prompt {
position: relative;
margin-top: 10px;
&::after {
.hairline(@border-color-split);
border-top-width: @border-width-base;
border-right-width: @border-width-base;
border-bottom-width: @border-width-base;
border-left-width: @border-width-base;
border-radius: @border-radius-lg;
}
}
&__input {
padding: 4px 6px;
height: 36px;
line-height: 1;
width: 100%;
text-align: left;
box-sizing: border-box;
}
&__buttons {
display: flex;
flex: 1;
&--horizontal {
.@{wux-prefix}-dialog__button {
&::after {
.setLeftLine(@border-color-split);
}
&:first-child::after {
display: none;
}
}
}
&--vertical {
display: block;
height: auto;
.@{wux-prefix}-dialog__button {
&::after {
.setTopLine(@border-color-split);
}
}
}
}
}