add center to ButtonExpand + misc fix

This commit is contained in:
axolotle
2021-07-07 21:25:33 +02:00
parent fab878e2e7
commit 5defd3ce03
4 changed files with 10 additions and 3 deletions
+1
View File
@@ -13,4 +13,5 @@ body,
main {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
}
+7 -1
View File
@@ -2,7 +2,7 @@
display: inline-block;
position: relative;
&:not(:hover) .btn-expand {
&.on-hover:not(:hover) .btn-expand {
display: none;
}
@@ -11,6 +11,12 @@
top: 0;
right: 0;
&.center {
top: 50%;
right: 50%;
transform: translate(50%, -50%)
}
padding: 0;
width: 75px;
height: 70px;
+1 -1
View File
@@ -3,7 +3,7 @@
v-on="$listeners"
v-bind="$attrs"
variant="depart"
class="btn-expand"
class="btn-expand on-hover"
:aria-label="expanded ? 'Réduire' : 'Agrandir'"
>
<svg aria-hidden="true" viewBox="0 0 75 70">
+1 -1
View File
@@ -13,7 +13,7 @@
<span><strong>{{ toCommaList(node.authors) }}</strong>,</span>
<span>
<span v-if="node.preTitle" v-html="' ' + trim(node.preTitle) + ','" />
<em v-html="' ' + trim(node.italTitle) || 'pas de titre ital'" />
<em v-html="' ' + trim(node.italTitle || node.title) || 'pas de titre ital'" />
<span v-if="edition && node.edition">, </span>
</span>
<div v-if="edition && node.edition" class="edition">