[+] Publication detail collapse
This commit is contained in:
@@ -1,7 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="Publication">
|
<div class="publication">
|
||||||
<div id="title">{{d.title}}</div>
|
<div class="header fbox-h">
|
||||||
<div id="subtitle">By {{d.creators.map(it => it.firstName + ' ' + it.lastName).join(' & ')}}{{date ? ', ' + date.year() : ''}}</div>
|
<i class="icon fas fa-caret-right"></i>
|
||||||
|
<div class="fbox-v">
|
||||||
|
<div id="title">{{d.title}}</div>
|
||||||
|
<div id="subtitle">By {{d.creators.map(it => it.firstName + ' ' + it.lastName).join(' & ')}}{{date.year() ? ', ' + date.year() : ''}}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="details">
|
||||||
|
Text
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -9,6 +17,8 @@
|
|||||||
import {Options, Vue} from 'vue-class-component';
|
import {Options, Vue} from 'vue-class-component';
|
||||||
import {Prop} from "vue-property-decorator";
|
import {Prop} from "vue-property-decorator";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
|
import $ from "jquery";
|
||||||
|
import 'jqueryui';
|
||||||
|
|
||||||
export interface ZoteroLink
|
export interface ZoteroLink
|
||||||
{
|
{
|
||||||
@@ -72,10 +82,35 @@ export default class ZoteroPublicationView extends Vue
|
|||||||
|
|
||||||
get d(): ZoteroData { return this.item.data }
|
get d(): ZoteroData { return this.item.data }
|
||||||
|
|
||||||
get date(): moment.Moment { return moment(this.d.date) }
|
get date(): moment.Moment { return moment(this.item.meta.parsedDate) }
|
||||||
|
|
||||||
|
mounted(): void
|
||||||
|
{
|
||||||
|
$('.publication').accordion({collapsible: true, header: 'div.header', active: false})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
|
||||||
|
.publication
|
||||||
|
margin-block-start: 1em
|
||||||
|
margin-block-end: 1em
|
||||||
|
|
||||||
|
#title
|
||||||
|
font-weight: bold
|
||||||
|
|
||||||
|
#subtitle
|
||||||
|
font-size: 0.9em
|
||||||
|
|
||||||
|
.header
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.icon
|
||||||
|
transition: all 0.25s ease
|
||||||
|
padding: 0 0.8em
|
||||||
|
|
||||||
|
.header.ui-accordion-header-active
|
||||||
|
.icon
|
||||||
|
transform: rotate(90deg)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+5
-2
@@ -76,13 +76,16 @@ export default class About extends Vue
|
|||||||
margin-bottom: 0.25em
|
margin-bottom: 0.25em
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
h3
|
||||||
|
font-size: 1.2em
|
||||||
|
|
||||||
p
|
p
|
||||||
font-size: 0.875em
|
font-size: 0.9em
|
||||||
margin: 0.5em 0
|
margin: 0.5em 0
|
||||||
line-height: 1.6
|
line-height: 1.6
|
||||||
|
|
||||||
li
|
li
|
||||||
font-size: 0.875em
|
font-size: 0.9em
|
||||||
margin-top: 0.25em
|
margin-top: 0.25em
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user