-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathstyle.scss
More file actions
77 lines (64 loc) · 1.31 KB
/
style.scss
File metadata and controls
77 lines (64 loc) · 1.31 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
.wp-block-pullquote {
text-align: center; // Default text-alignment where the `textAlign` attribute value isn't specified.
overflow-wrap: break-word; // Break long strings of text without spaces so they don't overflow the block.
box-sizing: border-box;
p,
blockquote,
cite {
color: inherit;
}
blockquote {
margin: 0;
}
p {
margin-top: 0;
&:last-child {
margin-bottom: 0;
}
}
&.alignleft,
&.alignright {
max-width: $content-width * 0.5;
}
cite,
footer {
position: relative;
}
.has-text-color a {
color: inherit;
}
}
// Lowest specificity to avoid overriding layout and global styles.
:where(.wp-block-pullquote) {
margin: 0 0 1em 0;
padding: 4em 0;
}
// Ensure that we are reasonably specific to override theme defaults.
.wp-block-pullquote.has-text-align-left blockquote {
text-align: left;
}
// Ensure that we are reasonably specific to override theme defaults.
.wp-block-pullquote.has-text-align-right blockquote {
text-align: right;
}
// .is-style-solid-color is deprecated.
.wp-block-pullquote.is-style-solid-color {
border: none;
blockquote {
margin-left: auto;
margin-right: auto;
max-width: 60%;
p {
margin-top: 0;
margin-bottom: 0;
font-size: 2em;
}
cite {
text-transform: none;
font-style: normal;
}
}
}
.wp-block-pullquote cite {
color: inherit;
}