UNPKG

causeway-standard-theme

Version:

212 lines (208 loc) 4.34 kB
//Colors @wz-desc-bg-color: @black070; @wz-base-bg-color: @black030; @wz-step-bg-color: @black010; @wz-text-color: @black070; @wz-current-bg-color: @enterprise-blue; .wizard { background: @wz-base-bg-color; padding: 0 20px 0 0; margin-bottom: 20px; height: 30px; overflow: hidden; &:after { content: ""; height: 0; width: 0; display: block; clear: both; } li { display: block; float: left; height: 30px; padding-right: 10px; color: @wz-text-color; background: @wz-step-bg-color; position: relative; &:after { content: ""; display: block; width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 16px; border-color: transparent transparent transparent @wz-step-bg-color; position: absolute; z-index: 4; top: 0; right: -16px; } &:before { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 15px 0 15px 16px; border-color: transparent transparent transparent @white; position: absolute; z-index: 3; top: 0; right: -17px; } &:last-child{ // padding-right: 20px; } &:last-child, &:first-child { &:after { border: none; } &:before { border: none; } } &.current { background: @wz-current-bg-color; &:after { border-color: transparent transparent transparent @wz-current-bg-color; } a, span { color: @white; } } &.completed { background: @wz-base-bg-color; &:after { border-color: transparent transparent transparent @wz-base-bg-color; } } a { display: block; color: inherit; line-height: 30px; font-weight: bold; height: 30px; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; &:hover { text-decoration: none; } &:after { content: ''; display: block; width: 2px; height: 30px; background: @white; position: absolute; right: -2px; top: 0; z-index: 2; } span { display: inline-block; vertical-align: middle; padding: 0 15px; .font-size(20); font-weight: inherit; line-height: 30px; color: inherit; } } } .wizard-description { background: @wz-desc-bg-color; font-weight: bold; min-width: 50px; color: @white; line-height: 30px; text-align: center; border-right: 2px solid @white; padding: 0 12px; &:after { border: none; } &:before { border: none; } + li ~ li { padding-left: 16px; } } } @media @tablet { .wizard { height: auto; background-color: transparent; color: @black080; padding: 0 14px 0 0; li { float: none; margin: 8px 0; height: 34px; line-height: 34px; background-color: @black030; &:before { content: ''; display: none; } &:after { border-width: 17px 0 17px 14px; right: -14px; border-color: transparent transparent transparent @black030; } a { height: 34px; line-height: 34px; .font-size(16); &:after { content: ''; display: none; } span { padding: 0 10px; } } &:last-child { margin-right: 18px; &:after { content: ''; display: block; width: 28px; height: 100%; margin-right: -18px; background-color: @black030; } } &.completed { } } .wizard-description { text-align: left; background-color: transparent; color: inherit; padding: 0; margin: 0 0 -8px 0; + li { ~ li { padding-left: 0; } } } .current { position: relative; padding-right: 45px; .step-counter { position: absolute; height: 100%; right: 10px; top: 0; .font-size(16); font-weight: bold; line-height: 34px; } } } }