Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/***
2
Horizontal Timeline
3
***/
4
 
5
/* PLUGIN CSS */
6
 
7
.cd-horizontal-timeline {
8
  opacity: 0;
9
  -webkit-transition: opacity 0.2s;
10
  -moz-transition: opacity 0.2s;
11
  transition: opacity 0.2s;
12
}
13
.cd-horizontal-timeline::before {
14
  /* never visible - this is used in jQuery to check the current MQ */
15
  content: 'mobile';
16
  display: none;
17
}
18
.cd-horizontal-timeline.loaded {
19
  /* show the timeline after events position has been set (using JavaScript) */
20
  opacity: 1;
21
}
22
.cd-horizontal-timeline .timeline {
23
  position: relative;
24
  height: 100px;
25
  width: 90%;
26
  max-width: 800px;
27
  margin: 0 auto;
28
}
29
.cd-horizontal-timeline .events-wrapper {
30
  position: relative;
31
  height: 100%;
32
  margin: 0 40px;
33
  overflow: hidden;
34
}
35
.cd-horizontal-timeline .events-wrapper::after, .cd-horizontal-timeline .events-wrapper::before {
36
  /* these are used to create a shadow effect at the sides of the timeline */
37
  content: '';
38
  position: absolute;
39
  z-index: 2;
40
  top: 0;
41
  height: 100%;
42
  width: 20px;
43
}
44
.cd-horizontal-timeline .events-wrapper::before {
45
  left: 0;
46
  background-image: -webkit-linear-gradient( left , #f8f8f8, rgba(248, 248, 248, 0));
47
  background-image: linear-gradient(to right, #f8f8f8, rgba(248, 248, 248, 0));
48
}
49
.cd-horizontal-timeline .events-wrapper::after {
50
  right: 0;
51
  background-image: -webkit-linear-gradient( right , #f8f8f8, rgba(248, 248, 248, 0));
52
  background-image: linear-gradient(to left, #f8f8f8, rgba(248, 248, 248, 0));
53
}
54
.cd-horizontal-timeline .events {
55
  /* this is the grey line/timeline */
56
  position: absolute;
57
  z-index: 1;
58
  left: 0;
59
  top: 49px;
60
  height: 2px;
61
  /* width will be set using JavaScript */
62
  background: #dfdfdf;
63
  -webkit-transition: -webkit-transform 0.4s;
64
  -moz-transition: -moz-transform 0.4s;
65
  transition: transform 0.4s;
66
}
67
.cd-horizontal-timeline .filling-line {
68
  /* this is used to create the green line filling the timeline */
69
  position: absolute;
70
  z-index: 1;
71
  left: 0;
72
  top: 0;
73
  height: 100%;
74
  width: 100%;
75
  background-color: #7b9d6f;
76
  -webkit-transform: scaleX(0);
77
  -moz-transform: scaleX(0);
78
  -ms-transform: scaleX(0);
79
  -o-transform: scaleX(0);
80
  transform: scaleX(0);
81
  -webkit-transform-origin: left center;
82
  -moz-transform-origin: left center;
83
  -ms-transform-origin: left center;
84
  -o-transform-origin: left center;
85
  transform-origin: left center;
86
  -webkit-transition: -webkit-transform 0.3s;
87
  -moz-transition: -moz-transform 0.3s;
88
  transition: transform 0.3s;
89
}
90
.cd-horizontal-timeline .events a {
91
  position: absolute;
92
  bottom: 0;
93
  z-index: 2;
94
  text-align: center;
95
  font-size: 1.3rem;
96
  padding-bottom: 15px;
97
  color: #383838;
98
  /* fix bug on Safari - text flickering while timeline translates */
99
  -webkit-transform: translateZ(0);
100
  -moz-transform: translateZ(0);
101
  -ms-transform: translateZ(0);
102
  -o-transform: translateZ(0);
103
  transform: translateZ(0);
104
}
105
.cd-horizontal-timeline .events a::after {
106
  /* this is used to create the event spot */
107
  content: '';
108
  position: absolute;
109
  left: 50%;
110
  right: auto;
111
  -webkit-transform: translateX(-50%);
112
  -moz-transform: translateX(-50%);
113
  -ms-transform: translateX(-50%);
114
  -o-transform: translateX(-50%);
115
  transform: translateX(-50%);
116
  bottom: -5px;
117
  height: 12px;
118
  width: 12px;
119
  border-radius: 50%;
120
  //border: 2px solid #dfdfdf;
121
  //background-color: #f8f8f8;
122
  -webkit-transition: background-color 0.3s, border-color 0.3s;
123
  -moz-transition: background-color 0.3s, border-color 0.3s;
124
  transition: background-color 0.3s, border-color 0.3s;
125
}
126
.no-touch .cd-horizontal-timeline .events a:hover::after {
127
  background-color: #7b9d6f;
128
  border-color: #7b9d6f;
129
}
130
.cd-horizontal-timeline .events a.selected {
131
  pointer-events: none;
132
}
133
.cd-horizontal-timeline .events a.selected::after {
134
  //background-color: #7b9d6f;
135
  //border-color: #7b9d6f;
136
}
137
.cd-horizontal-timeline .events a.older-event::after {
138
  //border-color: #7b9d6f;
139
}
140
@media only screen and (min-width: 1100px) {
141
  .cd-horizontal-timeline::before {
142
    /* never visible - this is used in jQuery to check the current MQ */
143
    content: 'desktop';
144
  }
145
}
146
 
147
.cd-timeline-navigation a {
148
  /* these are the left/right arrows to navigate the timeline */
149
  position: absolute;
150
  z-index: 1;
151
  top: 50%;
152
  bottom: auto;
153
  -webkit-transform: translateY(-50%);
154
  -moz-transform: translateY(-50%);
155
  -ms-transform: translateY(-50%);
156
  -o-transform: translateY(-50%);
157
  transform: translateY(-50%);
158
  height: 34px;
159
  width: 34px;
160
  border-radius: 50%;
161
  border: 2px solid #dfdfdf;
162
  /* replace text with an icon */
163
  overflow: hidden;
164
  color: transparent;
165
  text-indent: 100%;
166
  white-space: nowrap;
167
  -webkit-transition: border-color 0.3s;
168
  -moz-transition: border-color 0.3s;
169
  transition: border-color 0.3s;
170
}
171
 
172
.cd-timeline-navigation a.prev {
173
  left: 0;
174
}
175
.cd-timeline-navigation a.next {
176
  right: 0;
177
}
178
.cd-timeline-navigation a.inactive {
179
  cursor: not-allowed;
180
}
181
.cd-timeline-navigation a.inactive::after {
182
  background-position: 0 -16px;
183
}
184
.no-touch .cd-timeline-navigation a.inactive:hover {
185
  border-color: #dfdfdf;
186
}
187
 
188
.cd-horizontal-timeline .events-content {
189
  position: relative;
190
  width: 100%;
191
  margin: 10px 0 0 0;
192
  overflow: hidden;
193
  -webkit-transition: height 0.4s;
194
  -moz-transition: height 0.4s;
195
  transition: height 0.4s;
196
}
197
.cd-horizontal-timeline .events-content > ol > li {
198
  position: absolute;
199
  z-index: 1;
200
  width: 100%;
201
  left: 0;
202
  top: 0;
203
  -webkit-transform: translateX(-100%);
204
  -moz-transform: translateX(-100%);
205
  -ms-transform: translateX(-100%);
206
  -o-transform: translateX(-100%);
207
  transform: translateX(-100%);
208
  padding: 0;
209
  opacity: 0;
210
  -webkit-animation-duration: 0.4s;
211
  -moz-animation-duration: 0.4s;
212
  animation-duration: 0.4s;
213
  -webkit-animation-timing-function: ease-in-out;
214
  -moz-animation-timing-function: ease-in-out;
215
  animation-timing-function: ease-in-out;
216
}
217
.cd-horizontal-timeline .events-content > ol > li.selected {
218
  /* visible event content */
219
  position: relative;
220
  z-index: 2;
221
  opacity: 1;
222
  -webkit-transform: translateX(0);
223
  -moz-transform: translateX(0);
224
  -ms-transform: translateX(0);
225
  -o-transform: translateX(0);
226
  transform: translateX(0);
227
}
228
.cd-horizontal-timeline .events-content > ol > li.enter-right, .cd-horizontal-timeline .events-content > ol > li.leave-right {
229
  -webkit-animation-name: cd-enter-right;
230
  -moz-animation-name: cd-enter-right;
231
  animation-name: cd-enter-right;
232
}
233
.cd-horizontal-timeline .events-content > ol > li.enter-left, .cd-horizontal-timeline .events-content > ol > li.leave-left {
234
  -webkit-animation-name: cd-enter-left;
235
  -moz-animation-name: cd-enter-left;
236
  animation-name: cd-enter-left;
237
}
238
.cd-horizontal-timeline .events-content > ol > li.leave-right, .cd-horizontal-timeline .events-content > ol > li.leave-left {
239
  -webkit-animation-direction: reverse;
240
  -moz-animation-direction: reverse;
241
  animation-direction: reverse;
242
}
243
.cd-horizontal-timeline .events-content > ol >li {
244
  margin: 0 auto;
245
}
246
.cd-horizontal-timeline .events-content em {
247
  display: block;
248
  font-style: italic;
249
  margin: 10px auto;
250
}
251
.cd-horizontal-timeline .events-content em::before {
252
  content: '- ';
253
}
254
 
255
@-webkit-keyframes cd-enter-right {
256
  0% {
257
    opacity: 0;
258
    -webkit-transform: translateX(100%);
259
  }
260
  100% {
261
    opacity: 1;
262
    -webkit-transform: translateX(0%);
263
  }
264
}
265
@-moz-keyframes cd-enter-right {
266
  0% {
267
    opacity: 0;
268
    -moz-transform: translateX(100%);
269
  }
270
  100% {
271
    opacity: 1;
272
    -moz-transform: translateX(0%);
273
  }
274
}
275
@keyframes cd-enter-right {
276
  0% {
277
    opacity: 0;
278
    -webkit-transform: translateX(100%);
279
    -moz-transform: translateX(100%);
280
    -ms-transform: translateX(100%);
281
    -o-transform: translateX(100%);
282
    transform: translateX(100%);
283
  }
284
  100% {
285
    opacity: 1;
286
    -webkit-transform: translateX(0%);
287
    -moz-transform: translateX(0%);
288
    -ms-transform: translateX(0%);
289
    -o-transform: translateX(0%);
290
    transform: translateX(0%);
291
  }
292
}
293
@-webkit-keyframes cd-enter-left {
294
  0% {
295
    opacity: 0;
296
    -webkit-transform: translateX(-100%);
297
  }
298
  100% {
299
    opacity: 1;
300
    -webkit-transform: translateX(0%);
301
  }
302
}
303
@-moz-keyframes cd-enter-left {
304
  0% {
305
    opacity: 0;
306
    -moz-transform: translateX(-100%);
307
  }
308
  100% {
309
    opacity: 1;
310
    -moz-transform: translateX(0%);
311
  }
312
}
313
@keyframes cd-enter-left {
314
  0% {
315
    opacity: 0;
316
    -webkit-transform: translateX(-100%);
317
    -moz-transform: translateX(-100%);
318
    -ms-transform: translateX(-100%);
319
    -o-transform: translateX(-100%);
320
    transform: translateX(-100%);
321
  }
322
  100% {
323
    opacity: 1;
324
    -webkit-transform: translateX(0%);
325
    -moz-transform: translateX(0%);
326
    -ms-transform: translateX(0%);
327
    -o-transform: translateX(0%);
328
    transform: translateX(0%);
329
  }
330
}
331
 
332
 
333
 
334
/* METRONIC EXTENDED CSS */
335
.mt-timeline-horizontal {
336
	font-size:14px;
337
 
338
	ol, ul {
339
		list-style: none;
340
	}
341
	blockquote, q {
342
		quotes: none;
343
	}
344
	blockquote:before, blockquote:after,
345
	q:before, q:after {
346
		content: '';
347
		content: none;
348
	}
349
	table {
350
		border-collapse: collapse;
351
		border-spacing: 0;
352
	}
353
 
354
	.timeline{
355
		width:100%;
356
		max-width: 100%;
357
 
358
		&:before{
359
			background:transparent;
360
		}
361
 
362
		.events-wrapper{
363
 
364
			.events {
365
				a{
366
 
367
					&:after{
368
						background-color: transparent;
369
						border: 2px solid;
370
					}
371
 
372
					&.selected{
373
						&:after{
374
							background-color: #fff !important;
375
						}
376
					}
377
 
378
					&:hover,
379
					&:focus{
380
						text-decoration: none;
381
					}
382
				}
383
			}
384
			&:before,
385
			&:after{
386
				background-image: none;
387
			}
388
		}
389
 
390
		.mt-ht-nav-icon{
391
			li{
392
				a{
393
					border-radius: 50% !important;
394
 
395
					i{
396
						position: absolute;
397
					    top: 50%;
398
					    left: 0;
399
					    transform: translateX(50%) translateY(-50%);
400
					    width: 10px;
401
					}
402
				}
403
 
404
				&:first-child{
405
					a{
406
						i{
407
							left:-2px;
408
						}
409
					}
410
				}
411
			}
412
		}
413
 
414
		&.mt-timeline-square{
415
 
416
			.events a{
417
				&:after{
418
					border-radius: 0 !important;
419
				}
420
			}
421
 
422
			.mt-ht-nav-icon{
423
				li{
424
					a{
425
						border-radius: 0 !important;
426
					}
427
				}
428
			}
429
		}
430
	}
431
 
432
	.events-content{
433
		ol{
434
			padding:0;
435
 
436
			li{
437
				.mt-title {
438
          margin-top: 15px;
439
					float:left;
440
					width:60%;
441
 
442
					h2{
443
            margin: 0;
444
						@include opacity(0.8);
445
            font-size: 18px;
446
            font-weight: 600;
447
					}
448
				}
449
 
450
				.mt-author{
451
					float: right;
452
					position: relative;
453
					text-align: right;
454
					width:40%;
455
 
456
					>.mt-avatar{
457
						float: right;
458
						margin-left:15px;
459
					}
460
 
461
					>.mt-author-name{
462
						margin-top: 5px;
463
 
464
						a{
465
              @include opacity(0.9);
466
              font-size:15px;
467
              font-weight:600;
468
 
469
							&:hover,
470
							&:focus{
471
								text-decoration: none;
472
							}
473
						}
474
					}
475
 
476
          > .mt-author-datetime {
477
            font-size: 13px;
478
          }
479
 
480
					>.mt-avatar{
481
						width:50px;
482
						height: 50px;
483
						border-radius: 50% !important;
484
						overflow: hidden;
485
 
486
						>img{
487
							width:100%;
488
							height:auto;
489
						}
490
					}
491
				}
492
 
493
				.mt-content{
494
					margin-top: 20px;
495
					padding-top: 20px;
496
					border-top:1px solid;
497
					clear:both;
498
					line-height: 1.7em;
499
 
500
          > p {
501
              @include opacity(0.7);
502
          }
503
 
504
					img{
505
						&.pull-left{
506
							margin: 0 15px 15px 0;
507
						}
508
						&.pull-right{
509
							margin: 0 0 15px 15px;
510
						}
511
					}
512
 
513
					.btn-group{
514
						//position: absolute;
515
 
516
            .dropdown-menu {
517
              margin-right: 5px;
518
            }
519
					}
520
				}
521
 
522
			}
523
		}
524
	}
525
}
526
 
527
@media(max-width: $screen-xs-min){
528
	.mt-timeline-horizontal {
529
		.events-content ol li{
530
			.mt-title{
531
				width:100%;
532
			}
533
			.mt-author{
534
				width:100%;
535
				margin-top: 15px;
536
				text-align: left;
537
 
538
				>.mt-avatar{
539
					float:left;
540
					margin-right: 15px;
541
					margin-left: 0;
542
				}
543
 
544
				>.mt-author-name{
545
					margin-top: 10px;
546
				}
547
 
548
			}
549
 
550
		}
551
		.btn.pull-right{
552
			float:none !important;
553
			margin: 0 !important;
554
		}
555
	}
556
}