UNPKG

@nutui/nutui-react-taro

Version:

京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序

229 lines 8.63 kB
/* #ifdef harmony */ /* #endif */ /* #ifndef harmony */ /* #endif */ .nut-steps { display: flex; } .nut-steps-horizontal { flex-flow: row; } .nut-steps-horizontal .nut-step-head { background-color: var(--nutui-steps-background-color, #ffffff); } .nut-steps-horizontal .nut-step-head-icon .nut-icon { height: 10px; width: 10px; } .nut-steps-horizontal .nut-step-head-icon .nut-image { width: 100%; height: 100%; background-color: var(--nutui-steps-background-color, #ffffff); } .nut-steps-horizontal .nut-step-head-icon .nut-image img { vertical-align: top; } .nut-steps-horizontal .nut-step.nut-step-process .nut-step-title { color: var(--nutui-steps-process-title-color, var(--nutui-color-primary, #ff0f23)); } .nut-steps-horizontal .nut-step.nut-step-process .nut-step-description { color: var(--nutui-steps-process-description-color, var(--nutui-color-primary, #ff0f23)); } .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-title { color: var(--nutui-steps-wait-title-color, var(--nutui-color-title, #1a1a1a)); } .nut-steps-horizontal .nut-step.nut-step-wait .nut-step-description { color: var(--nutui-steps-wait-description-color, var(--nutui-color-text, #505259)); } .nut-steps-horizontal-single .nut-step { padding-right: var(--nutui-steps-horizontal-item-padding-right, 28px); } .nut-steps-horizontal-single .nut-step-last { padding-right: 0 !important; } .nut-steps-horizontal-single .nut-step-line { top: 0; right: 0; height: var(--nutui-steps-base-head-height, 14px); width: var(--nutui-steps-horizontal-item-padding-right, 28px); padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px); box-sizing: border-box; } .nut-steps-horizontal-single .nut-step-title, .nut-steps-horizontal-single .nut-step-description { padding-left: 4px; } .nut-steps-horizontal-single .nut-step-special { padding-right: var(--nutui-steps-horizontal-item-special-padding-right, 22px); } .nut-steps-horizontal-single .nut-step-special .nut-step-line { width: 100%; } .nut-steps-horizontal-single .nut-step-special .nut-step-title { padding-right: 8px; width: fit-content; } .nut-steps-horizontal-single.nut-steps-horizontal-count-3 .nut-step-special { padding-right: var(--nutui-steps-horizontal-item-special-3-padding-right, 9px); } .nut-steps-horizontal-double { width: 100%; justify-content: space-between; } .nut-steps-horizontal-double .nut-step { flex-direction: column; align-items: center; flex: 1; } .nut-steps-horizontal-double .nut-step-line { top: 0; right: -50%; height: var(--nutui-steps-base-head-height, 14px); width: 100%; } .nut-steps-horizontal-double .nut-step-line-inner { display: inline-flex; height: var(--nutui-steps-base-line-height, 1px); width: 100%; background: var(--nutui-steps-base-line-background, var(--nutui-color-border, rgba(0, 0, 0, 0.06))); } .nut-steps-horizontal-double .nut-step-head { justify-content: center; margin-bottom: 6px; } .nut-steps-horizontal-double .nut-step-head-dot-wrap, .nut-steps-horizontal-double .nut-step-head-icon-wrap, .nut-steps-horizontal-double .nut-step-head-text-wrap { background-color: var(--nutui-steps-background-color, #ffffff); padding: var(--nutui-steps-horizontal-item-line-padding, 0 8px); } .nut-steps-horizontal-double .nut-step-head-icon { height: var(--nutui-steps-base-head-icon-size-right, 20px); width: var(--nutui-steps-base-head-icon-size-right, 20px); } .nut-steps-horizontal-double .nut-step-head-icon .nut-icon { height: 12px; width: 12px; } .nut-steps-horizontal-double .nut-step-main { align-items: center; margin-left: 0; margin-top: 2px; } .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-icon .nut-step-line { height: var(--nutui-steps-base-head-icon-size-right, 20px); } .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-dot .nut-step-line { height: var(--nutui-steps-base-head-dot-size, 6px); } .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-head, .nut-steps-horizontal-double.nut-steps-horizontal-text .nut-step-line { height: var(--nutui-steps-base-head-text-size, 12px); } .nut-steps-vertical { /* #ifdef harmony dynamic*/ flex: 1; min-width: 0; /* #endif */ flex-direction: column; } .nut-steps-vertical .nut-step { padding-bottom: var(--nutui-steps-vertical-item-padding-bottom, 13px); } .nut-steps-vertical .nut-step-last { padding-bottom: 0 !important; } .nut-steps-vertical .nut-step-line { height: calc(100% - 4px); width: 1px; bottom: 0; } .nut-steps-vertical .nut-step-line-inner { height: 100%; } .nut-steps-vertical .nut-step-head { align-items: center; justify-content: center; height: 18px; } .nut-steps-vertical .nut-step-head-icon { width: var(--nutui-steps-vertical-item-icon-size, 20px); height: var(--nutui-steps-vertical-item-icon-size, 20px); } .nut-steps-vertical .nut-step-head-icon .nut-icon { height: 12px; width: 12px; } .nut-steps-vertical .nut-step-main { flex: 1; min-width: 0; height: auto; margin-left: 8px; } .nut-steps-vertical .nut-step-title { display: flex; align-items: center; height: var(--nutui-steps-vertical-line-height, 18px); font-size: var(--nutui-steps-vertical-title-font-size, var(--nutui-font-size-l, 15px)); overflow: auto; font-weight: 500; margin-bottom: var(--nutui-steps-vertical-title-margin-bottom, 4px); } .nut-steps-vertical .nut-step-description { margin: var(--nutui-steps-vertical-description-margin, 0 0 1px); height: auto; line-height: var(--nutui-steps-vertical-line-height, 18px); color: var(--nutui-color-title, #1a1a1a); font-size: var(--nutui-steps-vertical-description-font-size, var(--nutui-font-size-base, 14px)); box-sizing: border-box; } .nut-steps-vertical .nut-step-head-dot-wrap, .nut-steps-vertical .nut-step-head-icon-wrap, .nut-steps-vertical .nut-step-head-text-wrap { display: flex; align-items: center; justify-content: center; width: 100%; background-color: white; position: relative; z-index: 1; } .nut-steps-vertical .nut-step-head-dot-wrap { height: calc(var(--nutui-steps-base-head-dot-size, 6px) + 8px); } .nut-steps-vertical .nut-step-head-icon-wrap { height: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 8px); } .nut-steps-vertical .nut-step-head-text-wrap { height: calc(var(--nutui-steps-base-head-text-size, 12px) + 8px); } .nut-steps-vertical-icon .nut-step-head { width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px); min-width: calc(var(--nutui-steps-vertical-item-icon-size, 20px) + 1px); } .nut-steps-vertical-icon .nut-step-line { left: calc(var(--nutui-steps-vertical-item-icon-size, 20px) / 2); } .nut-steps-vertical-dot .nut-step-head { width: calc(var(--nutui-steps-base-head-dot-size, 6px) + 1px); } .nut-steps-vertical-dot .nut-step-line { left: calc(var(--nutui-steps-base-head-dot-size, 6px) / 2); } .nut-steps-vertical-text .nut-step-head { width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px); min-width: calc(var(--nutui-steps-base-head-text-size, 12px) + 1px); } .nut-steps-vertical-text .nut-step-line { left: calc(var(--nutui-steps-base-head-text-size, 12px) / 2); } .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon, .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text { background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffebf1)); } .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon, .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text .nut-icon { color: var(--nutui-steps-enhanced-finish-head-icon-color, var(--nutui-color-primary-stop-1, #ff475d)); } .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text { color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff475d)); } .nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot { background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ffadbe)); }