PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.7.3
GenerateBlocks v1.7.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 3 years ago style-imports.js 5 years ago
editor.scss
186 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 10px 0 0;
32 }
33
34 .gblocks-control-tabs .components-tab-panel__tabs {
35 display: flex;
36 flex-wrap: wrap;
37 margin-bottom: 15px;
38 border-bottom: 1px solid #e8eaeb;
39 }
40
41 .gblocks-control-tabs .components-tab-panel__tabs button {
42 padding: 8px;
43 height: auto;
44 margin: 0;
45 margin-bottom: -1px;
46 cursor: pointer;
47 border: none;
48 border: 0;
49 border-radius: 0;
50 outline-offset: -1px;
51 flex: 1;
52 justify-content: center;
53 font-size: 11px;
54 font-weight: 400;
55
56 &.active-tab {
57 position: relative;
58 z-index: 1;
59 background: #222 !important;
60 color: #fff !important;
61 box-shadow: 0 0 0 !important;
62 }
63 }
64
65 .gblocks-block-control-icon svg {
66 margin-right: 0 !important;
67 margin-left: 0 !important;
68 padding: 2px;
69 }
70
71 .gblocks-block-control-icon.gblocks-add-grid-item svg {
72 padding: 0;
73 }
74
75 .gblocks-block-control-icon svg path {
76 fill: inherit;
77 }
78
79 .gblocks-option-notice.components-notice {
80 margin: 0 0 24px;
81
82 .components-notice__content {
83 margin: 5px;
84 }
85 }
86
87 .gblocks-small-notice-description {
88 font-size: 12px;
89 color: #777;
90 margin-bottom: 10px;
91 }
92
93 .gblocks-utility-label {
94 display: flex;
95 align-items: flex-end;
96 margin-bottom: 5px;
97
98 label {
99 margin-right: auto;
100 }
101
102 .components-button {
103 height: auto;
104 justify-content: center !important;
105 margin-left: 5px;
106 min-width: auto;
107 padding: 0 6px;
108
109 &.gblocks-reset-button {
110 svg {
111 height: 20px;
112 width: 20px;
113 }
114 }
115
116 &:last-child {
117 margin-right: -5px;
118 }
119
120 svg {
121 margin-right: 0 !important;
122 height: 13px;
123 width: 13px;
124 }
125 }
126 }
127
128 .wp-block.gb-is-root-block {
129 margin-top: 0;
130 margin-bottom: 0;
131 position: relative;
132 }
133
134 .gblocks-block-icon {
135 path {
136 fill: #1e72bd;
137 }
138 }
139
140 .block-editor-list-view-leaf.is-selected .gblocks-block-icon path {
141 fill: currentColor;
142 }
143
144 .gblocks-action-panel {
145 padding: 0 !important;
146
147 .components-panel__body-title {
148 margin: 0 !important;
149 }
150
151 .components-panel__arrow path {
152 transform: rotate(90deg);
153 transform-origin: center;
154 }
155 }
156
157 /**
158 * This is a fix for GP Premium < 2.2.0.
159 * @todo Remove in GB 1.6.0.
160 */
161 .post-type-gp_elements {
162 .wp-block {
163 max-width: none;
164 }
165 }
166
167 .gblocks-flex-button-group {
168 display: flex;
169
170 button {
171 flex-grow: 1;
172 display: flex;
173 justify-content: center;
174 font-size: 12px;
175
176 &.is-inherited {
177 background: rgba(0,0,0,0.07);
178 }
179
180 svg {
181 width: 15px;
182 }
183 }
184 }
185
186