ant-design/style/components/steps.less

226 lines
5.3 KiB
Plaintext
Raw Normal View History

@import "../mixins/index";
@stepsPrefixClass: ~"@{css-prefix}steps";
2015-07-08 16:36:08 +08:00
@process-icon-color: @primary-color;
2015-07-08 15:53:51 +08:00
@process-title-color: #666;
@process-description-color: @process-title-color;
@process-tail-color: #bcbcbc;
@wait-icon-color: #bcbcbc;
@wait-title-color: #999;
@wait-description-color: @wait-title-color;
@wait-tail-color: @wait-icon-color;
@finish-icon-color: @process-icon-color;
@finish-title-color: @wait-title-color;
@finish-description-color: @finish-title-color;
@finish-tail-color: @process-icon-color;
2015-06-24 14:52:49 +08:00
2015-06-25 16:01:04 +08:00
.transition(@transition) {
transition: @transition;
2015-07-08 15:53:51 +08:00
-webkit-transition: @transition;
-moz-transition: @transition;
2015-06-25 16:01:04 +08:00
}
.@{stepsPrefixClass} {
font-size: 0;
2015-06-25 16:01:04 +08:00
width: 100%;
line-height: 1.5;
2015-06-24 14:52:49 +08:00
.@{stepsPrefixClass}-item {
2015-06-24 14:52:49 +08:00
position: relative;
display: inline-block;
2015-07-08 16:36:08 +08:00
vertical-align: top;
&.@{stepsPrefixClass}-status-wait {
.@{stepsPrefixClass}-head-inner {
2015-07-08 15:53:51 +08:00
border-color: @wait-icon-color;
2015-06-25 16:01:04 +08:00
background-color: #fff;
> .@{stepsPrefixClass}-icon {
2015-07-08 15:53:51 +08:00
color: @wait-icon-color;
2015-06-25 16:01:04 +08:00
}
}
2015-07-08 15:53:51 +08:00
.@{stepsPrefixClass}-title {
color: @wait-title-color;
}
.@{stepsPrefixClass}-description {
color: @wait-description-color;
}
.@{stepsPrefixClass}-tail > i {
background-color: @wait-tail-color;
}
}
&.@{stepsPrefixClass}-status-process {
.@{stepsPrefixClass}-head-inner {
2015-07-08 15:53:51 +08:00
border-color: @process-icon-color;
background-color: @process-icon-color;
> .@{stepsPrefixClass}-icon {
2015-06-25 16:01:04 +08:00
color: #fff;
}
}
2015-07-08 15:53:51 +08:00
.@{stepsPrefixClass}-title {
color: @process-title-color;
}
.@{stepsPrefixClass}-description {
color: @process-description-color;
}
.@{stepsPrefixClass}-tail > i {
background-color: @process-tail-color;
}
}
&.@{stepsPrefixClass}-status-finish {
.@{stepsPrefixClass}-head-inner {
2015-07-08 15:53:51 +08:00
border-color: @finish-icon-color;
2015-06-25 16:01:04 +08:00
background-color: #fff;
> .@{stepsPrefixClass}-icon {
2015-07-08 15:53:51 +08:00
color: @finish-icon-color;
}
}
.@{stepsPrefixClass}-tail > i {
2015-07-08 15:53:51 +08:00
background-color: @finish-tail-color;
}
.@{stepsPrefixClass}-title {
color: @finish-title-color;
}
.@{stepsPrefixClass}-description {
color: @finish-description-color;
}
2015-06-25 18:12:42 +08:00
}
&.@{stepsPrefixClass}-custom {
.@{stepsPrefixClass}-head-inner {
2015-06-25 18:12:42 +08:00
background: none;
border: 0;
2015-07-08 15:53:51 +08:00
width: auto;
height: auto;
2015-07-08 16:36:08 +08:00
> .@{stepsPrefixClass}-icon {
2015-07-09 18:17:15 +08:00
font-size: 20px;
top: 0;
2015-07-08 16:36:08 +08:00
}
2015-06-25 18:12:42 +08:00
}
&.@{stepsPrefixClass}-status-process {
2015-07-08 15:53:51 +08:00
.@{stepsPrefixClass}-head-inner > .@{stepsPrefixClass}-icon {
color: @process-icon-color;
2015-06-25 18:12:42 +08:00
}
}
}
}
.@{stepsPrefixClass}-head, .@{stepsPrefixClass}-main {
position: relative;
display: inline-block;
vertical-align: top;
2015-06-24 14:52:49 +08:00
}
.@{stepsPrefixClass}-head {
background: #fff;
}
.@{stepsPrefixClass}-head-inner {
display: block;
2015-07-08 16:36:08 +08:00
border:1px solid @wait-icon-color;
width: 26px;
height: 26px;
line-height: 26px;
text-align: center;
2015-07-08 16:36:08 +08:00
border-radius: 26px;
font-size: 14px;
2015-07-08 15:53:51 +08:00
margin-right: 8px;
2015-07-09 20:54:55 +08:00
.transition(background-color 0.3s ease);
.transition(border-color 0.3s ease);
2015-06-25 16:01:04 +08:00
> .@{stepsPrefixClass}-icon {
2015-06-25 18:12:42 +08:00
line-height: 1;
2015-07-09 20:51:05 +08:00
top: -1px;
2015-07-08 15:18:28 +08:00
color: @primary-color;
position: relative;
2015-07-09 18:17:15 +08:00
&.anticon {
font-size: 12px;
}
}
}
.@{stepsPrefixClass}-main {
2015-06-25 16:01:04 +08:00
margin-top: 3px;
2015-06-24 14:52:49 +08:00
}
.@{stepsPrefixClass}-title {
font-size: 14px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
background: #fff;
display: inline-block;
padding-right: 10px;
}
.@{stepsPrefixClass}-item-last {
.@{stepsPrefixClass}-title {
padding-right: 0;
}
}
.@{stepsPrefixClass}-description {
font-size: 12px;
color: #999;
}
.@{stepsPrefixClass}-tail {
position: absolute;
left: 0;
width: 100%;
2015-06-25 18:12:42 +08:00
top: 12px;
padding:0 10px;
> i {
display: inline-block;
2015-07-08 15:53:51 +08:00
background: @wait-tail-color;
height: 2px;
border-radius: 1px;
width: 100%;
2015-07-09 20:54:55 +08:00
.transition(background 0.3s ease);
}
}
&.@{stepsPrefixClass}-small {
.@{stepsPrefixClass}-head-inner {
2015-07-08 15:53:51 +08:00
border:1px solid @wait-icon-color;
2015-06-25 16:01:04 +08:00
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 18px;
font-size: 12px;
2015-06-25 16:01:04 +08:00
margin-right: 10px;
2015-07-09 18:17:15 +08:00
> .@{stepsPrefixClass}-icon.anticon {
font-size: 12px;
font-size: ~"9px \9"; // ie8-9
.scale(0.75);
}
2015-06-25 16:01:04 +08:00
}
.@{stepsPrefixClass}-main {
2015-06-25 16:01:04 +08:00
margin-top: 0;
}
.@{stepsPrefixClass}-title {
2015-06-25 16:01:04 +08:00
font-size: 12px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
}
.@{stepsPrefixClass}-description {
2015-06-25 16:01:04 +08:00
font-size: 10px;
color: #999;
}
.@{stepsPrefixClass}-tail {
2015-06-25 18:12:42 +08:00
top: 8px;
2015-06-25 16:01:04 +08:00
padding:0 8px;
> i {
height: 1px;
border-radius: 1px;
width: 100%;
}
}
}
&.@{stepsPrefixClass}-small .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner, .@{stepsPrefixClass}-item.@{stepsPrefixClass}-custom .@{stepsPrefixClass}-head-inner {
2015-06-25 16:01:04 +08:00
width: inherit;
height: inherit;
line-height: inherit;
border-radius: 0;
border: 0;
background: none;
}
2015-07-08 15:18:28 +08:00
}