Compare commits

...

21 Commits

Author SHA1 Message Date
jorge 41eb169bfb Merge pull request 'fix/issue53-backgrond-collections' (#55) from fix/issue53-backgrond-collections into main
Reviewed-on: #55
2022-03-22 19:57:20 +01:00
jorge e0f66c0354 Merge branch 'main' into fix/issue53-backgrond-collections 2022-03-22 19:54:18 +01:00
jorge 89a8e0f283 changed gitignore 2022-03-22 19:50:55 +01:00
jorge 0789c1d099 styled accordion content 2022-03-22 19:43:17 +01:00
jorge 7b7b4ed205 styled accordion content 2022-03-22 19:42:06 +01:00
jorge b62eb95edc styled accordion content 2022-03-22 19:35:51 +01:00
jorge c3034c2eb4 styled accordion content 2022-03-22 19:28:56 +01:00
jorge 4aef2d6def styled accordion content 2022-03-22 19:22:31 +01:00
jorge 72a07b8171 styled list collections accordion in mobile 2022-03-22 19:09:41 +01:00
jorge e496fbd184 styled list collections accordion in mobile 2022-03-22 19:01:48 +01:00
jorge 90569410e0 styled list collections accordion in mobile 2022-03-22 18:58:46 +01:00
jorge 7ab2aaeec5 styled list collections accordion in mobile 2022-03-22 18:40:50 +01:00
jorge 1eeac2565d styled list collections accordion in mobile 2022-03-22 18:20:29 +01:00
jorge 1becffc86d styled list collections accordion in mobile 2022-03-22 18:09:06 +01:00
jorge 653702bca2 styled list collections accordion in mobile 2022-03-22 17:51:15 +01:00
jorge 7feb22d1d3 styled list collections accordion in mobile 2022-03-22 17:45:13 +01:00
jorge 4bd15a3b05 styled list collections accordion in mobile 2022-03-22 17:38:55 +01:00
jorge 47107fafd0 styled list collections accordion in mobile 2022-03-22 17:33:57 +01:00
jorge 025542eab0 styled list collections accordion in mobile 2022-03-22 17:26:37 +01:00
jorge 4f470ec681 styled list collections accordion in mobile 2022-03-22 17:20:14 +01:00
jorge a16a30f70c mod list collections accordion in mobile 2022-03-22 17:12:16 +01:00
3 changed files with 132 additions and 67 deletions

3
.gitignore vendored
View File

@ -2,5 +2,6 @@
bower_components
node_modules
npm-debug.log
_
index*
index.html
index*.html

File diff suppressed because one or more lines are too long

View File

@ -240,21 +240,24 @@ main {
flex-direction: column;
align-items: center;
}
// accordion for colletions list
.accordion-item {
&:not(.title).is-active {
background-color:$input-background;
}
}
&.title {
.accordion-title {
ul,ol{
}
@include breakpoint(small){
li {
&.title,
&.curator,
&.collection-name,
@include xy-cell(3);
@include xy-cell-offset(0);
&.title,&.curator,&.collection-name,&.date {
&::before {content: none;}
}
&.date {
@include xy-cell(auto);
margin-left: auto;
}
.ascToggle{
position:absolute;
padding-left: 0.21rem;
}
}
}
@ -276,22 +279,81 @@ main {
}
}
}
}
&:not(.title){
&.is-active {
background-color:$input-background;
}
.accordion-title {
@include breakpoint(small){
li {
&.title,
&.curator,
&.collection-name,
&.date {
@include xy-cell(10);
@include xy-cell-offset(2);
min-height: 1rem;
&::before {
display: inline-block;
color: $medium-gray;
position: absolute;
left:0;
}
}
&.title::before {content:"Title";}
&.curator::before {content:"Artist";}
&.collection-name::before {content:"Collection";}
&.date::before {content:"Date";}
}
}
@include breakpoint(medium){
li {
&.title,
&.curator,
&.collection-name,
&.date {
min-height:unset;
&::before {
content: none;
// 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
}
}
}
}
}
.accordion-title {
ul,ol {
margin: 0;
}
}
.accordion-content {
padding-top: 0;
section {
@include xy-grid;
padding-top: 0;
padding-bottom: 0;
@include breakpoint(small){
padding: 0;
figure {
@include xy-cell(12);
margin-left:0;
margin-right:0;
}
p {
@include xy-cell(12);
position: relative;
padding: $global-padding;
padding-top: $global-padding * 1;
padding-bottom: $global-padding * 3;
.button {
position:absolute;
@ -303,16 +365,18 @@ main {
@include breakpoint(medium){
figure {
@include xy-cell(4);
margin-left: 0;
@include xy-gutters;
}
p {
@include xy-cell(8);
padding-top: 0;
}
}
@include breakpoint(large){
}
}
}
}
}
// end collections category