| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-control-responsive-toggle { |
| 4 |
position: relative; |
| 5 |
display: inline-flex; |
| 6 |
|
| 7 |
.components-base-control__label:has(&), |
| 8 |
.components-input-control__label:has(&) { |
| 9 |
overflow: visible !important; |
| 10 |
} |
| 11 |
|
| 12 |
.components-base-control__label > &, |
| 13 |
.components-input-control__label > & { |
| 14 |
margin-left: 8px; |
| 15 |
vertical-align: bottom; |
| 16 |
} |
| 17 |
|
| 18 |
> .components-button { |
| 19 |
display: inline-flex; |
| 20 |
align-items: center; |
| 21 |
justify-content: center; |
| 22 |
height: auto; |
| 23 |
padding: 0; |
| 24 |
|
| 25 |
svg { |
| 26 |
display: block; |
| 27 |
width: 18px; |
| 28 |
height: auto; |
| 29 |
} |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
.ghostkit-control-responsive-toggle-icon, |
| 34 |
.ghostkit-control-responsive-toggle-button { |
| 35 |
// Relative position for active toggle. |
| 36 |
position: relative; |
| 37 |
} |
| 38 |
|
| 39 |
.ghostkit-control-responsive-toggle-dropdown { |
| 40 |
position: absolute; |
| 41 |
top: -5px; |
| 42 |
left: -5px; |
| 43 |
z-index: 5; |
| 44 |
display: none; |
| 45 |
flex-direction: column; |
| 46 |
gap: 2px; |
| 47 |
width: auto; |
| 48 |
padding: 2px; |
| 49 |
background-color: #fff; |
| 50 |
border: 1px solid #e0e0e0; |
| 51 |
border-radius: 4px; |
| 52 |
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 5%); |
| 53 |
|
| 54 |
&.is-open { |
| 55 |
display: flex; |
| 56 |
} |
| 57 |
|
| 58 |
> .components-button { |
| 59 |
display: inline-flex; |
| 60 |
align-items: center; |
| 61 |
justify-content: center; |
| 62 |
width: 22px; |
| 63 |
height: 22px; |
| 64 |
padding: 0; |
| 65 |
border-radius: 2px; |
| 66 |
|
| 67 |
&.is-active { |
| 68 |
color: #fff; |
| 69 |
background-color: #000; |
| 70 |
} |
| 71 |
|
| 72 |
svg { |
| 73 |
display: block; |
| 74 |
width: 18px; |
| 75 |
height: auto; |
| 76 |
} |
| 77 |
} |
| 78 |
} |
| 79 |
|