main-content layout

This commit is contained in:
2019-09-27 15:22:39 +02:00
parent df6a79b777
commit 08e6433c0e
3 changed files with 16 additions and 7 deletions
+7 -3
View File
@@ -31,9 +31,13 @@ body{
section[role="main-content"]{ section[role="main-content"]{
flex:1 1 auto; flex:1 1 auto;
@extend %layout-element; @extend %layout-element;
padding:0 $side-padding 0 $side-padding; overflow: hidden;
overflow-y: auto; >.wrapper{
overflow-x: hidden; padding:0 $side-padding 0 $side-padding;
height:100vh;
overflow-y: auto;
overflow-x: hidden;
}
} }
footer[role="tools"]{ footer[role="tools"]{
flex:0 0 auto; flex:0 0 auto;
+3 -1
View File
@@ -12,7 +12,9 @@
</div> </div>
</header> </header>
<section role="main-content"> <section role="main-content">
<RouterView /> <div class="wrapper">
<RouterView />
</div>
</section> </section>
<footer role="tools"> <footer role="tools">
<History /> <History />
+6 -3
View File
@@ -1,13 +1,16 @@
<template> <template>
<transition name="fade" appear> <transition name="fade" appear>
<span v-if="!loaded">Loading...</span> <span v-if="!loaded">Loading...</span>
<article v-else class="item"> <article v-else class="item row">
<header> <header class="col-3">
<h1> <h1>
{{ item.title }} {{ item.title }}
</h1> </h1>
</header> </header>
<section v-html="item.tei" /> <section v-html="item.tei" class="col-6"/>
<section class="col-3">
tree
</section>
</article> </article>
</transition> </transition>
</template> </template>