layout refactoring, started nominum item display
This commit is contained in:
+8
-18
@@ -39,11 +39,16 @@ header[role="banner"]{
|
|||||||
position: relative;
|
position: relative;
|
||||||
>ul{
|
>ul{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:1em; right:0;
|
top:1em; right:-1em;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding-bottom: 0.5em;
|
||||||
|
background-color: white;
|
||||||
>li{
|
>li{
|
||||||
|
padding:0 1em;
|
||||||
|
// margin-right: -1em;
|
||||||
transition: height 0.3s ease-in-out;
|
transition: height 0.3s ease-in-out;
|
||||||
height:0.2px;
|
height:0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover{
|
&:hover{
|
||||||
@@ -214,22 +219,7 @@ section[role="main-content"]{
|
|||||||
.index{
|
.index{
|
||||||
}
|
}
|
||||||
|
|
||||||
#edition-toc{
|
#edition{
|
||||||
max-height: 100%;
|
|
||||||
>header,
|
|
||||||
>section,
|
|
||||||
>nav{
|
|
||||||
max-height: 100%;
|
|
||||||
padding-top:1em;
|
|
||||||
padding-bottom:1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
>section,
|
|
||||||
>nav{
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
header{
|
header{
|
||||||
h1{
|
h1{
|
||||||
@include title2black;
|
@include title2black;
|
||||||
|
|||||||
@@ -38,6 +38,22 @@ body{
|
|||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
.main-content-layout{
|
||||||
|
max-height: 100%;
|
||||||
|
>header,
|
||||||
|
>section,
|
||||||
|
>nav{
|
||||||
|
max-height: 100%;
|
||||||
|
padding-top:1em;
|
||||||
|
padding-bottom:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
>section,
|
||||||
|
>nav{
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
footer[role="tools"]{
|
footer[role="tools"]{
|
||||||
flex:0 0 auto;
|
flex:0 0 auto;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
:id="id"
|
:id="id"
|
||||||
class="full-width row"
|
class="full-width row main-content-layout"
|
||||||
>
|
>
|
||||||
<header class="col-3">
|
<header class="col-3">
|
||||||
<slot name="header" />
|
<slot name="header" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<MainContentLayout id="edition-toc">
|
<MainContentLayout id="edition">
|
||||||
<template v-if="!content" #header>
|
<template v-if="!content" #header>
|
||||||
<span>Loading ...</span>
|
<span>Loading ...</span>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+30
-3
@@ -1,10 +1,37 @@
|
|||||||
<template>
|
<template>
|
||||||
<MainContentLayout id="nominum">
|
<MainContentLayout id="nominum">
|
||||||
<template v-slot:header>
|
<template v-if="!content" v-slot:header>
|
||||||
<h1 v-if="content">{{ content.title }}</h1>
|
<span class="loading">Loading ...</span>
|
||||||
<span v-if="!content">Loading ...</span>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template v-if="content" v-slot:header>
|
||||||
|
<h1>{{ content.title }}</h1>
|
||||||
|
<p>
|
||||||
|
{{ content.birthDate }}, {{ content.birthPlace }}<br>
|
||||||
|
{{ content.deathDate }}, {{ content.deathPlace }}
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- default slot -->
|
||||||
|
<section class="occurences">
|
||||||
|
<ul>
|
||||||
|
<li
|
||||||
|
v-for="ed in content.occurences"
|
||||||
|
:key="ed.item"
|
||||||
|
>
|
||||||
|
<h3>{{ ed.item }}</h3>
|
||||||
|
<ul>
|
||||||
|
<li
|
||||||
|
v-for="oc in ed.occurences"
|
||||||
|
:key="oc.uuid"
|
||||||
|
>
|
||||||
|
<h4>{{ oc.title }}</h4>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
|
||||||
<template v-slot:nav />
|
<template v-slot:nav />
|
||||||
</MainContentLayout>
|
</MainContentLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user