-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from WordPress/tinymce-single/mimic-ui-prototype
Show block UI on focus, hide on type.
- Loading branch information
Showing
11 changed files
with
413 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
window.wp.blocks.register( { | ||
name: 'gallery', | ||
namespace: 'core', | ||
type: 'image', | ||
keywords: [], | ||
icon: 'gridicons-image', | ||
buttons: [ | ||
'block-align-left', | ||
'block-align-center', | ||
'block-align-right', | ||
// { | ||
// type: 'select', | ||
// label: 'Columns' | ||
// }, | ||
// { | ||
// type: 'button', | ||
// label: 'Columns', | ||
// icon: 'gridicons-image', | ||
// command: function( editor, node ) { | ||
// // body... | ||
// } | ||
// }, | ||
'block-options' | ||
] | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#editor figure[data-wp-block-type="core:gallery"] { | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: space-between; | ||
width: auto; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"].aligncenter { | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"].alignleft { | ||
float: left; | ||
margin: 0.5em 1em 0.5em 0; | ||
width: 50%; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"].alignright { | ||
float: right; | ||
margin: 0.5em 0 0.5em 1em; | ||
width: 50%; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"] figure { | ||
margin: 0; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"][data-wp-block-setting-column="2"] figure { | ||
width: 43%; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"][data-wp-block-setting-column="3"] figure { | ||
width: 32%; | ||
} | ||
|
||
#editor figure[data-wp-block-type="core:gallery"][data-wp-block-setting-column="4"] figure { | ||
width: 24%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.