-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
49 lines (41 loc) · 856 Bytes
/
style.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
.wp-block-file {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
&:not(.wp-element-button) {
font-size: 0.8em;
}
&.aligncenter {
text-align: center;
}
&.alignright {
/*rtl:ignore*/
text-align: right;
}
* + .wp-block-file__button {
margin-left: 0.75em;
}
}
// Lowest specificity to avoid overriding layout styles.
:where(.wp-block-file) {
margin-bottom: 1.5em;
}
.wp-block-file__embed {
margin-bottom: 1em;
}
//This needs a low specificity so it won't override the rules from the button element if defined in theme.json.
:where(.wp-block-file__button) {
border-radius: 2em;
padding: 0.5em 1em;
display: inline-block;
&:is(a) {
&:hover,
&:visited,
&:focus,
&:active {
box-shadow: none;
color: $white;
opacity: 0.85;
text-decoration: none;
}
}
}