-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
111 lines (96 loc) · 1.52 KB
/
styles.css
File metadata and controls
111 lines (96 loc) · 1.52 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
105
106
107
108
109
110
111
/* Random Quote Generator Styles */
body {
background-color: #36b55c;
color: white;
font-family: 'Playfair Display', serif;
}
#quote-box {
position: absolute;
top: 20%;
left: 10%;
right: 10%;
width: 80%;
line-height: .5;
}
.quote {
font-size: 4rem;
font-weight: 400;
line-height: 1.1;
position: relative;
margin: 0;
}
.quote:before, .quote:after {
font-size: 6rem;
line-height: 2.5rem;
position: absolute;
}
.quote:before {
content: "“";
top: .25em;
left: -.5em;
}
.quote:after {
content: "”";
bottom: -.1em;
margin-left: .1em;
position: absolute;
}
.source {
font-size: 1.25rem;;
letter-spacing: 0.05em;
line-height: 1.1;
text-align: right;
margin-right: 4em;
}
.source:before {
content: "—";
}
.citation {
font-style: italic;
}
.citation:before {
content: ", ";
font-style: normal;
}
.year:before {
content: ", ";
font-style: normal;
}
#loadQuote {
position: fixed;
width: 12em;
display: inline-block;
left: 50%;
margin-left: -6em;
bottom: 150px;
border-radius: 4px;
border: 2px solid #fff;
color: #fff;
padding: 15px 0;
transition: .5s ;
}
#loadQuote:focus {
outline: none;
}
.tags{
display: block;
list-style-type: none;
font-size: .7em;
text-align: center;
border-radius: 1.2em;
padding: .25em;
border: solid 2px lightblue;
margin-top: 1em;
width: 10%;
}
@media (max-width: 420px) {
.quote {
font-size: 2.5rem;
}
.quote:before, .quote:after {
font-size: 3rem;
}
.source {
font-size: 1rem;
}
}