added vue-infinite-loading loading to base search results

This commit is contained in:
2019-06-12 12:16:15 +02:00
parent a771fd9d74
commit 7acac41863
10 changed files with 142 additions and 21 deletions

View File

@@ -1154,3 +1154,50 @@ article.node--type-frontpage .node__content .field--name-computed-articles-refer
vertical-align: top;
max-width: 250px; }
.cards-list > ul {
margin: 0;
padding: 0; }
.cards-list > ul > li {
list-style: none;
margin: 0 1em 1em 0;
padding: 0;
display: inline-block;
vertical-align: top; }
.card {
position: relative;
width: 210px;
height: 295px; }
.card header {
position: absolute;
bottom: 0;
z-index: 10;
color: #fff;
background-color: rgba(0, 0, 0, 0.5);
width: 100%; }
.card header h1, .card header h4 {
margin: 0;
padding: 0; }
.card header h1 {
font-size: 1.5em; }
.card header h4 {
font-size: 1em;
font-weight: normal; }
.card section.images {
position: relative; }
.card section.images, .card section.images * {
width: 100%;
height: 100%; }
.card section.images figure {
margin: 0;
position: absolute;
top: 0;
left: 0; }
.card section.images figure:first-of-type {
z-index: 5; }
.card section.images figure img.blank {
position: absolute;
top: 0;
left: 0;
z-index: 20; }

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,17 @@
import Vue from 'vue'
import InfiniteLoading from 'vue-infinite-loading';
Vue.use(InfiniteLoading, {
props: {
spinner: 'spiral',
// slots.noMore: ''
},
// system: {
// throttleLimit: 50,
// /* other settings need to configure */
// }
});
import store from 'vuejs/store'
import router from 'vuejs/route'

View File

@@ -217,6 +217,15 @@ article.node--type-frontpage{
// | (__/ _` | '_/ _` (_-<
// \___\__,_|_| \__,_/__/
.infinite-loading-container{
.infinite-status-prompt{
i[class^="loading-"]{
width:15px; height:15px;
}
}
}
.cards-list{
&>ul{
margin:0; padding:0;