added some transitions
This commit is contained in:
+1
-1
@@ -2,9 +2,9 @@
|
|||||||
@import './base/variables';
|
@import './base/variables';
|
||||||
@import './base/colors';
|
@import './base/colors';
|
||||||
@import './base/grid-flex';
|
@import './base/grid-flex';
|
||||||
|
@import './base/transitions';
|
||||||
@import './base/layout';
|
@import './base/layout';
|
||||||
@import './base/fonts';
|
@import './base/fonts';
|
||||||
@import './base/transitions';
|
|
||||||
|
|
||||||
/* The emerging W3C standard
|
/* The emerging W3C standard
|
||||||
that is currently Firefox-only */
|
that is currently Firefox-only */
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ body{
|
|||||||
height:100%; max-height:100%;
|
height:100%; max-height:100%;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
>*{
|
||||||
|
@include fade-transition;
|
||||||
|
}
|
||||||
@media only screen and (max-width: $small-bp) {
|
@media only screen and (max-width: $small-bp) {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding:0 $side-padding/2 0 $side-padding/2;
|
padding:0 $side-padding/2 0 $side-padding/2;
|
||||||
|
|||||||
@@ -45,3 +45,38 @@
|
|||||||
transition: all 200ms ease-in-out;
|
transition: all 200ms ease-in-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .fade-enter,
|
||||||
|
// .fade-leave-to{
|
||||||
|
// opacity: 0;
|
||||||
|
// }
|
||||||
|
// .fade-enter-to,
|
||||||
|
// .fade-leave{
|
||||||
|
// opacity:1;
|
||||||
|
// }
|
||||||
|
.fade-enter-active{
|
||||||
|
transition: all 300ms ease-in-out;
|
||||||
|
}
|
||||||
|
.fade-leave-active{
|
||||||
|
transition: all 200ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .fade-enter-active,
|
||||||
|
// .fade-leave-active {
|
||||||
|
// transition-duration: 0.3s;
|
||||||
|
// transition-property: opacity;
|
||||||
|
// transition-timing-function: ease;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-active {
|
||||||
|
opacity: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// .edition-texts-enter-active, .edition-texts-leave-active {
|
||||||
|
// transition: all 1s;
|
||||||
|
// }
|
||||||
|
// .edition-texts-enter, .edition-texts-leave-to /* .list-leave-active below version 2.1.8 */ {
|
||||||
|
// max-height: 0;
|
||||||
|
// // transform: translateY(30px);
|
||||||
|
// }
|
||||||
|
|||||||
@@ -13,7 +13,9 @@
|
|||||||
</header>
|
</header>
|
||||||
<section role="main-content">
|
<section role="main-content">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
<transition name="fade" mode="out-in">
|
||||||
<RouterView />
|
<RouterView />
|
||||||
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<footer role="tools">
|
<footer role="tools">
|
||||||
|
|||||||
@@ -2,7 +2,10 @@
|
|||||||
<nav id="header-menu">
|
<nav id="header-menu">
|
||||||
<!-- <span v-if="!corpusLoaded" class="loading">Loading ...</span> -->
|
<!-- <span v-if="!corpusLoaded" class="loading">Loading ...</span> -->
|
||||||
<ul>
|
<ul>
|
||||||
<li v-if="corpusLoaded"><router-link to="/corpus">Corpus</router-link></li>
|
<li >
|
||||||
|
<span v-if="!corpusLoaded" class="loading">Loading ...</span>
|
||||||
|
<router-link v-else to="/corpus">Corpus</router-link>
|
||||||
|
</li>
|
||||||
<li :class="{ opened: indexOpened }">
|
<li :class="{ opened: indexOpened }">
|
||||||
<span
|
<span
|
||||||
@click.prevent="onClickIndex"
|
@click.prevent="onClickIndex"
|
||||||
|
|||||||
@@ -5,10 +5,11 @@
|
|||||||
:navopened="navopened"
|
:navopened="navopened"
|
||||||
@onCenterScrolled="onCenterScrolled"
|
@onCenterScrolled="onCenterScrolled"
|
||||||
>
|
>
|
||||||
<template v-if="!content" #header>
|
<!-- <transition name="fade" mode="out-in"> -->
|
||||||
|
<template v-if="!corpusLoaded" #header>
|
||||||
<span class="loading">Loading ...</span>
|
<span class="loading">Loading ...</span>
|
||||||
</template>
|
</template>
|
||||||
<template #header>
|
<template v-else #header>
|
||||||
<h1>
|
<h1>
|
||||||
<router-link :to="{ name:'edition', params: { id: editionid }}">{{ title }}</router-link>
|
<router-link :to="{ name:'edition', params: { id: editionid }}">{{ title }}</router-link>
|
||||||
</h1>
|
</h1>
|
||||||
@@ -23,7 +24,7 @@
|
|||||||
@click.prevent="onClickTooltip"
|
@click.prevent="onClickTooltip"
|
||||||
@keyup.enter="onClickTooltip"
|
@keyup.enter="onClickTooltip"
|
||||||
>
|
>
|
||||||
<span v-if="indexitem == 'loading'">Loading ...</span>
|
<span v-if="indexitem == 'loading'" class="loading">Loading ...</span>
|
||||||
<template v-if="indexitem !== 'loading'">
|
<template v-if="indexitem !== 'loading'">
|
||||||
<h1 v-html="indexitem.title" />
|
<h1 v-html="indexitem.title" />
|
||||||
<p v-if="indexitem.birthDate" class="birthdeath">
|
<p v-if="indexitem.birthDate" class="birthdeath">
|
||||||
@@ -40,7 +41,7 @@
|
|||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- </transition> -->
|
||||||
<!-- default slot -->
|
<!-- default slot -->
|
||||||
<div id="text">
|
<div id="text">
|
||||||
<template v-if="texts.length">
|
<template v-if="texts.length">
|
||||||
@@ -51,6 +52,7 @@
|
|||||||
:distance="inifinite_load_distance"
|
:distance="inifinite_load_distance"
|
||||||
@infinite="prevText"
|
@infinite="prevText"
|
||||||
/>
|
/>
|
||||||
|
<!-- <transition-group name="edition-texts" tag="div"> -->
|
||||||
<EdText
|
<EdText
|
||||||
v-for="text in texts"
|
v-for="text in texts"
|
||||||
:ref="text.content.uuid"
|
:ref="text.content.uuid"
|
||||||
@@ -61,6 +63,7 @@
|
|||||||
@onHoverLink="onHoverLink"
|
@onHoverLink="onHoverLink"
|
||||||
@onLeaveLink="onLeaveLink"
|
@onLeaveLink="onLeaveLink"
|
||||||
/>
|
/>
|
||||||
|
<!-- </transition-group> -->
|
||||||
<infinite-loading
|
<infinite-loading
|
||||||
v-if="flattoc"
|
v-if="flattoc"
|
||||||
:identifier="inifinite_load_id"
|
:identifier="inifinite_load_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user