styled list collections accordion in mobile

This commit is contained in:
jorge 2022-03-22 18:20:29 +01:00
parent 1becffc86d
commit 1eeac2565d
2 changed files with 29 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@ -286,24 +286,34 @@ main {
&.date::before {content:"Date";}
}
}
}
@include breakpoint(medium){
li {
&.title,&.curator,&.collection-name,&.date {
&::before {content: none;}
}
&.title {
@include xy-cell(4);
}
&.curator {
@include xy-cell(4);
}
&.collection-name {
@include xy-cell(2);
}
&.date {
@include xy-cell(shrink);
margin-left: auto; //aligns to right
@include breakpoint(medium){
li {
&.title,
&.curator,
&.collection-name,
&.date {
min-height:unset;
&::before {
content: none;
}
}
&.title::before {content:"";}
&.curator::before {content:"";}
&.collection-name::before {content:"";}
&.date::before {content:"";}
&.title {
@include xy-cell(4);
}
&.curator {
@include xy-cell(4);
}
&.collection-name {
@include xy-cell(2);
}
&.date {
@include xy-cell(shrink);
margin-left: auto; //aligns to right
}
}
}
}