| 1 |
$blocks-block__margin: 0.5em; |
| 2 |
|
| 3 |
.wp-block-tableberg-button { |
| 4 |
margin-block: 10px; |
| 5 |
|
| 6 |
.wp-block-button__link:hover { |
| 7 |
color: var(--text-hover-color) !important; |
| 8 |
background-color: var(--background-hover-color) !important; |
| 9 |
} |
| 10 |
|
| 11 |
&.block-align-left { |
| 12 |
text-align: left; |
| 13 |
margin-right: auto; |
| 14 |
} |
| 15 |
|
| 16 |
&.block-align-center { |
| 17 |
text-align: center; |
| 18 |
margin-inline: auto; |
| 19 |
} |
| 20 |
|
| 21 |
&.block-align-right { |
| 22 |
text-align: right; |
| 23 |
margin-left: auto; |
| 24 |
} |
| 25 |
|
| 26 |
&.has-custom-font-size { |
| 27 |
.wp-block-button__link { |
| 28 |
font-size: inherit; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
&.has-custom-width { |
| 33 |
max-width: none; |
| 34 |
.wp-block-button__link { |
| 35 |
width: 100%; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
&.wp-block-button__width-25 { |
| 40 |
width: calc( |
| 41 |
25% - (var(--wp--style--block-gap, #{$blocks-block__margin}) * 0.75) |
| 42 |
); |
| 43 |
} |
| 44 |
|
| 45 |
&.wp-block-button__width-50 { |
| 46 |
width: calc( |
| 47 |
50% - (var(--wp--style--block-gap, #{$blocks-block__margin}) * 0.5) |
| 48 |
); |
| 49 |
} |
| 50 |
|
| 51 |
&.wp-block-button__width-75 { |
| 52 |
width: calc( |
| 53 |
75% - (var(--wp--style--block-gap, #{$blocks-block__margin}) * 0.25) |
| 54 |
); |
| 55 |
} |
| 56 |
|
| 57 |
&.wp-block-button__width-100 { |
| 58 |
width: 100%; |
| 59 |
flex-basis: 100%; |
| 60 |
} |
| 61 |
} |
| 62 |
|