PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.8.3
GenerateBlocks v1.8.3
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / shared / editor.scss
generateblocks / src / shared Last commit date
editor.scss 2 years ago style-imports.js 5 years ago
editor.scss
187 lines
1 /**
2 * Shared editor styles among all the blocks.
3 */
4
5 .gblocks-notice {
6 margin-bottom: 20px;
7 }
8
9 .gblocks-panel-label {
10 .components-panel__body-toggle.components-button {
11 display: flex;
12 flex-direction: row-reverse;
13 justify-content: flex-end;
14 }
15
16 .gblocks-panel-label {
17 border: 0;
18 background-color: #fafafa;
19
20 .components-panel__body-toggle {
21 padding: 10px;
22 }
23 }
24
25 .components-panel__icon {
26 color: currentColor;
27 }
28 }
29
30 .gblocks-panel-label svg.components-panel__icon {
31 margin: 0;
32 margin-inline-end: 10px;
33 }
34
35 .gblocks-control-tabs .components-tab-panel__tabs {
36 display: flex;
37 flex-wrap: wrap;
38 margin-bottom: 15px;
39 border-bottom: 1px solid #e8eaeb;
40 }
41
42 .gblocks-control-tabs .components-tab-panel__tabs button {
43 padding: 8px;
44 height: auto;
45 margin: 0;
46 margin-bottom: -1px;
47 cursor: pointer;
48 border: none;
49 border: 0;
50 border-radius: 0;
51 outline-offset: -1px;
52 flex: 1;
53 justify-content: center;
54 font-size: 11px;
55 font-weight: 400;
56
57 &.active-tab {
58 position: relative;
59 z-index: 1;
60 background: #222 !important;
61 color: #fff !important;
62 box-shadow: 0 0 0 !important;
63 }
64 }
65
66 .gblocks-block-control-icon svg {
67 margin-right: 0 !important;
68 margin-left: 0 !important;
69 padding: 2px;
70 }
71
72 .gblocks-block-control-icon.gblocks-add-grid-item svg {
73 padding: 0;
74 }
75
76 .gblocks-block-control-icon svg path {
77 fill: inherit;
78 }
79
80 .gblocks-option-notice.components-notice {
81 margin: 0 0 24px;
82
83 .components-notice__content {
84 margin: 5px;
85 }
86 }
87
88 .gblocks-small-notice-description {
89 font-size: 12px;
90 color: #777;
91 margin-bottom: 10px;
92 }
93
94 .gblocks-utility-label {
95 display: flex;
96 align-items: flex-end;
97 margin-bottom: 5px;
98
99 label {
100 margin-right: auto;
101 }
102
103 .components-button {
104 height: auto;
105 justify-content: center !important;
106 margin-left: 5px;
107 min-width: auto;
108 padding: 0 6px;
109
110 &.gblocks-reset-button {
111 svg {
112 height: 20px;
113 width: 20px;
114 }
115 }
116
117 &:last-child {
118 margin-right: -5px;
119 }
120
121 svg {
122 margin-right: 0 !important;
123 height: 13px;
124 width: 13px;
125 }
126 }
127 }
128
129 .wp-block.gb-is-root-block {
130 margin-top: 0;
131 margin-bottom: 0;
132 position: relative;
133 }
134
135 .gblocks-block-icon {
136 path {
137 fill: #1e72bd;
138 }
139 }
140
141 .block-editor-list-view-leaf.is-selected .gblocks-block-icon path {
142 fill: currentColor;
143 }
144
145 .gblocks-action-panel {
146 padding: 0 !important;
147
148 .components-panel__body-title {
149 margin: 0 !important;
150 }
151
152 .components-panel__arrow path {
153 transform: rotate(90deg);
154 transform-origin: center;
155 }
156 }
157
158 /**
159 * This is a fix for GP Premium < 2.2.0.
160 * @todo Remove in GB 1.6.0.
161 */
162 .post-type-gp_elements {
163 .wp-block {
164 max-width: none;
165 }
166 }
167
168 .gblocks-flex-button-group {
169 display: flex;
170
171 button {
172 flex-grow: 1;
173 display: flex;
174 justify-content: center;
175 font-size: 12px;
176
177 &.is-inherited {
178 background: rgba(0,0,0,0.07);
179 }
180
181 svg {
182 width: 15px;
183 }
184 }
185 }
186
187