-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Edit Block' UI: Render block field #41
Changes from all commits
3cc9526
fc98011
e5549f1
b39fd68
97be468
59e1b3d
2ec2163
b78a4aa
b9e33af
638ae1b
f8f63c0
5095b49
b675d4a
df5a2d8
d95126e
9f80373
66f1737
8fc2f1f
58e159b
f698fcb
08cd47d
b4847a8
b5bd589
acefbf8
6755d81
b81b8bc
bac3618
1fb89d5
b5f8247
cff2a35
344f8db
5244d15
7a6cc09
7ef7407
342a3cf
ec6c0a3
5a15cb7
e23a8bd
2392f1f
a0d9709
c4d34a5
405eb32
d99c814
d2e9c7d
ed8edbf
daca558
65649b5
22ee898
9753e36
8b06771
f7d5354
c1ddbac
f67c414
fb14ec5
11b4614
c8d17c4
5c8b60c
f82e1cf
637868b
3d70d3a
ca87e11
faa5b8f
be83fa5
d223288
c3b765c
c317daf
5c49da3
44f4812
b185577
5f430e9
f781eee
2e5cbc4
c6171f5
4284915
a82cd7d
4a4a73e
5d5966a
894bd35
34e1ef1
fb1162c
cc55f34
1a6bf4c
9c2bc6f
f980745
a261bc8
2b3d5d0
8678e37
ac1d1f5
f5c1e0e
cba0cbc
7d9ed57
4f44e1e
7cac910
dd91c17
cc21883
f1c7e25
3aee059
ef0a468
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
js/editor.blocks.js | ||
js/dist/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | ||
} | ||
|
||
input[type="radio"]:checked + div { | ||
border-color: rgb(0, 124, 186); | ||
} | ||
|
||
.side { | ||
width: 280px; | ||
} | ||
|
||
.side input[type="checkbox"] { | ||
display: block; | ||
margin-top: 0.5rem; | ||
} | ||
|
||
.field-resize { | ||
cursor: col-resize; | ||
} | ||
|
||
.block-title-field { | ||
font-size: 2rem; | ||
} | ||
|
||
.repeater-insert-row button { | ||
display: none; | ||
} | ||
|
||
.repeater-insert-row:hover button { | ||
display: flex; | ||
} | ||
|
||
.repeater-row__move:after { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
height: 300%; | ||
width: 2.5rem; | ||
top: -.5rem; | ||
right: -.5rem; | ||
/* border:1px solid red; */ | ||
} | ||
|
||
.repeater-row__delete-duplicate, | ||
.repeater-row__move { | ||
display: none; | ||
} | ||
|
||
.repeater-row:hover .repeater-row__delete-duplicate, | ||
.repeater-row:hover .repeater-row__move { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of these rules aren't for actual elements now, they'll be added in upcoming PRs. |
||
display: flex; | ||
} | ||
|
||
.toggle-field:after { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
height: 14px; | ||
width: 14px; | ||
background-color: #000; | ||
border-radius: 8px; | ||
top: 2px; | ||
left: 3px; | ||
} | ||
|
||
.toggle-field:checked { | ||
border-color: #3182ce; | ||
background-color: #3182ce; | ||
} | ||
|
||
.toggle-field:checked:after { | ||
background-color: #fff; | ||
left: auto; | ||
right: 3px; | ||
} | ||
|
||
.gcb-setting-width button.active { | ||
background-color: #bee3f8; | ||
} | ||
|
||
.editor-post-title__input { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
|
||
#save-and-publish { | ||
margin-left: auto; | ||
} | ||
|
||
#wpfooter { | ||
display: none; | ||
} | ||
|
||
/* Forked from Gutenberg */ | ||
.editor-post-title .editor-post-title__input:focus { | ||
border: 1px solid transparent; | ||
outline: 1px solid transparent; | ||
box-shadow: none; | ||
} | ||
|
||
.components-visually-hidden { | ||
border: 0; | ||
clip: rect(1px, 1px, 1px, 1px); | ||
-webkit-clip-path: inset(50%); | ||
clip-path: inset(50%); | ||
height: 1px; | ||
margin: -1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
width: 1px; | ||
word-wrap: normal !important; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,7 +140,7 @@ class TinyMCE extends Component { | |
const rootNode = this.editor.getBody(); | ||
|
||
// Create the toolbar by refocussing the editor. | ||
if ( document.activeElement === rootNode ) { | ||
if ( document.activeElement === rootNode ) { // eslint-disable-line @wordpress/no-global-active-element | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eventually, we might need a better solution |
||
rootNode.blur(); | ||
this.editor.focus(); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import React from 'react'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Helps with the TypeScript checking |
||
|
||
/** | ||
* WordPress dependencies | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 5c8b60c, as it's not practical to skip PHPUnit tests if this PR also includes PHP changes