hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 .enable_timeline() when(@enable-timeline = true) {
A 2
3
4 .timeline-container {
5  position:relative;
6  padding-top:4px;
7  margin-bottom:32px;
8
9  &:last-child {
10     margin-bottom:0;
11  } 
12
13  &:before {
14     /* the vertical line running through icons */
15     content:"";
16     display:block;
17     position:absolute;
18     left:28px;
19     top:0;
20     bottom:0;
21     border:1px solid #E2E3E7;
22     background-color:#E7EAEF;
23     width:4px;
24     border-width:0 1px;
25  }
26  &:first-child:before {
27     border-top-width:1px;
28  }
29  &:last-child:before {
30     border-bottom-width: 1px;
31  }
32 }
33
34
35 .timeline-item {
36   position:relative;
37   margin-bottom:8px;
38
39  .widget-box {
40     background-color:#F2F6F9;
41     color:#595C66;
42  }
43
44  .transparent.widget-box {
45     border-left:3px solid #DAE1E5;
46  }
47  .transparent {
48     .widget-header {
49         background-color: #ECF1F4;
50         border-bottom-width: 0;
51
52         > .widget-title {
53             margin-left: 8px;
54         }
55     }
56  }
57
58
59  &:nth-child(even) .widget-box {
60     background-color:#F3F3F3;
61     color:#616161;
62
63     &.transparent {
64         border-left-color:#DBDBDB !important;
65         .widget-header {
66             background-color:#EEE !important;
67         }
68     }
69  }
70
71 }
72
73
74
75
76 .timeline-item {
77     .widget-box    {
78         margin: 0;
79         position: relative;
80         max-width: none;
81         //border-bottom-width: 0;
82         margin-left: 60px;
83     }
84     .widget-main {
85         margin: 0;
86         position: relative;
87         max-width: none;
88         border-bottom-width: 0;
89     }
90     .widget-body {
91         background-color: transparent;
92     }
93
94     .widget-toolbox {
95         padding: 4px 8px 0 !important;
96         background-color: transparent !important;
97         border-width: 0 !important;
98         margin: 0 0px !important;
99     }
100 }
101
102
103
104
105
106
107
108 .timeline-info {
109     float:left;
110     width:60px;
111     text-align:center;
112     position:relative;
113     
114     img {
115         border-radius:100%;
116         max-width:42px;
117     }
118     .label , .badge {
119         font-size: @font-size-timeline-badge;
120     }
121 }
122
123
124
125 .timeline-container:not(.timeline-style2) .timeline-indicator {
126     opacity: 1;
127     border-radius: 100%;
128     display: inline-block;
129     font-size: @font-size-timeline-icon;
130     height: 36px;
131     line-height: 30px;    
132     width: 36px;
133     text-align: center;
134     text-shadow: none !important;
135     padding:0;
136     cursor:default;
137
138     border:3px solid #FFF !important;
139
140 }
141
142
143 .timeline-label {
144     display:block;
145     clear:both;
146     margin:0 0 18px;
147     margin-left:34px;
148 }
149
150 .timeline-item img {
151     border: 1px solid #AAA;
152     padding: 2px;
153     background-color: #FFF;
154 }
155
156
157
158
159
160
161
162
163 .enable_timeline_style_2() when (@enable-timeline-style-2 = true) {
164 .timeline-style2 {
165
166  &:before {
167     display:none;
168  }
169
170  .timeline-item {
171
172     padding-bottom:22px;
173     margin-bottom:0;
174     &:last-child {
175         padding-bottom:0;
176     }
177
178     
179    &:before {
180         content:"";
181         display:block;
182         position:absolute;
183         left:90px; top:5px;    bottom:-5px;
184
185         border-width:0;
186
187         background-color:#DDD;
188         width:2px;
189         max-width:2px;
190    }
191   
192    &:last-child:before {
193         display:none;
194    }
195    &:first-child:before {
196         display:block;
197    }
198
199  }
200
201 }
202
203
204
205
206
207
208 .timeline-style2 {
209     .timeline-item .transparent .widget-header {
210         background-color:transparent !important;
211     }
212     .timeline-item .transparent.widget-box {
213         background-color:transparent !important;
214         border-left:none !important;
215     }
216
217     .timeline-info {
218         width:100px;
219     }
220
221     .timeline-indicator {
222         font-size: 0;
223         height: 12px;
224         line-height: 12px;
225         width: 12px;
226         
227         border-width: 1px !important;
228         background-color: #FFFFFF !important;
229         
230         position:absolute;
231         left:85px; top:3px;
232         
233         opacity:1;
234         border-radius: 100%;
235         display: inline-block;
236         padding:0;
237     }
238
239     .timeline-date {
240         display:inline-block;
241         width:72px;
242         text-align:right;
243         margin-right:25px;
244         color:#777;
245     }
246
247     .timeline-item .widget-box {
248         margin-left:112px;
249     }
250
251     .timeline-label {
252         width: 75px;
253         text-align: center;
254         margin-left: 0;
255         margin-bottom: 10px;
256         text-align: right;
257         color: #666;
258         font-size: @font-size-timeline-style2-label;
259     }
260
261 }
262
263 }
264 .enable_timeline_style_2();
265
266
267
268 .timeline-time {
269     text-align:center;
270     position:static;
271 }
272
273
274
275
276 }
277 .enable_timeline();