PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.2
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.2
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / grid / styles / editor.scss

editor.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.2, at gutenberg/blocks/grid/styles/editor.scss

125 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Editor Styles
3 */
4 @import "./style";
5
6 // Hide Grid block if inserted for templates modal only.
7 [data-ghostkit-grid-templates-modal-only]] {
8 display: none;
9 }
10
11 // Background AWB
12 .ghostkit-grid > .awb-gutenberg-preview-block,
13 .ghostkit-col > .awb-gutenberg-preview-block {
14 position: absolute;
15 top: 0;
16 right: 0;
17 bottom: 0;
18 left: 0;
19 pointer-events: none;
20 transition: 0.15s border ease-in-out;
21
22 // fix for AWB border style.
23 &:empty {
24 border: none;
25 }
26
27 > .nk-awb-overlay {
28 position: absolute;
29 top: 0;
30 left: 0;
31 }
32
33 // fixed for some default themes styles
34 > .nk-awb-inner > img,
35 > .nk-awb-inner > div,
36 > div {
37 width: 100%;
38 height: 100%;
39 object-fit: cover;
40 }
41 }
42
43 // Example.
44 .block-editor-inserter__preview .ghostkit-col-content .block-editor-block-list__layout {
45 margin-right: 0;
46 margin-left: 0;
47 }
48
49 // Fix for displaying block appender.
50 .block-editor-block-list__block .ghostkit-col-content > .block-list-appender .block-editor-inserter__toggle.components-button {
51 display: block;
52 }
53
54 // Layouts selector.
55 .ghostkit-select-layout {
56 padding: 25px;
57
58 .components-placeholder__fieldset > em {
59 margin-bottom: 25px;
60 }
61
62 .ghostkit-grid-layout-preview {
63 box-sizing: border-box;
64 display: flex;
65 flex-wrap: wrap;
66 // justify-content: center;
67 margin-right: -7px;
68 margin-left: -7px;
69
70 .ghostkit-grid-layout-preview-btn {
71 --gkt-grid__gap: 0%;
72
73 box-sizing: border-box;
74 display: flex;
75 width: 85px;
76 padding: 0;
77 margin-right: 7px;
78 margin-bottom: 14px;
79 margin-left: 7px;
80 overflow: hidden;
81 cursor: pointer;
82 background: none;
83 border: 2px solid rgba($dark-gray-500, 0.75);
84 border-radius: 4px;
85 transition: 0.15s border-color, 0.15s background-color;
86
87 .ghostkit-col {
88 box-sizing: border-box;
89 height: 40px;
90 border-right: 2px solid rgba($dark-gray-500, 0.75);
91 transition: 0.15s border-color;
92
93 &:last-of-type {
94 border-right: none;
95 }
96 }
97
98 &:hover,
99 &:focus {
100 background-color: #fff;
101 border-color: $dark-gray-500;
102
103 .ghostkit-col {
104 border-color: $dark-gray-500;
105 }
106 }
107 }
108 }
109
110 // templates button.
111 .components-button.is-primary {
112 height: 35px;
113 padding: 0 15px;
114 margin-top: 10px;
115 font-size: 14px;
116 }
117 }
118
119 // Background controls.
120 .ghostkit-background-controls {
121 > .components-panel__body > .components-panel__body {
122 border: 1px solid #e0e0e0;
123 }
124 }
125