-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathstyles.css
More file actions
104 lines (99 loc) · 1.55 KB
/
styles.css
File metadata and controls
104 lines (99 loc) · 1.55 KB
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
body {
/*text-align: center;*/
background-size: cover;
font-family: "Amatic SC", cursive;
background-color: rgb(95, 207, 128);
}
.light {
color: white;
}
.dark {
color: black;
}
#quote-box {
position: absolute;
top: 14%;
left: 10%;
right: 10%;
width: 80%;
line-height: 0.5;
}
.quote {
font-size: 6rem;
font-weight: 400;
line-height: 1.1;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
position: relative;
margin: 0;
}
.quote:before,
.quote:after {
font-size: 6rem;
line-height: 2.5rem;
position: absolute;
}
.quote:before {
content: "“";
top: 0.25em;
left: -0.5em;
}
.quote:after {
content: "”";
bottom: -0.1em;
margin-left: 0.1em;
position: absolute;
}
.source {
font-size: 2.5rem;
letter-spacing: 0.05em;
line-height: 1.1;
text-align: right;
margin-right: 4em;
}
.source:before {
content: "—";
}
.citation {
font-size: 2.5rem;
font-style: italic;
}
.citation:before {
content: ", ";
font-style: normal;
}
.year:before {
content: ", ";
font-style: normal;
}
#loadQuote {
font-size: 2.5rem;
position: fixed;
width: 7em;
display: inline-block;
left: 50%;
margin-left: -6em;
bottom: 150px;
border-radius: 4px;
border: 2px solid;
background-color: rgba(255, 255, 255, 0);
padding: 15px 0;
transition: 0.5s;
}
#loadQuote:hover {
background-color: rgba(255, 255, 255, 0.25);
}
#loadQuote:focus {
outline: none;
}
@media (max-width: 420px) {
.quote {
font-size: 2.5rem;
}
.quote:before,
.quote:after {
font-size: 3rem;
}
.source {
font-size: 1rem;
}
}