| 1 |
/** |
| 2 |
* Editor Styles. |
| 3 |
*/ |
| 4 |
@import "./variables"; |
| 5 |
@import "./css-variables"; |
| 6 |
|
| 7 |
/** |
| 8 |
* Components. |
| 9 |
*/ |
| 10 |
@import "./components/active-indicator/editor"; |
| 11 |
@import "./components/code-editor/editor"; |
| 12 |
@import "./components/color-indicator/editor"; |
| 13 |
@import "./components/color-picker/editor"; |
| 14 |
@import "./components/date-time-picker/editor"; |
| 15 |
@import "./components/dropdown-picker/editor"; |
| 16 |
@import "./components/element-state-toggle/editor"; |
| 17 |
@import "./components/gap-settings/editor"; |
| 18 |
@import "./components/icon-picker/editor"; |
| 19 |
@import "./components/image-picker/editor"; |
| 20 |
@import "./components/important-toggle/editor"; |
| 21 |
@import "./components/input-drag/editor"; |
| 22 |
@import "./components/input-group/editor"; |
| 23 |
@import "./components/modal/editor"; |
| 24 |
@import "./components/notice/editor"; |
| 25 |
@import "./components/pro-note/editor"; |
| 26 |
@import "./components/range-control/editor"; |
| 27 |
@import "./components/remove-button/editor"; |
| 28 |
@import "./components/responsive-tab-panel/editor"; |
| 29 |
@import "./components/responsive-toggle/editor"; |
| 30 |
@import "./components/select/editor"; |
| 31 |
@import "./components/toggle-group/editor"; |
| 32 |
@import "./components/transition-selector/editor"; |
| 33 |
@import "./components/transition-preview/editor"; |
| 34 |
@import "./components/typography/editor"; |
| 35 |
@import "./components/url-picker/editor"; |
| 36 |
|
| 37 |
/** |
| 38 |
* Extensions. |
| 39 |
*/ |
| 40 |
@import "./extend/deprecated/editor"; |
| 41 |
@import "./extend/block-actions-copy-paste/editor"; |
| 42 |
@import "./extend/effects/editor"; |
| 43 |
@import "./extend/custom-css/editor"; |
| 44 |
@import "./extend/frame/editor"; |
| 45 |
@import "./extend/position/editor"; |
| 46 |
@import "./extend/display/editor"; |
| 47 |
@import "./extend/spacings/editor"; |
| 48 |
@import "./extend/toolbar-templates/editor"; |
| 49 |
@import "./extend/transform/editor"; |
| 50 |
|
| 51 |
/** |
| 52 |
* Formats. |
| 53 |
*/ |
| 54 |
@import "./formats/badge/editor"; |
| 55 |
@import "./formats/uppercase/style"; |
| 56 |
|
| 57 |
/** |
| 58 |
* Plugins. |
| 59 |
*/ |
| 60 |
@import "./plugins/color-palette/editor"; |
| 61 |
@import "./plugins/custom-code/editor"; |
| 62 |
@import "./plugins/customizer/editor"; |
| 63 |
@import "./plugins/editor-iframe-resize/editor"; |
| 64 |
@import "./plugins/ghostkit/editor"; |
| 65 |
@import "./plugins/templates/editor"; |
| 66 |
@import "./plugins/typography/editor"; |
| 67 |
|
| 68 |
/** |
| 69 |
* Style Variant. |
| 70 |
*/ |
| 71 |
@import "./style-variants/core-heading/editor"; |
| 72 |
@import "./style-variants/core-list/editor"; |
| 73 |
@import "./style-variants/core-paragraph/editor"; |
| 74 |
|
| 75 |
/** |
| 76 |
* SVG Icons. |
| 77 |
*/ |
| 78 |
@import "./svg-icons/style"; |
| 79 |
|
| 80 |
/** |
| 81 |
* Blocks. |
| 82 |
*/ |
| 83 |
@import "./blocks/accordion/styles/editor"; |
| 84 |
@import "./blocks/alert/styles/editor"; |
| 85 |
@import "./blocks/button/styles/editor"; |
| 86 |
@import "./blocks/carousel/styles/editor"; |
| 87 |
@import "./blocks/changelog/styles/editor"; |
| 88 |
@import "./blocks/countdown/styles/editor"; |
| 89 |
@import "./blocks/counter-box/styles/editor"; |
| 90 |
@import "./blocks/divider/styles/editor"; |
| 91 |
@import "./blocks/form/styles/editor"; |
| 92 |
@import "./blocks/gif/styles/editor"; |
| 93 |
@import "./blocks/gist/styles/editor"; |
| 94 |
@import "./blocks/google-maps/styles/editor"; |
| 95 |
@import "./blocks/grid/styles/editor"; |
| 96 |
@import "./blocks/icon/styles/editor"; |
| 97 |
@import "./blocks/icon-box/styles/editor"; |
| 98 |
@import "./blocks/image-compare/styles/editor"; |
| 99 |
@import "./blocks/instagram/styles/editor"; |
| 100 |
@import "./blocks/lottie/styles/editor"; |
| 101 |
@import "./blocks/pricing-table/styles/editor"; |
| 102 |
@import "./blocks/progress/styles/editor"; |
| 103 |
@import "./blocks/shape-divider/styles/editor"; |
| 104 |
@import "./blocks/table-of-contents/styles/editor"; |
| 105 |
@import "./blocks/tabs/styles/editor"; |
| 106 |
@import "./blocks/testimonial/styles/editor"; |
| 107 |
@import "./blocks/twitter/styles/editor"; |
| 108 |
@import "./blocks/video/styles/editor"; |
| 109 |
|
| 110 |
.ghostkit-help-text { |
| 111 |
font-size: 90%; |
| 112 |
font-style: italic; |
| 113 |
color: #a0a0a0; |
| 114 |
} |
| 115 |
|
| 116 |
.ghostkit-code { |
| 117 |
background: #eef0f3; |
| 118 |
border-radius: 3px; |
| 119 |
} |
| 120 |
|
| 121 |
/** |
| 122 |
* Disable width limitation for inner blocks. |
| 123 |
*/ |
| 124 |
.ghostkit-alert, |
| 125 |
.ghostkit-icon-box, |
| 126 |
.ghostkit-counter-box, |
| 127 |
.ghostkit-accordion, |
| 128 |
.ghostkit-tabs-content, |
| 129 |
.ghostkit-changelog, |
| 130 |
.ghostkit-form, |
| 131 |
.ghostkit-grid > .block-editor-inner-blocks > .block-editor-block-list__layout { |
| 132 |
.wp-block { |
| 133 |
max-width: none; |
| 134 |
margin-right: 0; |
| 135 |
margin-left: 0; |
| 136 |
} |
| 137 |
} |
| 138 |
|
| 139 |
/** |
| 140 |
* Grid for controls. |
| 141 |
*/ |
| 142 |
.ghostkit-grid-controls { |
| 143 |
display: flex; |
| 144 |
flex-wrap: wrap; |
| 145 |
margin: 0 -10px; |
| 146 |
|
| 147 |
> * { |
| 148 |
flex: 1; |
| 149 |
min-width: 80px; |
| 150 |
margin: 0 10px !important; |
| 151 |
} |
| 152 |
} |
| 153 |
|
| 154 |
/** |
| 155 |
* Better appender styles for blocks: |
| 156 |
* - Grid |
| 157 |
* - Alert |
| 158 |
* - Counter Box |
| 159 |
* - Icon Box |
| 160 |
* - Testimonial |
| 161 |
* - Tabs |
| 162 |
* - Accordion |
| 163 |
* - Carousel |
| 164 |
*/ |
| 165 |
.ghostkit-grid-inner > .block-editor-block-list__block:not(.is-selected) > .ghostkit-col-content > .block-list-appender:only-child, |
| 166 |
[data-type="ghostkit/alert"]="ghostkit/alert""]:not(.is-selected) > .ghostkit-alert > .ghostkit-alert-content > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 167 |
[data-type="ghostkit/counter-box"]="ghostkit/counter-box""]:not(.is-selected) > .ghostkit-counter-box > .ghostkit-counter-box-content > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 168 |
[data-type="ghostkit/icon-box"]="ghostkit/icon-box""]:not(.is-selected) > .ghostkit-icon-box > .ghostkit-icon-box-content > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 169 |
[data-type="ghostkit/testimonial"]="ghostkit/testimonial""]:not(.is-selected) > .ghostkit-testimonial > .ghostkit-testimonial-content > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 170 |
[data-type="ghostkit/tabs-tab-v2"]="ghostkit/tabs-tab-v2""]:not(.is-selected) > .ghostkit-tab > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 171 |
[data-type="ghostkit/accordion-item"]="ghostkit/accordion-item""]:not(.is-selected) > .ghostkit-accordion-item > .ghostkit-accordion-item-content > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child, |
| 172 |
[data-type="ghostkit/carousel-slide"]="ghostkit/carousel-slide""]:not(.is-selected) > .ghostkit-carousel-slide > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender:only-child { |
| 173 |
pointer-events: none; |
| 174 |
|
| 175 |
&::after { |
| 176 |
position: absolute; |
| 177 |
top: 0; |
| 178 |
right: 0; |
| 179 |
bottom: 0; |
| 180 |
left: 0; |
| 181 |
pointer-events: none; |
| 182 |
content: ""; |
| 183 |
border: 1px dashed; |
| 184 |
border-radius: 2px; |
| 185 |
} |
| 186 |
|
| 187 |
.block-editor-inserter { |
| 188 |
visibility: hidden; |
| 189 |
} |
| 190 |
} |
| 191 |
|
| 192 |
/** |
| 193 |
* Extensions icon in panel body |
| 194 |
*/ |
| 195 |
.components-panel__body-toggle > .ghostkit-ext-icon { |
| 196 |
position: absolute; |
| 197 |
top: 50%; |
| 198 |
display: block; |
| 199 |
transform: translateY(-50%); |
| 200 |
|
| 201 |
svg { |
| 202 |
display: block; |
| 203 |
} |
| 204 |
|
| 205 |
+ span { |
| 206 |
margin-left: 35px; |
| 207 |
} |
| 208 |
} |
| 209 |
|
| 210 |
/** |
| 211 |
* Extensions icon in tools panel |
| 212 |
*/ |
| 213 |
.components-tools-panel-header > h2 { |
| 214 |
> .ghostkit-ext-icon { |
| 215 |
position: absolute; |
| 216 |
margin-top: -4px; |
| 217 |
|
| 218 |
+ span { |
| 219 |
margin-left: 35px; |
| 220 |
} |
| 221 |
} |
| 222 |
} |
| 223 |
|
| 224 |
.ghostkit-tools-panel-with-icon { |
| 225 |
.components-tools-panel-header > h2 { |
| 226 |
position: relative; |
| 227 |
padding-left: 35px; |
| 228 |
|
| 229 |
&::before { |
| 230 |
position: absolute; |
| 231 |
top: 50%; |
| 232 |
left: 0; |
| 233 |
display: block; |
| 234 |
width: 24px; |
| 235 |
height: 24px; |
| 236 |
content: ""; |
| 237 |
background-color: currentColor; |
| 238 |
transform: translateY(-50%); |
| 239 |
mask-repeat: no-repeat; |
| 240 |
mask-position: center; |
| 241 |
mask-size: contain; |
| 242 |
} |
| 243 |
} |
| 244 |
|
| 245 |
&.ghostkit-tools-panel-with-icon-effects .components-tools-panel-header > h2::before { |
| 246 |
mask-image: url(../../gutenberg/icons/extension-sr.svg); |
| 247 |
} |
| 248 |
|
| 249 |
&.ghostkit-tools-panel-with-icon-position .components-tools-panel-header > h2::before { |
| 250 |
mask-image: url(../../gutenberg/icons/extension-position.svg); |
| 251 |
} |
| 252 |
|
| 253 |
&.ghostkit-tools-panel-with-icon-spacings .components-tools-panel-header > h2::before { |
| 254 |
mask-image: url(../../gutenberg/icons/extension-spacings.svg); |
| 255 |
} |
| 256 |
|
| 257 |
&.ghostkit-tools-panel-with-icon-frame .components-tools-panel-header > h2::before { |
| 258 |
mask-image: url(../../gutenberg/icons/extension-frame.svg); |
| 259 |
} |
| 260 |
|
| 261 |
&.ghostkit-tools-panel-with-icon-transform .components-tools-panel-header > h2::before { |
| 262 |
mask-image: url(../../gutenberg/icons/extension-transform.svg); |
| 263 |
} |
| 264 |
|
| 265 |
&.ghostkit-tools-panel-with-icon-custom-css .components-tools-panel-header > h2::before { |
| 266 |
mask-image: url(../../gutenberg/icons/extension-custom-css.svg); |
| 267 |
} |
| 268 |
|
| 269 |
&.ghostkit-tools-panel-with-icon-display .components-tools-panel-header > h2::before { |
| 270 |
mask-image: url(../../gutenberg/icons/extension-display.svg); |
| 271 |
} |
| 272 |
} |
| 273 |
|
| 274 |
/** |
| 275 |
* Tabs Control. |
| 276 |
*/ |
| 277 |
.ghostkit-control-tabs { |
| 278 |
> .components-tab-panel__tabs { |
| 279 |
display: flex; |
| 280 |
flex-wrap: wrap; |
| 281 |
margin-bottom: 15px; |
| 282 |
border-bottom: 1px solid $light-gray-400; |
| 283 |
|
| 284 |
// single tab |
| 285 |
> .ghostkit-control-tabs-tab { |
| 286 |
padding: 9px 11px; |
| 287 |
padding-bottom: 11px; |
| 288 |
margin: 0; |
| 289 |
margin-bottom: -1px; |
| 290 |
color: #555d66; |
| 291 |
cursor: pointer; |
| 292 |
background: none; |
| 293 |
border: none; |
| 294 |
border-bottom: 2px solid transparent; |
| 295 |
border-radius: 0; |
| 296 |
outline-offset: -1px; |
| 297 |
|
| 298 |
svg { |
| 299 |
display: block; |
| 300 |
width: auto; |
| 301 |
height: 1.4em; |
| 302 |
} |
| 303 |
|
| 304 |
&.is-active { |
| 305 |
position: relative; |
| 306 |
z-index: 1; |
| 307 |
border-bottom: 2px solid $blue-medium-focus; |
| 308 |
} |
| 309 |
} |
| 310 |
} |
| 311 |
|
| 312 |
// wide |
| 313 |
&.ghostkit-control-tabs-wide > .components-tab-panel__tabs > .ghostkit-control-tabs-tab { |
| 314 |
flex: 1; |
| 315 |
justify-content: center; |
| 316 |
text-align: center; |
| 317 |
} |
| 318 |
|
| 319 |
.ghostkit-control-tabs-separator { |
| 320 |
padding: 15px; |
| 321 |
margin-right: -15px; |
| 322 |
margin-left: -15px; |
| 323 |
border-top: 1px solid $light-gray-400; |
| 324 |
|
| 325 |
&:first-child { |
| 326 |
margin-top: -16px; |
| 327 |
} |
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
/** |
| 332 |
* Input drag component cursor. |
| 333 |
*/ |
| 334 |
.ghostkit-component-input-drag { |
| 335 |
input { |
| 336 |
cursor: n-resize; |
| 337 |
} |
| 338 |
} |
| 339 |
|
| 340 |
// TODO: remove this fix when Gutenberg fixes this. |
| 341 |
.components-select-control select[multiple]].components-select-control__input { |
| 342 |
height: auto; |
| 343 |
padding-right: 8px; |
| 344 |
|
| 345 |
~ .components-input-control__suffix { |
| 346 |
display: none; |
| 347 |
} |
| 348 |
} |
| 349 |
|