-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquotes.html
70 lines (64 loc) · 1.3 KB
/
quotes.html
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
---
title: Quotes
---
<section>
{% for quote in site.data.quotes %}
<div class="row">
<div class="twelve columns">
<blockquote data-person="{{ quote.person }}" data-time="{{ quote.time }}">
{% if quote.scenario %} [{{quote.scenario}}] – {% endif %}
{{quote.quote}}
</blockquote>
</div>
</div>
{% endfor %}
</section>
<style>
blockquote {
font-size: 1.5em;
position: relative;
text-align: center;
cursor: default;
opacity: 1;
}
blockquote:after {
z-index: -1;
position: absolute;
left: 0;
height: 1em;
width: 100%;
transform-origin: 0 50%;
transition: transform 0.5s cubic-bezier(0.5, 0, 0.5, 1);
opacity: 0.7;
transform: scaleX(1) translateX(0%);
bottom: -0.5em;
font-size: 0.9em;
content: attr(data-person) " – " attr(data-time);
}
@media (min-width: 750px) {
blockquote {
opacity: 0.5;
}
blockquote:hover {
opacity: 1;
}
blockquote:after {
content: "";
opacity: 0;
z-index: -1;
}
blockquote:hover:after {
position: absolute;
left: 0;
height: 1em;
width: 100%;
transform-origin: 0 50%;
transition: transform 0.5s cubic-bezier(0.5, 0, 0.5, 1);
opacity: 0.7;
transform: scaleX(1) translateX(0%);
bottom: -0.5em;
font-size: 0.9em;
content: attr(data-person) " – " attr(data-time);
}
}
</style>