/
style.scss
55 lines (46 loc) · 1.11 KB
/
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
50
51
52
53
54
55
$blocks-button__height: 3.1em;
// Prefer the link selector instead of the regular button classname
// to support the previous markup in addition to the new one.
.wp-block-button__link {
color: $white;
background-color: #32373c;
border: none;
border-radius: $blocks-button__height / 2;
box-shadow: none;
cursor: pointer;
display: inline-block;
font-size: 1.125em;
padding: 0.667em 1.333em;
text-align: center;
text-decoration: none;
overflow-wrap: break-word;
&:hover,
&:focus,
&:active,
&:visited {
color: $white;
}
&.aligncenter {
text-align: center;
}
&.alignright {
/*rtl:ignore*/
text-align: right;
}
}
// the first selector is required for old buttons markup
.wp-block-button.is-style-squared,
.wp-block-button__link.wp-block-button.is-style-squared {
border-radius: 0;
}
// the first selector is required for old buttons markup
.wp-block-button.no-border-radius,
.wp-block-button__link.no-border-radius {
border-radius: 0 !important;
}
.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
color: #32373c;
background-color: transparent;
border: 2px solid;
}