TinyMCE, inline link: Make styles for the autocomplete results available on front end.

Also, replace the generic `.alignright` class with a more specific class to avoid styling issues with themes which have padding/margin attached to `.alignright`.

Props azaozz, imath.
Fixes #36461.
Built from https://develop.svn.wordpress.org/trunk@37174


git-svn-id: http://core.svn.wordpress.org/trunk@37141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-04-11 15:12:29 +00:00
parent a116d786a5
commit 12599ea170
8 changed files with 47 additions and 7 deletions

View File

@ -1783,11 +1783,31 @@ div.wp-link-input input {
z-index: 100110;
max-height: 200px;
overflow-y: auto;
padding: 0;
margin: 0;
list-style: none;
position: absolute;
border: 1px solid #5b9dd9;
-webkit-box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
background-color: #fff;
}
.wplink-autocomplete li {
.ui-autocomplete.wplink-autocomplete li {
margin-bottom: 0;
padding: 4px 10px;
clear: both;
white-space: normal;
text-align: right;
}
.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right {
float: left;
}
.ui-autocomplete.wplink-autocomplete li.ui-state-focus {
background-color: #ddd;
cursor: pointer;
}
@media screen and ( max-width: 782px ) {

File diff suppressed because one or more lines are too long

View File

@ -1783,11 +1783,31 @@ div.wp-link-input input {
z-index: 100110;
max-height: 200px;
overflow-y: auto;
padding: 0;
margin: 0;
list-style: none;
position: absolute;
border: 1px solid #5b9dd9;
-webkit-box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
box-shadow: 0 1px 2px rgba( 30, 140, 190, 0.8 );
background-color: #fff;
}
.wplink-autocomplete li {
.ui-autocomplete.wplink-autocomplete li {
margin-bottom: 0;
padding: 4px 10px;
clear: both;
white-space: normal;
text-align: left;
}
.ui-autocomplete.wplink-autocomplete li .wp-editor-float-right {
float: right;
}
.ui-autocomplete.wplink-autocomplete li.ui-state-focus {
background-color: #ddd;
cursor: pointer;
}
@media screen and ( max-width: 782px ) {

File diff suppressed because one or more lines are too long

View File

@ -420,7 +420,7 @@
}
} ).autocomplete( 'instance' )._renderItem = function( ul, item ) {
return $( '<li role="option" id="mce-wp-autocomplete-' + item.ID + '">' )
.append( '<span>' + item.title + '</span>&nbsp;<span class="alignright">' + item.info + '</span>' )
.append( '<span>' + item.title + '</span>&nbsp;<span class="wp-editor-float-right">' + item.info + '</span>' )
.appendTo( ul );
};

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-RC2-37173';
$wp_version = '4.5-RC2-37174';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.