-
Notifications
You must be signed in to change notification settings - Fork 52
/
page-timeline-voez.php
153 lines (142 loc) · 4.26 KB
/
page-timeline-voez.php
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
/**
* 时间轴归档 VOEZ
*
* @package custom
*/
$this->need('header.php'); ?>
<style>
.md-timeline {
margin: 4em auto;
position: relative;
max-width: 46em;
padding: 0;
}
@media screen and (max-device-width:480px){
.md-timeline{
margin-top: 6em;
}
}
.md-timeline:before {
background-color: black;
content: '';
margin-left: -1px;
position: absolute;
top: 0;
left: 2em;
width: 2px;
height: 100%;
}
.md-timeline a{
text-decoration: none;
color: #000;
}
.md-timeline a:hover{
text-decoration: underline;
}
.md-timeline h3, .md-timeline h4{
margin: 0;
}
.md-timeline-event {
position: relative;
}
.md-timeline-event:hover .md-timeline-event-icon {
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
background-color: #a83279;
}
.md-timeline-event:hover .md-timeline-event-thumbnail {
-moz-box-shadow: inset 40em 0 0 0 #a83279;
-webkit-box-shadow: inset 40em 0 0 0 #a83279;
box-shadow: inset 40em 0 0 0 #a83279;
}
.md-timeline-event-copy {
padding: 2em;
position: relative;
top: -1.875em;
left: 4em;
width: 80%;
}
.md-timeline-event-copy h3 {
font-size: 1.75em;
}
.md-timeline-event-copy h4 {
font-size: 1.2em;
margin-bottom: 1.2em;
}
.md-timeline-event-copy strong {
font-weight: 700;
}
.md-timeline-event-copy p:not(.md-timeline-event-thumbnail) {
padding-bottom: 1.2em;
}
.md-timeline-event-icon {
-moz-transition: -moz-transform 0.2s ease-in;
-o-transition: -o-transform 0.2s ease-in;
-webkit-transition: -webkit-transform 0.2s ease-in;
transition: transform 0.2s ease-in;
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
background-color: black;
outline: 10px solid white;
display: block;
margin: 0.5em 0.5em 0.5em -0.5em;
position: absolute;
top: 0;
left: 2em;
width: 1em;
height: 1em;
}
.md-timeline-event-thumbnail {
-moz-transition: box-shadow 0.5s ease-in 0.1s;
-o-transition: box-shadow 0.5s ease-in 0.1s;
-webkit-transition: box-shadow 0.5s ease-in;
-webkit-transition-delay: 0.1s;
transition: box-shadow 0.5s ease-in 0.1s;
color: white;
font-size: 0.75em;
background-color: black;
-moz-box-shadow: inset 0 0 0 0em #ef795a;
-webkit-box-shadow: inset 0 0 0 0em #ef795a;
box-shadow: inset 0 0 0 0em #ef795a;
display: inline-block;
margin-bottom: 1.2em;
padding: 0.25em 1em 0.2em 1em;
}
@media screen and (max-width: 840px) {
.mdl-mini-footer {
height: 200px!important;
padding: 30px 0 20px!important;
}
}
#back-to-top.btt-docked {
bottom: auto!important;
}
.md-timeline li {
list-style-type: none
}
</style>
<!-- Hamburger Button -->
<button class="MD-burger-icon sidebar-toggle">
<span id="MD-burger-id" class="MD-burger-layer"></span>
</button>
<ul class="md-timeline">
<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archive); ?>
<?php while ($archive->next()):?>
<li class="md-timeline-event">
<label class="md-timeline-event-icon"></label>
<div class="md-timeline-event-copy">
<p class="md-timeline-event-thumbnail"><?php $archive->date('M j Y'); ?> - <?php $archive->author() ?></p>
<h3><a href="<?php $archive->permalink() ?>"><?php $archive->title() ?></a></h3>
<h4><strong>Categorias:</strong> <?php $archive->category(' '); ?> <br /><strong>Tags:</strong> <?php $archive->tags(' ', true, null); ?></h4>
<p><?php $archive->excerpt(100, '...'); ?></p>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>