| 1 |
@import "../../variables"; |
| 2 |
|
| 3 |
.ghostkit-tools-panel-custom-css { |
| 4 |
display: flex; |
| 5 |
flex-direction: column; |
| 6 |
grid-column: 1 / -1; |
| 7 |
gap: 15px; |
| 8 |
} |
| 9 |
|
| 10 |
.ghostkit-control-pre-custom-css { |
| 11 |
padding: 20px; |
| 12 |
background-color: $light-gray-400; |
| 13 |
} |
| 14 |
|
| 15 |
// Custom CSS Dropdown. |
| 16 |
.ghostkit-extension-customCSS-custom__dropdown { |
| 17 |
display: block; |
| 18 |
width: 100%; |
| 19 |
} |
| 20 |
|
| 21 |
.ghostkit-extension-customCSS-custom__dropdown-content { |
| 22 |
.components-popover__content { |
| 23 |
width: 500px; |
| 24 |
padding: 16px; |
| 25 |
} |
| 26 |
|
| 27 |
.components-tab-panel__tabs { |
| 28 |
margin-top: -16px; |
| 29 |
margin-right: -16px; |
| 30 |
margin-bottom: 16px; |
| 31 |
margin-left: -16px; |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
.ghostkit-extension-customCSS-custom__dropdown-content-toggle { |
| 36 |
position: relative; |
| 37 |
display: block; |
| 38 |
width: 100%; |
| 39 |
height: auto; |
| 40 |
padding: 0; |
| 41 |
cursor: pointer; |
| 42 |
|
| 43 |
> span { |
| 44 |
position: absolute; |
| 45 |
top: 50%; |
| 46 |
left: 50%; |
| 47 |
z-index: 1; |
| 48 |
display: flex; |
| 49 |
align-items: center; |
| 50 |
justify-content: center; |
| 51 |
width: 110px; |
| 52 |
height: 34px; |
| 53 |
margin-top: -17px; |
| 54 |
margin-left: -55px; |
| 55 |
font-size: 13px; |
| 56 |
font-weight: 400; |
| 57 |
color: #fff; |
| 58 |
background-color: var(--wp-admin-theme-color); |
| 59 |
border-radius: 3px; |
| 60 |
transition: 0.2s background-color; |
| 61 |
} |
| 62 |
|
| 63 |
.ace_editor { |
| 64 |
box-shadow: 0 0 0 1px #b3b3b3; |
| 65 |
transition: 0.2s box-shadow; |
| 66 |
} |
| 67 |
|
| 68 |
.ace_scroller { |
| 69 |
filter: blur(0); |
| 70 |
opacity: 0.2; |
| 71 |
transition: 0.2s filter; |
| 72 |
} |
| 73 |
|
| 74 |
.ace_scroller, |
| 75 |
.ace_scrollbar { |
| 76 |
overflow: hidden; |
| 77 |
} |
| 78 |
|
| 79 |
.ghostkit-component-code-editor { |
| 80 |
pointer-events: none; |
| 81 |
} |
| 82 |
|
| 83 |
&:hover, |
| 84 |
&:focus { |
| 85 |
> span { |
| 86 |
background-color: var(--wp-admin-theme-color-darker-10); |
| 87 |
} |
| 88 |
|
| 89 |
.ace_editor { |
| 90 |
box-shadow: 0 0 0 1px var(--wp-admin-theme-color-darker-10); |
| 91 |
} |
| 92 |
|
| 93 |
.ace_scroller { |
| 94 |
filter: blur(2px); |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
&-active, |
| 99 |
&-active:hover, |
| 100 |
&-active:focus { |
| 101 |
> span { |
| 102 |
background-color: var(--wp-admin-theme-color-darker-10); |
| 103 |
} |
| 104 |
|
| 105 |
.ace_editor { |
| 106 |
box-shadow: 0 0 0 2px var(--wp-admin-theme-color-darker-10); |
| 107 |
} |
| 108 |
|
| 109 |
.ace_scroller { |
| 110 |
filter: blur(2px); |
| 111 |
} |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
// Fixes z-index of autocomplete. |
| 116 |
.ace_editor.ace_autocomplete { |
| 117 |
z-index: 1000000; |
| 118 |
} |
| 119 |
|