Fix virtual-sample static comments-container position
This commit is contained in:
parent
92f5d8b300
commit
40df3107c3
3 changed files with 14 additions and 6 deletions
|
|
@ -85,6 +85,11 @@
|
||||||
gap: var(--space-8);
|
gap: var(--space-8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Comments */
|
||||||
|
.static#virtual-sample #comments-container {
|
||||||
|
top: 8rem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.dialog [data-pc-section="footer"] {
|
.dialog [data-pc-section="footer"] {
|
||||||
height: var(--footer-h);
|
height: var(--footer-h);
|
||||||
|
|
|
||||||
|
|
@ -308,9 +308,6 @@ function openComment(comment) {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
font-size: var(--text-sm);
|
font-size: var(--text-sm);
|
||||||
color: var(--color-grey-400);
|
color: var(--color-grey-400);
|
||||||
background-image: var(--icon-comment);
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
}
|
||||||
.comments.empty::before {
|
.comments.empty::before {
|
||||||
--icon-size: 1.25rem;
|
--icon-size: 1.25rem;
|
||||||
|
|
|
||||||
|
|
@ -11,22 +11,28 @@
|
||||||
:closeOnEscape="true"
|
:closeOnEscape="true"
|
||||||
>
|
>
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="dialog__tabs">
|
<div class="dialog__tabs" role="tablist">
|
||||||
<button
|
<button
|
||||||
v-if="step.files.dynamic"
|
v-if="step.files.dynamic"
|
||||||
|
type="button"
|
||||||
|
role="tab"
|
||||||
class="btn btn--transparent | font-serif"
|
class="btn btn--transparent | font-serif"
|
||||||
data-icon="cursor"
|
data-icon="cursor"
|
||||||
:aria-pressed="activeTab === 'dynamic' ? true : false"
|
:aria-pressed="activeTab === 'dynamic' ? true : false"
|
||||||
|
aria-controls="dynamic"
|
||||||
@click="activeTab = 'dynamic'"
|
@click="activeTab = 'dynamic'"
|
||||||
>
|
>
|
||||||
<span>Vue Dynamique</span>
|
<span>Vue Dynamique</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="step.files.static"
|
v-if="step.files.static"
|
||||||
|
type="button"
|
||||||
|
role="tab"
|
||||||
@click="activeTab = 'static'"
|
@click="activeTab = 'static'"
|
||||||
class="btn btn--transparent | font-serif"
|
class="btn btn--transparent | font-serif"
|
||||||
data-icon="image"
|
data-icon="image"
|
||||||
:aria-pressed="activeTab === 'static' ? true : false"
|
:aria-pressed="activeTab === 'static' ? true : false"
|
||||||
|
aria-controls="static"
|
||||||
>
|
>
|
||||||
<span>Vue statique</span>
|
<span>Vue statique</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -34,8 +40,8 @@
|
||||||
<h2 class="font-serif text-lg">Échantillon virtuel</h2>
|
<h2 class="font-serif text-lg">Échantillon virtuel</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<DynamicView v-if="activeTab === 'dynamic'" />
|
<DynamicView id="dynamic" v-if="activeTab === 'dynamic'" />
|
||||||
<StaticView v-if="activeTab === 'static'" />
|
<StaticView id="static" v-if="activeTab === 'static'" />
|
||||||
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a
|
<a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue