| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-component-modal { |
| 4 |
@media (min-width: 600px) { |
| 5 |
min-width: 600px; |
| 6 |
max-width: 600px; |
| 7 |
|
| 8 |
// fix for Ace editor tooltips |
| 9 |
margin-left: -300px; |
| 10 |
transform: none; |
| 11 |
|
| 12 |
// position |
| 13 |
&.ghostkit-component-modal-position-top { |
| 14 |
top: 112px; |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
// size |
| 19 |
@media (min-width: 840px) { |
| 20 |
&.ghostkit-component-modal-size-lg { |
| 21 |
min-width: 800px; |
| 22 |
max-width: 800px; |
| 23 |
|
| 24 |
// fix for Ace editor tooltips |
| 25 |
margin-left: -400px; |
| 26 |
transform: none; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
// Fix for new WP 5.9 styles |
| 31 |
body > .components-modal__screen-overlay & { |
| 32 |
@media (min-width: 600px) { |
| 33 |
margin-left: auto; |
| 34 |
|
| 35 |
// position |
| 36 |
&.ghostkit-component-modal-position-top { |
| 37 |
top: 0; |
| 38 |
margin-top: 112px; |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
// size |
| 43 |
@media (min-width: 840px) { |
| 44 |
&.ghostkit-component-modal-size-lg { |
| 45 |
margin-left: auto; |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
// header |
| 51 |
.components-modal__header { |
| 52 |
.components-modal__icon-container svg { |
| 53 |
display: block; |
| 54 |
margin-right: 10px; |
| 55 |
} |
| 56 |
|
| 57 |
.components-modal__header-heading { |
| 58 |
font-weight: 600; |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
// tab panel |
| 63 |
.ghostkit-component-modal-tab-panel { |
| 64 |
.components-tab-panel__tabs { |
| 65 |
margin-top: -16px; |
| 66 |
margin-right: -16px; |
| 67 |
margin-left: -16px; |
| 68 |
|
| 69 |
.ghostkit-control-tabs-tab { |
| 70 |
padding: 12px 16px; |
| 71 |
color: inherit; |
| 72 |
|
| 73 |
&:focus { |
| 74 |
outline: none; |
| 75 |
} |
| 76 |
} |
| 77 |
} |
| 78 |
} |
| 79 |
} |
| 80 |
|