Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wp-shortcake/shortcake into set-a…
Browse files Browse the repository at this point in the history
…ctive-editor
  • Loading branch information
mattheu committed Jul 13, 2017
2 parents 25577fe + a511299 commit db25c16
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
13 changes: 4 additions & 9 deletions css/sass/_select2-fields.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.edit-shortcode-form {
.select2-container {
z-index: 160000; // Make sure Select2 UI is visible above media modal
width: 300px;
min-width: 300px;
}

Expand All @@ -8,7 +10,8 @@
-webkit-transition: none;
}

.select2-drop {
.select2-dropdown {
transform: translateY(-2px); // Account for container border radius in select2--default theme
z-index: 160001;
}

Expand Down Expand Up @@ -40,11 +43,3 @@

}

.select2-container {
z-index: 160000; // Make sure Select2 UI is visible above media modal
max-width: 300px;
}

.select2-results li {
margin: 0;
}
13 changes: 5 additions & 8 deletions css/shortcode-ui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/shortcode-ui.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/build/shortcode-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
var $fieldSelect2 = $field[ shortcodeUIData.select2_handle ]({
placeholder: "Search",
multiple: this.model.get( 'multiple' ),
dropdownParent: this.$el,

ajax: {
url: ajaxurl,
Expand Down
1 change: 1 addition & 0 deletions js/src/views/select2-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ sui.views.editAttributeSelect2Field = sui.views.editAttributeField.extend( {
var $fieldSelect2 = $field[ shortcodeUIData.select2_handle ]({
placeholder: "Search",
multiple: this.model.get( 'multiple' ),
dropdownParent: this.$el,

ajax: {
url: ajaxurl,
Expand Down

0 comments on commit db25c16

Please sign in to comment.