move the list-filter sticky related style back to be in admin-interface.css

as it was there before moving files from templates to static css
pull/157/head
Mustafa M. A. U. AbuGhazy 2022-03-08 19:12:22 +02:00
parent 809c39a9ff
commit a68094ff10
2 changed files with 17 additions and 15 deletions

View File

@ -343,6 +343,23 @@
color: var(--admin-interface-generic-link-hover-color);
}
/* list-filter sticky */
@media (min-width: 768px) {
.admin-interface.list-filter-sticky .module.filtered #changelist-filter {
position: sticky;
top: 40px;
float: right;
z-index: 30;
}
/* feature not available for django < 3.1.2 */
.admin-interface.list-filter-sticky .module.filtered #toolbar + #changelist-filter {
position: absolute;
top: 0px;
z-index: 30;
}
}
.admin-interface .module.filtered #changelist-filter {
border-bottom-left-radius: var(--admin-interface-module-border-radius);
border-bottom-right-radius: var(--admin-interface-module-border-radius);

View File

@ -31,21 +31,6 @@
padding-left: 30px;
padding-right: 30px;
}
/* list-filter sticky */
.admin-interface.list-filter-sticky .module.filtered #changelist-filter {
position: sticky;
top: 40px;
float: right;
z-index: 30;
}
/* feature not available for django < 3.1.2 */
.admin-interface.list-filter-sticky .module.filtered #toolbar + #changelist-filter {
position: absolute;
top: 0px;
z-index: 30;
}
}
@media (min-width:1024px) {