Skip to content

Commit

Permalink
updates styles and add class if no actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lory87 committed Jan 5, 2016
1 parent ee08b4f commit cd374b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions djangocms_admin_style/sass/components/_changelist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@
}
#toolbar {
overflow: hidden;
float: left;
height: auto;
min-height: 30px;
padding-left: 0;
margin: 0 30px 5px 0 !important;
margin: 0 30px 10px 0 !important;
border: 0 !important;
background: none !important;
form label {
Expand All @@ -148,6 +147,10 @@
vertical-align: middle;
box-sizing: border-box;
}
&.actions-visible {
float: left;
margin-bottom: 5px !important;
}
}
#changelist-filter {
// resets position to float filter next to changelist
Expand Down

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions djangocms_admin_style/static/js/base-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
if ($.fn.touchSupport && $('.drag-handler').length) {
$(window).touchSupport();
}
// floats toolbar if actions are disabled #275, #285
if ($('#changelist-form').find('.actions').length) {
$('#toolbar').addClass('actions-visible');
}
});
})(window.jQuery || window.django.jQuery);
}
Expand Down

0 comments on commit cd374b7

Please sign in to comment.