1
|
.al_timeline {
|
2
|
position: relative;
|
3
|
padding: 24px 0 32px;
|
4
|
&:after {
|
5
|
position: absolute;
|
6
|
top: 0;
|
7
|
bottom: 0;
|
8
|
margin-left: -2px;
|
9
|
left: 50%;
|
10
|
content: '';
|
11
|
width: 4px;
|
12
|
background: rgba(255,255,255,.5);
|
13
|
display: block;
|
14
|
}
|
15
|
&_block {
|
16
|
.clearfix;
|
17
|
+ * {
|
18
|
margin-top: 48px;
|
19
|
}
|
20
|
&:nth-child(even) {
|
21
|
.al_timeline {
|
22
|
&_content {
|
23
|
float: right;
|
24
|
&:after {
|
25
|
border-left-color: transparent;
|
26
|
border-right-color: @white;
|
27
|
right: auto;
|
28
|
left: -20px;
|
29
|
}
|
30
|
}
|
31
|
}
|
32
|
}
|
33
|
}
|
34
|
&_content {
|
35
|
box-sizing: border-box;
|
36
|
background: @white;
|
37
|
width: 44%;
|
38
|
padding: 16px;
|
39
|
.boxShadowHelper(2);
|
40
|
position: relative;
|
41
|
border-radius: 4px;
|
42
|
&:after {
|
43
|
position: absolute;
|
44
|
top: 24px;
|
45
|
right: -20px;
|
46
|
content: '';
|
47
|
display: block;
|
48
|
border: 10px solid transparent;
|
49
|
border-left-color: @white;
|
50
|
}
|
51
|
}
|
52
|
&_image {
|
53
|
position: absolute;
|
54
|
left: 50%;
|
55
|
width: 64px;
|
56
|
height: 64px;
|
57
|
margin-left: -32px;
|
58
|
background: @white;
|
59
|
border-radius: 50%;
|
60
|
text-align: center;
|
61
|
z-index: 10;
|
62
|
.boxShadowHelper(2);
|
63
|
> i {
|
64
|
font-size: 32px;
|
65
|
line-height: 64px;
|
66
|
}
|
67
|
}
|
68
|
}
|
69
|
|
70
|
@media @screen_large_max {
|
71
|
.al_timeline {
|
72
|
&:after {
|
73
|
margin-left: 0;
|
74
|
left: 30px;
|
75
|
}
|
76
|
&_block {
|
77
|
padding-left: 96px;
|
78
|
}
|
79
|
&_content {
|
80
|
width: 100%;
|
81
|
&:after {
|
82
|
border-left-color: transparent;
|
83
|
border-right-color: @white;
|
84
|
right: auto;
|
85
|
left: -20px;
|
86
|
}
|
87
|
}
|
88
|
&_image {
|
89
|
left: 0;
|
90
|
margin-left: 0;
|
91
|
}
|
92
|
}
|
93
|
}
|
94
|
|
95
|
@media @screen_medium_max {
|
96
|
.al_timeline {
|
97
|
&:after {
|
98
|
margin-left: 0;
|
99
|
left: 22px;
|
100
|
}
|
101
|
&_block {
|
102
|
padding-left: 72px;
|
103
|
}
|
104
|
&_content {
|
105
|
width: 100%;
|
106
|
&:after {
|
107
|
border-left-color: transparent;
|
108
|
border-right-color: @white;
|
109
|
right: auto;
|
110
|
left: -20px;
|
111
|
top: 14px;
|
112
|
}
|
113
|
}
|
114
|
&_image {
|
115
|
width: 48px;
|
116
|
height: 48px;
|
117
|
left: 0;
|
118
|
margin-left: 0;
|
119
|
> i {
|
120
|
line-height: 48px;
|
121
|
font-size: 24px;
|
122
|
}
|
123
|
}
|
124
|
}
|
125
|
}
|