-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsection-indicator.less
More file actions
123 lines (102 loc) · 2.31 KB
/
section-indicator.less
File metadata and controls
123 lines (102 loc) · 2.31 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
@import (reference) 'mixins.less';
.section-indicator {
@_color_indicator: #444;
@_color_text: @_color_indicator;
@_font: 'Open Sans', sans-serif;
@_inner_circle_size: 12px;
@_inner_circle_border_size: 1px;
@_outer_circle_size: 26px;
@_outer_circle_border_size: 1px;
@_main_padding_gap: 19.5px;
font-family: @_font;
text-align: center;
padding: 15px 0;
overflow: hidden;
width: 100%;
max-width: @_outer_circle_size + (@_main_padding_gap * 2);
&, & * {
box-sizing: border-box;
}
ul {
margin: 0;
margin-bottom: 30px;
padding: 0;
li {
list-style: none;
&:not(:last-child) {
margin-bottom: 24px;
}
a {
display: inline-block;
.scale(1);
.transition(.4s);
&:hover {
.scale(1.35);
.transition(.4s);
}
}
span {
position: relative;
display: block;
background-color: transparent;
border: solid @_inner_circle_border_size @_color_indicator;
width: @_inner_circle_size;
height: @_inner_circle_size;
.rounded(100%);
.transition(.5s);
i {
position: absolute;
display: block;
width: @_outer_circle_size;
height: @_outer_circle_size;
border: solid @_outer_circle_border_size @_color_indicator;
/*top: calc(50% - (@_outer_circle_size / 2));
left: calc(50% - (@_outer_circle_size / 2));*/
top: -8px;
left: -8px;
opacity: 0;
.scale(.7);
.rounded(100%);
.transition(.5s);
}
}
&.active {
a {
pointer-events: none;
}
span {
background-color: @_color_indicator;
.transition();
i {
opacity: 1;
.scale(1);
.transition();
}
}
}
}
}
.numbering {
color: @_color_text;
font-size: 20px;
&:before {
content: '';
width: 1px;
height: 60px;
background-color: @_color_text;
margin: 0 auto;
margin-bottom: 30px;
display: block;
}
span {
&.current {
font-weight: 400;
color: darken(@_color_text, 40%);
}
&.max {
font-size: 75%;
opacity: .6;
}
}
}
}