Development #23533 » _circle-steps.scss
1 |
div#steps { |
---|---|
2 |
|
3 |
padding: 0 1em; |
4 |
|
5 |
ol li { |
6 |
@include flexbox(); |
7 |
@include flex-direction(column); |
8 |
|
9 |
margin: 25px 0; |
10 |
padding: 0.5ex; |
11 |
position: relative; |
12 |
border: 0; |
13 |
|
14 |
span.marker { |
15 |
@include justify-content(center); |
16 |
display: inline-flex; |
17 |
margin: 0 auto; |
18 |
align-items: center; |
19 |
width: 5vw; |
20 |
height: 5vw; |
21 |
color: gray; |
22 |
position: relative; |
23 |
border: 1px solid gray; |
24 |
border-radius: 50%; |
25 |
background: transparent; |
26 |
font-size: calc(12px + 1.2vw); |
27 |
font-weight: bold; |
28 |
text-align: center; |
29 |
vertical-align: middle; |
30 |
max-width: 60px; |
31 |
max-height: 60px; |
32 |
|
33 |
&::before { |
34 |
display: block; |
35 |
content: ' '; |
36 |
border-radius: 50%; |
37 |
position: absolute; |
38 |
background: $button-background; |
39 |
z-index: -1; |
40 |
padding: 6px; |
41 |
}
|
42 |
}
|
43 |
|
44 |
span.label { |
45 |
display: table-cell; |
46 |
margin: 0 -1em; |
47 |
text-align: center; |
48 |
vertical-align: middle; |
49 |
}
|
50 |
|
51 |
&.current { |
52 |
background: transparent; |
53 |
font-weight: bold; |
54 |
|
55 |
span.label { |
56 |
color: $title-color; |
57 |
}
|
58 |
|
59 |
span.marker { |
60 |
color: white; |
61 |
border-color: $primary-color; |
62 |
background: $primary-color; |
63 |
}
|
64 |
}
|
65 |
}
|
66 |
}
|
67 |
@media screen and (max-width: $mobile-limit) { |
68 |
div#gauche div#steps { |
69 |
|
70 |
@include order(2); |
71 |
padding: 0; |
72 |
|
73 |
ol { |
74 |
@include flexbox(); |
75 |
@include flex-direction(row); |
76 |
@include vendor-prefix(flex-flow, nowrap); |
77 |
@include justify-content(center); |
78 |
@include vendor-prefix(align-items, center); |
79 |
|
80 |
li { |
81 |
padding: 0 0.6em 1ex 0; |
82 |
|
83 |
span.marker { |
84 |
border-radius: 50%; |
85 |
padding: 0.3em; |
86 |
font-weight: normal; |
87 |
}
|
88 |
|
89 |
span.label { |
90 |
display: none; |
91 |
}
|
92 |
}
|
93 |
}
|
94 |
}
|
95 |
}
|