fix: DTL card btn

close #102
This commit is contained in:
Timothée Goguely 2025-01-27 10:40:30 +01:00
parent de3072794f
commit b725146861
3 changed files with 13 additions and 10 deletions

View file

@ -97,6 +97,11 @@ input[type="checkbox"]:checked + .btn--primary {
--btn-border-color: var(--color-white-20); --btn-border-color: var(--color-white-20);
} }
.btn--xs {
padding: .3rem var(--space-12) .35rem;
border-radius: var(--rounded-md);
max-height: var(--space-32);
}
.btn--sm { .btn--sm {
padding: .375rem var(--space-12) .5rem; padding: .375rem var(--space-12) .5rem;
border-radius: var(--rounded-md); border-radius: var(--rounded-md);
@ -179,10 +184,8 @@ input[type="checkbox"]:checked + .btn--primary {
} }
} }
.btn:focus-visible { .btn--dtl {
order: 9999;
} --btn-background: var(--color-dtl-15);
--btn-color: var(--color-dtl);
.btn:active {
} }

View file

@ -31,7 +31,7 @@
}} }}
</router-link> </router-link>
</footer> </footer>
<div v-if="isDesignToLightStep(step)">Design to light</div> <div class="btn btn--xs btn--dtl | mt-16" v-if="isDesignToLightStep(step)" data-icon="leaf" lang="en">Design to Light</div>
</article> </article>
</template> </template>
<script setup> <script setup>

View file

@ -16,15 +16,15 @@
<div v-else class="card__images" data-icon="document"></div> <div v-else class="card__images" data-icon="document"></div>
</template> </template>
</figure> </figure>
<!-- <footer <footer
v-if="images[0]?.comments?.length > 0" v-if="images[0]?.comments?.length > 0"
class="order-last | text-sm text-primary font-medium" class="order-last | text-sm text-primary font-medium"
> >
{{ images[0].comments.length }} commentaire{{ {{ images[0].comments.length }} commentaire{{
images[0].comments.length > 1 ? "s" : "" images[0].comments.length > 1 ? "s" : ""
}} }}
</footer> --> </footer>
<div v-if="isDesignToLightStep(step)">Design to light</div> <div class="btn btn--xs btn--dtl | mt-16" v-if="isDesignToLightStep(step)" data-icon="leaf" lang="en">Design to Light</div>
</article> </article>
</template> </template>
<script setup> <script setup>