-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_blockquote.scss
51 lines (47 loc) · 934 Bytes
/
_blockquote.scss
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
blockquote {
margin: 0 1.5rem 2rem;
border-left: 4px solid var(--color-lighter);
color: var(--color-darkest);
padding-left: .75rem;
padding-bottom: 0;
p:last-child {
padding-bottom: 0;
}
}
blockquote p cite::before {
content: '\2014\2008'; /* emdash-punctuationspace */
white-space: pre;
}
/**
* blockquote p:last-of-type cite,
*
* use this selector to ignore all but the final
* cite in a blockquote.
**/
blockquote p cite
{
font-style: italic;
font-size: var(--font-size-minus-1);
text-align: right;
display: inline-block;
width: 100%;
}
.quote-hero {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin: 4rem -50vw 6rem;
blockquote {
text-align: center;
width: calc(var(--content-width) * 2);
max-width: 90%;
margin: auto;
padding: 0;
border-left: 0;
font-size: var(--font-size-plus-1);
p cite {
text-align: center;
}
}
}