UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

388 lines (387 loc) • 9.74 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable declaration-bang-space-before */ /* stylelint-disable declaration-bang-space-before */ .ant-steps { font-size: 0; width: 100%; line-height: 1.5; display: -webkit-box; display: -ms-flexbox; display: flex; } .ant-steps, .ant-steps * { box-sizing: border-box; } .ant-steps-item { position: relative; display: inline-block; vertical-align: top; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; overflow: hidden; } .ant-steps-item:last-child { -webkit-box-flex: 0; -ms-flex: none; flex: none; } .ant-steps-item:last-child .ant-steps-item-tail, .ant-steps-item:last-child .ant-steps-item-title:after { display: none; } .ant-steps-item-icon, .ant-steps-item-content { display: inline-block; vertical-align: top; } .ant-steps-item-icon { border: 1px solid rgba(0, 0, 0, 0.25); width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 26px; font-size: 14px; margin-right: 8px; transition: background-color 0.3s, border-color 0.3s; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; } .ant-steps-item-icon > .ant-steps-icon { line-height: 1; top: -1px; color: #108ee9; position: relative; } .ant-steps-item-icon > .ant-steps-icon.rcicon { font-size: 12px; position: relative; top: -2px; } .ant-steps-item-tail { position: absolute; left: 0; width: 100%; top: 12px; padding: 0 10px; } .ant-steps-item-tail:after { content: ''; display: inline-block; background: #e9e9e9; height: 1px; border-radius: 1px; width: 100%; transition: background .3s; } .ant-steps-item-content { margin-top: 3px; } .ant-steps-item-title { font-size: 14px; margin-bottom: 4px; color: #666; font-weight: bold; display: inline-block; padding-right: 10px; position: relative; } .ant-steps-item-title:after { content: ''; height: 1px; width: 9999px; background: #e9e9e9; display: block; position: absolute; top: 0.66em; left: 100%; } .ant-steps-item-description { font-size: 12px; color: rgba(0, 0, 0, 0.43); } .ant-steps-item-wait .ant-steps-item-icon { border-color: rgba(0, 0, 0, 0.25); background-color: #fff; } .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon { color: rgba(0, 0, 0, 0.25); } .ant-steps-item-wait .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { background: rgba(0, 0, 0, 0.25); } .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.43); } .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-title:after { background-color: #e9e9e9; } .ant-steps-item-wait > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.43); } .ant-steps-item-wait > .ant-steps-item-tail:after { background-color: #e9e9e9; } .ant-steps-item-process .ant-steps-item-icon { border-color: #108ee9; background-color: #fff; } .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #108ee9; } .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { background: #108ee9; } .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.65); } .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-title:after { background-color: #e9e9e9; } .ant-steps-item-process > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.65); } .ant-steps-item-process > .ant-steps-item-tail:after { background-color: #e9e9e9; } .ant-steps-item-process .ant-steps-item-icon { background: #108ee9; } .ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #fff; } .ant-steps-item-finish .ant-steps-item-icon { border-color: #108ee9; background-color: #fff; } .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon { color: #108ee9; } .ant-steps-item-finish .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { background: #108ee9; } .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title { color: rgba(0, 0, 0, 0.43); } .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-title:after { background-color: #108ee9; } .ant-steps-item-finish > .ant-steps-item-content > .ant-steps-item-description { color: rgba(0, 0, 0, 0.43); } .ant-steps-item-finish > .ant-steps-item-tail:after { background-color: #108ee9; } .ant-steps-item-error .ant-steps-item-icon { border-color: #f04134; background-color: #fff; } .ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon { color: #f04134; } .ant-steps-item-error .ant-steps-item-icon > .ant-steps-icon .ant-steps-icon-dot { background: #f04134; } .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title { color: #f04134; } .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-title:after { background-color: #e9e9e9; } .ant-steps-item-error > .ant-steps-item-content > .ant-steps-item-description { color: #f04134; } .ant-steps-item-error > .ant-steps-item-tail:after { background-color: #e9e9e9; } .ant-steps-item.ant-steps-next-error .ant-steps-item-title:after { background: #f04134; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item { margin-right: 10px; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item:last-child { margin-right: 0; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-tail { display: none; } .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item-description { max-width: 120px; } .ant-steps-item-custom .ant-steps-item-icon { background: none; border: 0; width: auto; height: auto; } .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { font-size: 26px; top: 1px; width: 26px; height: 26px; } .ant-steps-item-custom.ant-steps-item-process .ant-steps-item-icon > .ant-steps-icon { color: #108ee9; } .ant-steps-small .ant-steps-item-icon { width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 18px; font-size: 12px; margin-right: 10px; } .ant-steps-small .ant-steps-item-icon > .ant-steps-icon { font-size: 12px; font-size: 9px \9; -webkit-transform: scale(0.75); -ms-transform: scale(0.75); transform: scale(0.75); top: -1px; } .ant-steps-small .ant-steps-item-content { margin-top: 0; } .ant-steps-small .ant-steps-item-title { font-size: 12px; margin-bottom: 4px; color: #666; font-weight: bold; } .ant-steps-small .ant-steps-item-description { font-size: 12px; color: rgba(0, 0, 0, 0.43); } .ant-steps-small .ant-steps-item-tail { top: 8px; padding: 0 8px; } .ant-steps-small .ant-steps-item-tail:after { height: 1px; border-radius: 1px; width: 100%; } .ant-steps-small .ant-steps-item-custom .ant-steps-item-icon { width: inherit; height: inherit; line-height: inherit; border-radius: 0; border: 0; background: none; } .ant-steps-small .ant-steps-item-custom .ant-steps-item-icon > .ant-steps-icon { font-size: 26px; top: -2.5px; -webkit-transform: none; -ms-transform: none; transform: none; } .ant-steps-vertical { display: block; } .ant-steps-vertical .ant-steps-item { display: block; overflow: visible; } .ant-steps-vertical .ant-steps-item-icon { float: left; } .ant-steps-vertical .ant-steps-item-icon-inner { margin-right: 16px; } .ant-steps-vertical .ant-steps-item-content { min-height: 48px; overflow: hidden; display: block; } .ant-steps-vertical .ant-steps-item-title { line-height: 26px; } .ant-steps-vertical .ant-steps-item-description { padding-bottom: 12px; } .ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail { position: absolute; left: 13px; top: 0; height: 100%; width: 1px; padding: 30px 0 4px; } .ant-steps-vertical > .ant-steps-item > .ant-steps-item-tail:after { height: 100%; width: 1px; } .ant-steps-vertical > .ant-steps-item > .ant-steps-item-content > .ant-steps-item-title:after { display: none; } .ant-steps-vertical.ant-steps-small .ant-steps-item-tail { position: absolute; left: 9px; top: 0; padding: 22px 0 4px; } .ant-steps-vertical.ant-steps-small .ant-steps-item-title { line-height: 18px; } .ant-steps-label-vertical .ant-steps-item { overflow: visible; } .ant-steps-label-vertical .ant-steps-item-tail { padding: 0 24px; margin-left: 48px; } .ant-steps-label-vertical .ant-steps-item-content { display: block; text-align: center; margin-top: 8px; width: 120px; } .ant-steps-label-vertical .ant-steps-item-icon { display: inline-block; margin-left: 36px; } .ant-steps-label-vertical .ant-steps-item-title { padding-right: 0; } .ant-steps-label-vertical .ant-steps-item-title:after { display: none; } .ant-steps-label-vertical .ant-steps-item-description { text-align: left; } .ant-steps-dot .ant-steps-item-tail { width: 100%; top: 1px; margin: 0 0 0 60px; padding: 0; } .ant-steps-dot .ant-steps-item-tail:after { height: 3px; } .ant-steps-dot .ant-steps-item-icon { padding-right: 0; width: 5px; height: 5px; line-height: 5px; border: 0; margin-left: 58px; } .ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot { float: left; width: 100%; height: 100%; border-radius: 2.5px; } .ant-steps-dot .ant-steps-item-process .ant-steps-dot .ant-steps-item-icon { top: -1px; width: 7px; height: 7px; line-height: 7px; } .ant-steps-dot .ant-steps-item-process .ant-steps-dot .ant-steps-item-icon .ant-steps-icon-dot { border-radius: 3.5px; }