forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwizard2.less
More file actions
126 lines (109 loc) · 2.01 KB
/
wizard2.less
File metadata and controls
126 lines (109 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@import (once) "utils";
.wizard2 {
counter-reset: div;
position: relative;
width: 100%;
.clear-float;
.step {
width: auto;
//height: auto;
display: block;
float: left;
position: relative;
z-index: 1;
padding: 0 0 3rem;
}
.step:before {
content: counter(div);
counter-increment: div;
position: absolute;
font-size: .8rem;
bottom: 20px;
width: 24px;
text-align: center;
@media screen and (max-width: 320px) {
width: 16px;
}
}
.step {
&.active {
border: 0;
//min-width: 200px;
&:before {
visibility: hidden;
}
}
&.prev {
border-left: 24px solid @grayLighter;
border-right: 1px solid darken(@grayLighter, 3%);
width: 0 ;
&:before {
left: 0 ;
margin-left: -24px;
color: @dark;
}
}
&.next {
border-left: 1px solid darken(@grayLighter, 3%);
border-right: 24px solid @cyan;
width: 0;
&:before {
left: 100%;
color: @white;
}
}
&.next + .next{
border-color: darken(@cyan, 5%);
}
&.next + .next + .next{
border-color: darken(@cyan, 10%);
}
&.next + .next + .next + .next{
border-color: darken(@cyan, 15%);
}
&.next + .next + .next + .next + .next{
border-color: darken(@cyan, 20%);
}
&.next + .next + .next + .next + .next + .next{
border-color: darken(@cyan, 30%);
}
&.next + .next + .next + .next + .next + .next + .next{
border-color: darken(@cyan, 35%);
}
&.next + .next + .next + .next + .next + .next + .next + .next{
border-color: darken(@cyan, 40%);
}
&.next + .next + .next + .next + .next + .next + .next + .next + .next{
border-color: darken(@cyan, 45%);
}
}
.step-content {
//height: 100%;
width: auto;
overflow: hidden;
padding: .625rem;
}
.step.prev, .step.next {
.step-content {
width: 0 ;
padding: 0 ;
}
}
}
.wizard2 {
.action-bar {
padding: 0 .625rem;
position: absolute;
bottom: 10px;
text-align: right;
z-index: 2;
.clear-float;
.button {
margin: 0 .125rem;
opacity: .6;
&:hover {
opacity: 1;
}
}
}
}