|
1 | | -@wz-color-default: #E6E6E6; |
2 | | -@wz-color-current: #808080; |
3 | | -@wz-color-done: #339933; |
| 1 | +@wz-color-default: #E6E6E6; |
| 2 | +@wz-color-current: #808080; |
| 3 | +@wz-color-done: #339933; |
4 | 4 | @wz-color-optional: #38ef38; |
5 | | -@wz-color-editing: #FF0000; |
6 | | - |
7 | | -.steps-indicator { |
8 | | - padding: 10px 0 25px 0; |
9 | | - list-style: none; |
10 | | - |
11 | | - &:before { |
12 | | - background-color: @wz-color-default; |
13 | | - content: ''; |
14 | | - position: absolute; |
15 | | - height: 1px; |
16 | | - } |
17 | | - |
18 | | - &.steps-2:before { |
19 | | - left: ~'calc(100% / 2 / 2)'; |
20 | | - right: ~'calc(100% / 2 / 2)'; |
21 | | - } |
| 5 | +@wz-color-editing: #FF0000; |
| 6 | + |
| 7 | +:host { |
| 8 | + right: 0; |
| 9 | + bottom: 0; |
| 10 | + left: 0; |
| 11 | + margin: 0; |
| 12 | + width: 100%; |
| 13 | + height: auto; |
| 14 | + |
| 15 | + .steps-indicator { |
| 16 | + padding: 10px 0 25px 0; |
| 17 | + list-style: none; |
| 18 | + |
| 19 | + &:before { |
| 20 | + background-color: @wz-color-default; |
| 21 | + content: ''; |
| 22 | + position: absolute; |
| 23 | + height: 1px; |
| 24 | + } |
22 | 25 |
|
23 | | - &.steps-3:before { |
24 | | - left: ~'calc(100% / 3 / 2)'; |
25 | | - right: ~'calc(100% / 3 / 2)'; |
26 | | - } |
| 26 | + &.steps-2:before { |
| 27 | + left: ~'calc(100% / 2 / 2)'; |
| 28 | + right: ~'calc(100% / 2 / 2)'; |
| 29 | + } |
27 | 30 |
|
28 | | - &.steps-4:before { |
29 | | - left: ~'calc(100% / 4 / 2)'; |
30 | | - right: ~'calc(100% / 4 / 2)'; |
31 | | - } |
| 31 | + &.steps-3:before { |
| 32 | + left: ~'calc(100% / 3 / 2)'; |
| 33 | + right: ~'calc(100% / 3 / 2)'; |
| 34 | + } |
32 | 35 |
|
33 | | - &.steps-5:before { |
34 | | - left: ~'calc(100% / 5 / 2)'; |
35 | | - right: ~'calc(100% / 5 / 2)'; |
36 | | - } |
| 36 | + &.steps-4:before { |
| 37 | + left: ~'calc(100% / 4 / 2)'; |
| 38 | + right: ~'calc(100% / 4 / 2)'; |
| 39 | + } |
37 | 40 |
|
38 | | - &.steps-6:before { |
39 | | - left: ~'calc(100% / 6 / 2)'; |
40 | | - right: ~'calc(100% / 6 / 2)'; |
41 | | - } |
| 41 | + &.steps-5:before { |
| 42 | + left: ~'calc(100% / 5 / 2)'; |
| 43 | + right: ~'calc(100% / 5 / 2)'; |
| 44 | + } |
42 | 45 |
|
43 | | - &.steps-7:before { |
44 | | - left: ~'calc(100% / 7 / 2)'; |
45 | | - right: ~'calc(100% / 7 / 2)'; |
46 | | - } |
| 46 | + &.steps-6:before { |
| 47 | + left: ~'calc(100% / 6 / 2)'; |
| 48 | + right: ~'calc(100% / 6 / 2)'; |
| 49 | + } |
47 | 50 |
|
48 | | - &.steps-8:before { |
49 | | - left: ~'calc(100% / 8 / 2)'; |
50 | | - right: ~'calc(100% / 8 / 2)'; |
51 | | - } |
| 51 | + &.steps-7:before { |
| 52 | + left: ~'calc(100% / 7 / 2)'; |
| 53 | + right: ~'calc(100% / 7 / 2)'; |
| 54 | + } |
52 | 55 |
|
53 | | - &.steps-9:before { |
54 | | - left: ~'calc(100% / 9 / 2)'; |
55 | | - right: ~'calc(100% / 9 / 2)'; |
56 | | - } |
| 56 | + &.steps-8:before { |
| 57 | + left: ~'calc(100% / 8 / 2)'; |
| 58 | + right: ~'calc(100% / 8 / 2)'; |
| 59 | + } |
57 | 60 |
|
58 | | - &.steps-10:before { |
59 | | - left: ~'calc(100% / 10 / 2)'; |
60 | | - right: ~'calc(100% / 10 / 2)'; |
61 | | - } |
| 61 | + &.steps-9:before { |
| 62 | + left: ~'calc(100% / 9 / 2)'; |
| 63 | + right: ~'calc(100% / 9 / 2)'; |
| 64 | + } |
62 | 65 |
|
63 | | - /* --- http://www.paulirish.com/2012/box-sizing-border-box-ftw/ ---- */ |
64 | | - * { |
65 | | - -webkit-box-sizing: border-box; |
66 | | - -moz-box-sizing: border-box; |
67 | | - box-sizing: border-box; |
68 | | - } |
| 66 | + &.steps-10:before { |
| 67 | + left: ~'calc(100% / 10 / 2)'; |
| 68 | + right: ~'calc(100% / 10 / 2)'; |
| 69 | + } |
69 | 70 |
|
| 71 | + /* --- http://www.paulirish.com/2012/box-sizing-border-box-ftw/ ---- */ |
| 72 | + * { |
| 73 | + -webkit-box-sizing: border-box; |
| 74 | + -moz-box-sizing: border-box; |
| 75 | + box-sizing: border-box; |
| 76 | + } |
70 | 77 |
|
71 | | - li { |
72 | | - position: relative; |
73 | | - float: left; |
74 | | - margin: 0; |
75 | | - padding: 10px 0 0 0; |
76 | | - text-align: center; |
77 | | - line-height: 15px; |
78 | | - |
79 | | - a { |
80 | | - color: @wz-color-current; |
81 | | - text-decoration: none; |
82 | | - text-transform: uppercase; |
83 | | - font-weight: bold; |
84 | | - transition: 0.25s; |
85 | | - cursor: pointer; |
86 | | - |
87 | | - &:before { |
88 | | - position: absolute; |
89 | | - top: -7px; |
90 | | - left: ~'calc(50% - 7px)'; |
91 | | - width: 14px; |
92 | | - height: 14px; |
93 | | - border-radius: 100%; |
94 | | - background-color: @wz-color-default; |
95 | | - content: ''; |
| 78 | + li { |
| 79 | + position: relative; |
| 80 | + float: left; |
| 81 | + margin: 0; |
| 82 | + padding: 10px 0 0 0; |
| 83 | + text-align: center; |
| 84 | + line-height: 15px; |
| 85 | + |
| 86 | + a { |
| 87 | + color: @wz-color-current; |
| 88 | + text-decoration: none; |
| 89 | + text-transform: uppercase; |
| 90 | + font-weight: bold; |
96 | 91 | transition: 0.25s; |
97 | | - } |
98 | | - |
99 | | - &:hover { |
100 | | - color: darken(@wz-color-current, 20%); |
| 92 | + cursor: pointer; |
| 93 | + |
| 94 | + &:before { |
| 95 | + position: absolute; |
| 96 | + top: -7px; |
| 97 | + left: ~'calc(50% - 7px)'; |
| 98 | + width: 14px; |
| 99 | + height: 14px; |
| 100 | + border-radius: 100%; |
| 101 | + background-color: @wz-color-default; |
| 102 | + content: ''; |
| 103 | + transition: 0.25s; |
| 104 | + } |
| 105 | + |
| 106 | + &:hover { |
| 107 | + color: darken(@wz-color-current, 20%); |
| 108 | + } |
101 | 109 | } |
102 | 110 | } |
103 | | - } |
104 | 111 |
|
105 | | - &.steps-2 li { |
106 | | - width: ~'calc(100% / 2)'; |
107 | | - } |
| 112 | + &.steps-2 li { |
| 113 | + width: ~'calc(100% / 2)'; |
| 114 | + } |
108 | 115 |
|
109 | | - &.steps-3 li { |
110 | | - width: ~'calc(100% / 3)'; |
111 | | - } |
| 116 | + &.steps-3 li { |
| 117 | + width: ~'calc(100% / 3)'; |
| 118 | + } |
112 | 119 |
|
113 | | - &.steps-4 li { |
114 | | - width: ~'calc(100% / 4)'; |
115 | | - } |
| 120 | + &.steps-4 li { |
| 121 | + width: ~'calc(100% / 4)'; |
| 122 | + } |
116 | 123 |
|
117 | | - &.steps-5 li { |
118 | | - width: ~'calc(100% / 5)'; |
119 | | - } |
| 124 | + &.steps-5 li { |
| 125 | + width: ~'calc(100% / 5)'; |
| 126 | + } |
120 | 127 |
|
121 | | - &.steps-6 li { |
122 | | - width: ~'calc(100% / 6)'; |
123 | | - } |
| 128 | + &.steps-6 li { |
| 129 | + width: ~'calc(100% / 6)'; |
| 130 | + } |
124 | 131 |
|
125 | | - &.steps-7 li { |
126 | | - width: ~'calc(100% / 7)'; |
127 | | - } |
| 132 | + &.steps-7 li { |
| 133 | + width: ~'calc(100% / 7)'; |
| 134 | + } |
128 | 135 |
|
129 | | - &.steps-8 li { |
130 | | - width: ~'calc(100% / 8)'; |
131 | | - } |
| 136 | + &.steps-8 li { |
| 137 | + width: ~'calc(100% / 8)'; |
| 138 | + } |
132 | 139 |
|
133 | | - &.steps-9 li { |
134 | | - width: ~'calc(100% / 9)'; |
135 | | - } |
| 140 | + &.steps-9 li { |
| 141 | + width: ~'calc(100% / 9)'; |
| 142 | + } |
136 | 143 |
|
137 | | - &.steps-10 li { |
138 | | - width: ~'calc(100% / 10)'; |
139 | | - } |
| 144 | + &.steps-10 li { |
| 145 | + width: ~'calc(100% / 10)'; |
| 146 | + } |
140 | 147 |
|
141 | | - &.steps-11 li { |
142 | | - width: ~'calc(100% / 11)'; |
143 | | - } |
| 148 | + &.steps-11 li { |
| 149 | + width: ~'calc(100% / 11)'; |
| 150 | + } |
144 | 151 |
|
145 | | - li.default { |
146 | | - pointer-events: none; |
| 152 | + li.default { |
| 153 | + pointer-events: none; |
147 | 154 |
|
148 | | - a:hover { |
149 | | - color: @wz-color-current; |
| 155 | + a:hover { |
| 156 | + color: @wz-color-current; |
| 157 | + } |
150 | 158 | } |
151 | | - } |
152 | 159 |
|
153 | | - li.current, |
154 | | - li.editing { |
155 | | - pointer-events: none; |
156 | | - } |
| 160 | + li.current, |
| 161 | + li.editing { |
| 162 | + pointer-events: none; |
| 163 | + } |
157 | 164 |
|
158 | | - li.current a:before { |
159 | | - background-color: @wz-color-current; |
160 | | - } |
| 165 | + li.current a:before { |
| 166 | + background-color: @wz-color-current; |
| 167 | + } |
161 | 168 |
|
162 | | - li.done a:before { |
163 | | - background-color: @wz-color-done; |
164 | | - } |
| 169 | + li.done a:before { |
| 170 | + background-color: @wz-color-done; |
| 171 | + } |
165 | 172 |
|
166 | | - li.optional a:before { |
167 | | - background-color: @wz-color-optional; |
168 | | - } |
| 173 | + li.optional a:before { |
| 174 | + background-color: @wz-color-optional; |
| 175 | + } |
169 | 176 |
|
170 | | - li.editing a:before { |
171 | | - background-color: @wz-color-editing; |
| 177 | + li.editing a:before { |
| 178 | + background-color: @wz-color-editing; |
| 179 | + } |
172 | 180 | } |
173 | 181 | } |
0 commit comments