@secretstache/wordpress-gutenberg 0.4.10 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
package/build/styles.css CHANGED
@@ -17,14 +17,14 @@
17
17
  .editor-visual-editor:not(.is-resizable) .editor-styles-wrapper::after {
18
18
  display: none; }
19
19
 
20
- .is-root-container {
20
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container {
21
21
  margin-bottom: 0;
22
22
  padding-bottom: 0; }
23
- .is-root-container .bc-image-wrapper {
23
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper {
24
24
  position: relative;
25
25
  height: auto;
26
26
  align-self: start; }
27
- .is-root-container .bc-image-wrapper__actions {
27
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper__actions {
28
28
  display: none;
29
29
  position: absolute;
30
30
  top: 0;
@@ -38,9 +38,9 @@
38
38
  padding: 5px 15px;
39
39
  z-index: 20; }
40
40
  @media screen and (max-width: 768px) {
41
- .is-root-container .bc-image-wrapper__actions {
41
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper__actions {
42
42
  gap: 15px; } }
43
- .is-root-container .bc-image-wrapper__btn {
43
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper__btn {
44
44
  font-size: 14px !important;
45
45
  backdrop-filter: blur(16px) saturate(180%);
46
46
  background: rgba(255, 255, 255, 0.75);
@@ -48,9 +48,9 @@
48
48
  justify-content: center;
49
49
  max-width: 130px; }
50
50
  @media screen and (max-width: 768px) {
51
- .is-root-container .bc-image-wrapper__btn {
51
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper__btn {
52
52
  padding: 5px; } }
53
- .is-root-container .bc-image-wrapper__overlay {
53
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper__overlay {
54
54
  display: none;
55
55
  position: absolute;
56
56
  top: 0;
@@ -60,17 +60,17 @@
60
60
  z-index: 10;
61
61
  background: rgba(255, 255, 255, 0.3);
62
62
  backdrop-filter: blur(3px); }
63
- .is-root-container .bc-image-wrapper:hover .bc-image-wrapper__actions {
63
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper:hover .bc-image-wrapper__actions {
64
64
  display: flex; }
65
- .is-root-container .bc-image-wrapper:hover .bc-image-wrapper__overlay {
65
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-image-wrapper:hover .bc-image-wrapper__overlay {
66
66
  display: block; }
67
- .is-root-container .root-block-appender {
67
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .root-block-appender {
68
68
  position: absolute;
69
69
  bottom: 30px;
70
70
  left: 50%;
71
71
  transform: translateX(-50%);
72
72
  width: calc(100% - var(--content-padding) * 2); }
73
- .is-root-container .root-block-appender::after {
73
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .root-block-appender::after {
74
74
  content: attr(data-tooltip);
75
75
  position: absolute;
76
76
  left: 50%;
@@ -91,12 +91,12 @@
91
91
  padding: 4px 8px;
92
92
  text-align: center;
93
93
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif; }
94
- .is-root-container .root-block-appender:hover::after {
94
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .root-block-appender:hover::after {
95
95
  visibility: visible;
96
96
  opacity: 1; }
97
- .is-root-container .root-block-appender ~ .block-list-appender.wp-block {
97
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .root-block-appender ~ .block-list-appender.wp-block {
98
98
  display: none; }
99
- .is-root-container .empty-block-appender {
99
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender {
100
100
  --button-color: #192f5f;
101
101
  --button-border: var(--button-color);
102
102
  --button-hover-color: var(--wp-admin-theme-color);
@@ -107,25 +107,25 @@
107
107
  align-items: center;
108
108
  justify-content: center;
109
109
  padding: 32px; }
110
- .is-root-container .empty-block-appender__content {
110
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__content {
111
111
  text-align: center; }
112
- .is-root-container .empty-block-appender__icon {
112
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__icon {
113
113
  width: 48px;
114
114
  height: 48px;
115
115
  color: var(--button-color);
116
116
  margin-bottom: 16px; }
117
- .is-root-container .empty-block-appender__title {
117
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__title {
118
118
  font-size: 32px;
119
119
  font-weight: 600;
120
120
  line-height: 110%;
121
121
  color: var(--button-color);
122
122
  margin-bottom: 0.5rem; }
123
- .is-root-container .empty-block-appender__text {
123
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__text {
124
124
  font-size: 1rem;
125
125
  font-weight: 400;
126
126
  color: var(--button-color);
127
127
  margin-bottom: 1.5rem; }
128
- .is-root-container .empty-block-appender__button .block-editor-button-block-appender {
128
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender {
129
129
  display: inline-flex;
130
130
  justify-content: center;
131
131
  align-items: center;
@@ -141,29 +141,43 @@
141
141
  color: var(--button-color);
142
142
  font-weight: 600;
143
143
  font-size: 22px; }
144
- .is-root-container .empty-block-appender__button .block-editor-button-block-appender:hover, .is-root-container .empty-block-appender__button .block-editor-button-block-appender:focus {
144
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender:hover, .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender:focus {
145
145
  color: var(--button-hover-color);
146
146
  border-color: var(--button-hover-border) !important;
147
147
  outline: none !important;
148
148
  box-shadow: none !important; }
149
- .is-root-container .empty-block-appender__button .block-editor-button-block-appender::before, .is-root-container .empty-block-appender__button .block-editor-button-block-appender::after {
149
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender::before, .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender::after {
150
150
  display: none !important; }
151
- .is-root-container .empty-block-appender__button .block-editor-button-block-appender .block-editor-button-block-appender__content {
151
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .empty-block-appender__button .block-editor-button-block-appender .block-editor-button-block-appender__content {
152
152
  display: flex;
153
153
  align-items: center;
154
154
  justify-content: center;
155
155
  width: 24px;
156
156
  height: 24px; }
157
- .is-root-container:has(.root-block-appender) {
157
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .bc-add-new-child-btn {
158
+ display: flex;
159
+ margin: 20px auto !important;
160
+ align-items: center;
161
+ flex-direction: column;
162
+ height: 50px;
163
+ justify-content: center;
164
+ width: 100%;
165
+ user-select: text;
166
+ font-family: inherit;
167
+ font-size: 100%;
168
+ padding: 12px !important;
169
+ box-shadow: inset 0 0 0 1px #1e1e1e;
170
+ color: #1e1e1e; }
171
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container:has(.root-block-appender) {
158
172
  margin-bottom: 3rem;
159
173
  padding-bottom: 200px; }
160
- .is-root-container.has-background {
174
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container.has-background {
161
175
  transition: background 1s, color 1s; }
162
- .is-root-container > .block-list-appender.wp-block:only-child p {
176
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .block-list-appender.wp-block:only-child p {
163
177
  margin-top: 0;
164
178
  margin-bottom: 0; }
165
- .is-root-container > .block-list-appender.wp-block:only-child,
166
- .is-root-container > p.wp-block:only-child {
179
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .block-list-appender.wp-block:only-child,
180
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > p.wp-block:only-child {
167
181
  margin: 2rem 0; }
168
182
 
169
183
  .editor-sidebar .bc-url-input input {
@@ -253,21 +267,6 @@
253
267
  .editor-sidebar .bc-spacing-range-control .components-base-control__help {
254
268
  margin-left: -11px; }
255
269
 
256
- .editor-sidebar .bc-add-new-child-btn {
257
- display: flex;
258
- margin: 20px auto !important;
259
- align-items: center;
260
- flex-direction: column;
261
- height: 50px;
262
- justify-content: center;
263
- width: 100%;
264
- user-select: text;
265
- font-family: inherit;
266
- font-size: 100%;
267
- padding: 12px !important;
268
- box-shadow: inset 0 0 0 1px #1e1e1e;
269
- color: #1e1e1e; }
270
-
271
270
  .block-editor-block-types-list > [role=presentation] {
272
271
  justify-content: center; }
273
272
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretstache/wordpress-gutenberg",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "",
5
5
  "author": "Secret Stache",
6
6
  "license": "GPL-2.0-or-later",
@@ -32,10 +32,11 @@
32
32
  }
33
33
  }
34
34
 
35
- .is-root-container {
35
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container {
36
36
  @import "image-wrapper";
37
37
  @import "root-block-appender";
38
38
  @import "empty-block-appender";
39
+ @import "new-child-btn";
39
40
 
40
41
  margin-bottom: 0;
41
42
  padding-bottom: 0;
@@ -71,7 +72,6 @@
71
72
  @import "media-picker";
72
73
  @import "sortable-select";
73
74
  @import "responsive-spacing";
74
- @import "new-child-btn";
75
75
  }
76
76
 
77
77
  .block-editor-block-types-list > [role=presentation] {