Skip to content
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

tinymce-single: add image animations similar to main prototype #135

Merged
merged 1 commit into from
Feb 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shared/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ body {
}

#editor figure {
float: none;
margin: 0;
width: 100%;
transition: margin 0.5s, width 0.5s;
}

#editor figure.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
Expand Down
10 changes: 4 additions & 6 deletions tinymce-single/tinymce/block.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ div.mce-inline-toolbar-grp {
max-width: 98%;
}

div.mce-inline-toolbar-grp:not(.block-toolbar) {
transition: all 0.5s;
}

div.wp-link-preview {
float: left;
max-width: 694px;
Expand All @@ -200,12 +204,6 @@ div.wp-link-preview a {
font-size: 16px;
padding: 9px;
text-decoration: underline;
-webkit-transition-property: border, background, color;
transition-property: border, background, color;
-webkit-transition-duration: .05s;
transition-duration: .05s;
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
cursor: pointer;
}

Expand Down
4 changes: 4 additions & 0 deletions tinymce-single/tinymce/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@
top: elementRect.top + window.pageYOffset - toolbarRect.height - 8 + 'px'
})

setTimeout( function() {
editor.nodeChanged();
}, 500 );

this.show()
}

Expand Down