@nutui/nutui-react
Version:
京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序
151 lines (149 loc) • 3.88 kB
CSS
/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-address-exist {
display: block;
padding: scale-px(15px) scale-px(20px) 0;
height: scale-px(279px);
overflow-y: auto;
box-sizing: border-box;
}
.nut-address-exist-item {
display: flex;
align-items: center;
margin-bottom: scale-px(20px);
font-size: var(--nutui-font-text-small);
line-height: var(--nutui-font-text);
color: var(--nutui-color-title);
}
.nut-address-exist-item.active {
font-weight: var(--nutui-font-weight-bold);
}
.nut-address-exist-item-info {
margin-left: scale-px(9px);
}
.nut-address-footer {
width: 100%;
height: scale-px(54px);
padding: scale-px(6px) 0 0;
border-top: scale-px(1px) solid var(--nutui-color-border);
}
.nut-address-footer-btn {
width: 90%;
height: scale-px(42px);
line-height: scale-px(42px);
margin: auto;
text-align: center;
background: var(--nutui-color-primary);
border-radius: scale-px(21px);
font-size: var(--nutui-font-text-large);
color: var(--nutui-color-text-dark);
}
.nut-address-title {
font-size: var(--nutui-font-text);
font-weight: 500;
padding: scale-px(16px) scale-px(16px) scale-px(12px) scale-px(16px);
}
.nut-address-hotlist {
padding: 0 scale-px(16px);
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
.nut-address-hotlist-item {
display: flex;
justify-content: center;
align-items: center;
width: scale-px(63px);
height: scale-px(28px);
font-size: var(--nutui-font-text-small);
border-radius: scale-px(4px);
margin-bottom: scale-px(7px);
/* #ifdef harmony dynamic*/
margin-right: scale-px(6px);
/* #endif */
/* #ifndef harmony dynamic*/
margin-right: scale-px(7px);
/* #endif */
background-color: var(--nutui-gray-2, #f8f8f8);
color: var(--nutui-color-title);
}
.nut-address-hotlist-item:nth-child(5n) {
margin-right: 0;
}
.nut-address-hotlist.hotlist-more .nut-address-hotlist-item {
width: auto;
padding: 0 scale-px(16px);
margin-right: scale-px(7px);
}
.nut-address-selected {
width: 100%;
height: scale-px(60px);
padding: 0 scale-px(16px);
display: flex;
align-items: center;
border-bottom: scale-px(1px) solid var(--nutui-color-border);
}
.nut-address-selected-item {
font-size: var(--nutui-font-text-small);
display: inline-block;
height: scale-px(28px);
line-height: scale-px(28px);
padding: 0 scale-px(12px);
border-radius: scale-px(4px);
background-color: var(--nutui-gray-2, #f8f8f8);
}
.nut-address-selected-item.active {
border: scale-px(1px) solid var(--nutui-color-primary);
background-color: var(--nutui-color-primary-light-pressed);
color: var(--nutui-color-primary);
}
.nut-address-selected-border {
margin: 0 scale-px(2px);
color: var(--nutui-color-text-disabled);
}
.nut-address-elevator {
margin-top: 0;
}
.nut-address-elevator .nut-elevator-list-item {
position: relative;
padding-left: scale-px(20px);
}
.nut-address-elevator .nut-elevator-list-item-code {
display: inline;
position: absolute;
left: 0;
top: 0;
height: scale-px(30px);
line-height: scale-px(30px);
border-bottom: 0;
color: var(--nutui-color-text-help);
font-weight: 500;
}
.nut-address-elevator .nut-elevator-bars {
top: 40%;
padding: 0;
background: none;
}
.nut-address-elevator .nut-elevator-bars-inner-item {
display: flex;
justify-content: center;
align-items: center;
width: scale-px(16px);
height: scale-px(16px);
font-size: var(--nutui-font-text-mini);
border-radius: scale-px(16px);
margin-bottom: scale-px(2px);
color: var(--nutui-color-text-help);
}
.nut-address-elevator .nut-elevator-bars-inner-item-active {
background-color: var(--nutui-color-primary);
color: var(--nutui-color-surface-2);
font-weight: 400;
}
[dir=rtl] .nut-address-exist-item-info,
.nut-rtl .nut-address-exist-item-info {
margin-left: 0;
margin-right: scale-px(9px);
}