| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-component-remove-button { |
| 4 |
position: absolute; |
| 5 |
top: 0; |
| 6 |
right: 0; |
| 7 |
align-items: center; |
| 8 |
justify-content: center; |
| 9 |
width: 20px; |
| 10 |
height: 20px; |
| 11 |
padding: 0 !important; |
| 12 |
margin-top: -10px; |
| 13 |
margin-right: -10px; |
| 14 |
color: #fff; |
| 15 |
background-color: $dark-gray-500; |
| 16 |
border-radius: 50%; |
| 17 |
opacity: 0.7; |
| 18 |
transition: 0.2s opacity, 0.2s background-color; |
| 19 |
|
| 20 |
&:hover, |
| 21 |
&:focus { |
| 22 |
color: #fff; |
| 23 |
background-color: var(--gkt-color-brand); |
| 24 |
opacity: 1; |
| 25 |
} |
| 26 |
|
| 27 |
svg { |
| 28 |
flex: 0 0 auto; |
| 29 |
width: auto; |
| 30 |
height: 0.8em; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
.ghostkit-component-remove-button-confirm { |
| 35 |
.ghostkit-component-remove-button-confirm-yep, |
| 36 |
.ghostkit-component-remove-button-confirm-nope { |
| 37 |
padding: 0; |
| 38 |
margin-left: 5px; |
| 39 |
|
| 40 |
&:hover, |
| 41 |
&:focus { |
| 42 |
text-decoration: underline; |
| 43 |
} |
| 44 |
|
| 45 |
&, |
| 46 |
&:focus { |
| 47 |
background: none; |
| 48 |
box-shadow: none; |
| 49 |
} |
| 50 |
} |
| 51 |
|
| 52 |
.ghostkit-component-remove-button-confirm-yep, |
| 53 |
.ghostkit-component-remove-button-confirm-yep:focus { |
| 54 |
color: #df5454; |
| 55 |
} |
| 56 |
|
| 57 |
.ghostkit-component-remove-button-confirm-nope, |
| 58 |
.ghostkit-component-remove-button-confirm-nope:focus { |
| 59 |
color: #999; |
| 60 |
} |
| 61 |
|
| 62 |
&.components-popover { |
| 63 |
&::before { |
| 64 |
border-color: transparent; |
| 65 |
} |
| 66 |
|
| 67 |
&.is-top::after { |
| 68 |
border-top-color: $dark-gray-900; |
| 69 |
} |
| 70 |
|
| 71 |
&.is-bottom::after { |
| 72 |
border-bottom-color: $dark-gray-900; |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
.components-popover__content { |
| 77 |
padding: 4px 12px; |
| 78 |
color: $white; |
| 79 |
white-space: nowrap; |
| 80 |
background: $dark-gray-900; |
| 81 |
border-width: 0; |
| 82 |
} |
| 83 |
|
| 84 |
&:not(.is-mobile) .components-popover__content { |
| 85 |
min-width: 0; |
| 86 |
} |
| 87 |
|
| 88 |
.components-tooltip__shortcut { |
| 89 |
display: block; |
| 90 |
color: $dark-gray-200; |
| 91 |
text-align: center; |
| 92 |
} |
| 93 |
} |
| 94 |
|