search results sorting #804, better transitions between succesive searches

This commit is contained in:
2020-07-26 00:18:07 +02:00
parent 57e869bfd5
commit 3ed132147c
5 changed files with 200 additions and 45 deletions
+24 -3
View File
@@ -529,13 +529,13 @@ section[role="main-content"]{
}
footer[role="tools"]{
$list-item-h: 5em;
$list-item-h: 7em;
@mixin resultItem{
box-sizing: border-box;
// we are only on 10 colls as 2 are occupied by sides
flex-basis: percentage(2/($default_sum - 2));
height: $list-item-h;
max-height: $list-item-h;
overflow: hidden;
padding-bottom: 1em;
padding-right: $default_gap;
@@ -602,7 +602,7 @@ footer[role="tools"]{
z-index: 9;
background-color: $gris;
padding:1.2em $side-padding;
max-height: $list-item-h * 5;
max-height: $list-item-h * 3;
@include accordeon-transition($list-item-h * 3);
>header{
.search-keys{
@@ -636,6 +636,17 @@ footer[role="tools"]{
// TODO: how to center the loading
}
}
>header, section.results-list{
transition: opacity 0.2s ease-in-out;
}
&.loading {
>header, section.results-list{
transition: opacity 0.5s ease-in-out;
opacity:0.5;
pointer-events: none;
}
}
}
#footer-bottom{
z-index: 10;
@@ -740,6 +751,16 @@ footer[role="tools"]{
padding-top:0.2em;
}
}
form{
transition: opacity 0.2s ease-in-out;
}
&.loading{
form{
opacity:0.5;
transition: opacity 0.5s ease-in-out;
pointer-events: none;
}
}
}
}
h2{