nicer loader indicator

This commit is contained in:
2020-07-28 12:01:35 +02:00
parent e9e77c15ae
commit b719b06a8e
9 changed files with 36 additions and 8 deletions
+26
View File
@@ -1081,3 +1081,29 @@ span.mdi-loading{
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-timing-function: linear; animation-timing-function: linear;
} }
// _ _ _
// | | ___ __ _ __| (_)_ _ __ _
// | |__/ _ \/ _` / _` | | ' \/ _` |
// |____\___/\__,_\__,_|_|_||_\__, |
// |___/
span.loading{
@include fontsans;
font-size: 0.756em;
color: $grisfonce;
animation: pulseloading 4s infinite;
}
@keyframes pulseloading{
0% {
opacity: 1;
}
50%{
opacity: 0;
}
100% {
opacity: 1;
}
}
+1
View File
@@ -24,6 +24,7 @@ body{
box-sizing:border-box; box-sizing:border-box;
} }
header[role="banner"]{ header[role="banner"]{
z-index:10;
flex: 0 0 auto; flex: 0 0 auto;
@extend %layout-element; @extend %layout-element;
padding:1em $side-padding 1em $side-padding; padding:1em $side-padding 1em $side-padding;
+3 -2
View File
@@ -1,7 +1,8 @@
<template> <template>
<nav id="header-menu"> <nav id="header-menu">
<ul v-if="corpusLoaded"> <!-- <span v-if="!corpusLoaded" class="loading">Loading ...</span> -->
<li><router-link to="/corpus">Corpus</router-link></li> <ul>
<li v-if="corpusLoaded"><router-link to="/corpus">Corpus</router-link></li>
<li :class="{ opened: indexOpened }"> <li :class="{ opened: indexOpened }">
<span <span
@click.prevent="onClickIndex" @click.prevent="onClickIndex"
+1 -1
View File
@@ -1,7 +1,7 @@
<template> <template>
<MainContentLayout id="biblio"> <MainContentLayout id="biblio">
<template v-if="!content" #header> <template v-if="!content" #header>
<span>Loading ...</span> <span class="loading">Loading ...</span>
</template> </template>
<template #header> <template #header>
<h1> <h1>
+1 -1
View File
@@ -6,7 +6,7 @@
@onCenterScrolled="onCenterScrolled" @onCenterScrolled="onCenterScrolled"
> >
<template v-if="!content" #header> <template v-if="!content" #header>
<span>Loading ...</span> <span class="loading">Loading ...</span>
</template> </template>
<template #header> <template #header>
<h1> <h1>
+1 -1
View File
@@ -2,7 +2,7 @@
<MainContentLayout id="index-locorum" class="index"> <MainContentLayout id="index-locorum" class="index">
<template v-slot:header> <template v-slot:header>
<h1>Lieux</h1> <h1>Lieux</h1>
<span v-if="!items.length">Loading ...</span> <span v-if="!items.length" class="loading">Loading ...</span>
</template> </template>
<ul v-if="items.length" class="item-list"> <ul v-if="items.length" class="item-list">
+1 -1
View File
@@ -2,7 +2,7 @@
<MainContentLayout id="index-nominum" class="index"> <MainContentLayout id="index-nominum" class="index">
<template v-slot:header> <template v-slot:header>
<h1>Personnes</h1> <h1>Personnes</h1>
<span v-if="!items.length">Loading ...</span> <span v-if="!items.length" class="loading">Loading ...</span>
</template> </template>
<ul v-if="items.length" class="item-list"> <ul v-if="items.length" class="item-list">
+1 -1
View File
@@ -2,7 +2,7 @@
<MainContentLayout id="index-operum" class="index"> <MainContentLayout id="index-operum" class="index">
<template v-slot:header> <template v-slot:header>
<h1>Œuvres</h1> <h1>Œuvres</h1>
<span v-if="!items.length">Loading ...</span> <span v-if="!items.length" class="loading">Loading ...</span>
</template> </template>
<ul v-if="items.length" class="item-list"> <ul v-if="items.length" class="item-list">
+1 -1
View File
@@ -2,7 +2,7 @@
<MainContentLayout id="list-corpus"> <MainContentLayout id="list-corpus">
<template v-slot:header> <template v-slot:header>
<h1>Corpus</h1> <h1>Corpus</h1>
<span v-if="!editionslist.length">Loading ...</span> <span v-if="!editionslist.length" class="loading">Loading ...</span>
</template> </template>
<ul v-if="editionslist.length" class="item-list"> <ul v-if="editionslist.length" class="item-list">