UNPKG

2.59 kBtext/lessView Raw
1@import (reference) './imports/global';
2
3/* Layout */
4.aui-progress-tracker {
5 display: table;
6 font-size: 12px;
7 margin: 10px 0 0;
8 padding: 0;
9 table-layout: fixed;
10 word-wrap: break-word; /* doesn't work in IE */
11}
12.aui-progress-tracker:first-child {
13 margin-top: 0;
14}
15.aui-progress-tracker-step {
16 box-sizing: border-box;
17 display: table-cell;
18 padding: 0 10px;
19 max-width: 140px;
20 min-width: 80px;
21 text-align: center;
22}
23
24/* Progress Bar */
25span, a {
26 .aui-progress-tracker-step > & {
27 #aui.typography.h400();
28 font-weight: @aui-font-weight-normal;
29 color: @aui-progress-tracker-visited-step-text-color;
30 display: block;
31 outline: none;
32 padding-top: 25px;
33 position: relative;
34
35 &:before {
36 background: @aui-progress-tracker-current-step-color;
37 border-radius: 100%;
38 content: "";
39 height: 8px;
40 left: 50%;
41 margin-left: -5px;
42 position: absolute;
43 top: 4px;
44 width: 8px;
45 }
46 }
47 .aui-progress-tracker-step + .aui-progress-tracker-step > &:after {
48 background: @aui-progress-tracker-current-step-color;
49 box-shadow: -5px 0 0 -2px @aui-progress-tracker-current-step-color, 5px 0 0 -2px @aui-progress-tracker-current-step-color;
50 content: "";
51 height: 8px;
52 left: -50%;
53 margin-left: -20px; /* touches right edge of previous dot */
54 margin-right: 1px; /* touches left edge of this dot */
55 position: absolute;
56 right: 50%;
57 top: 4px;
58 }
59 .aui-progress-tracker-step-current>& {
60 color: @aui-progress-tracker-current-step-text-color;
61 font-weight: @aui-font-weight-semibold;
62 }
63 .aui-progress-tracker-step-current ~ .aui-progress-tracker-step>& {
64 color: @aui-progress-tracker-step-text-color;
65 font-weight: @aui-font-weight-normal;
66
67 &:hover {
68 color: @aui-progress-tracker-step-text-color;
69 }
70
71 &:before {
72 background-color: @aui-progress-tracker-step-color;
73 }
74
75 &:after {
76 background-color: transparent;
77 border: none;
78 box-shadow: none;
79 }
80 }
81}
82.aui-progress-tracker-step > a {
83 &:hover {
84 color: @aui-progress-tracker-visited-step-hover-text-color;
85 }
86
87 &:active {
88 color: @aui-progress-tracker-visited-step-active-text-color;
89 }
90}
91
92/* Interaction wih page layout */
93.aui-page-header-actions .aui-progress-tracker {
94 float: right;
95}