mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Nicer pattern for showing list view of pages
This commit is contained in:
parent
bb2cb3d487
commit
76d3fb80e3
4
admin/client/dist/styles/bundle.css
vendored
4
admin/client/dist/styles/bundle.css
vendored
@ -15350,11 +15350,11 @@ div.grid-field__sort-field+.form__fieldgroup-item{
|
||||
}
|
||||
|
||||
@media (max-width:767px){
|
||||
:not(div.cms-list) .grid-field__table td,:not(div.cms-list) .grid-field__table th{
|
||||
.grid-field__table td,.grid-field__table th{
|
||||
display:none;
|
||||
}
|
||||
|
||||
:not(div.cms-list) .grid-field__table td.grid-field__action-placeholder,:not(div.cms-list) .grid-field__table td.grid-field__cell--actions,:not(div.cms-list) .grid-field__table td:first-child,:not(div.cms-list) .grid-field__table th.grid-field__action-placeholder,:not(div.cms-list) .grid-field__table th.grid-field__cell--actions,:not(div.cms-list) .grid-field__table th:first-child{
|
||||
.cms-list .grid-field__table td,.cms-list .grid-field__table th,.grid-field__table td.grid-field__action-placeholder,.grid-field__table td.grid-field__cell--actions,.grid-field__table td:first-child,.grid-field__table th.grid-field__action-placeholder,.grid-field__table th.grid-field__cell--actions,.grid-field__table th:first-child{
|
||||
display:table-cell;
|
||||
}
|
||||
}
|
||||
|
@ -241,20 +241,19 @@ div.grid-field__sort-field + .form__fieldgroup-item {
|
||||
|
||||
// Responsive grid-field
|
||||
// Todo: add .text-truncate for overflowing cells
|
||||
:not(div.cms-list) {
|
||||
@include media-breakpoint-down(sm) {
|
||||
.grid-field__table td,
|
||||
.grid-field__table th {
|
||||
display: none;
|
||||
@include media-breakpoint-down(sm) {
|
||||
.grid-field__table td,
|
||||
.grid-field__table th {
|
||||
display: none;
|
||||
|
||||
&:first-child {
|
||||
display: table-cell;
|
||||
}
|
||||
&:first-child,
|
||||
.cms-list & {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
&.grid-field__cell--actions,
|
||||
&.grid-field__action-placeholder {
|
||||
display: table-cell;
|
||||
}
|
||||
&.grid-field__cell--actions,
|
||||
&.grid-field__action-placeholder {
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user