disable DTLPanel button and fix various styling issues

This commit is contained in:
Timothée Goguely 2025-01-27 21:50:10 +01:00
parent 7aa0ffb927
commit 9cfdb4ef68
5 changed files with 10 additions and 19 deletions

View file

@ -30,10 +30,15 @@
.btn[disabled] { .btn[disabled] {
cursor: not-allowed; cursor: not-allowed;
background: var(--color-black-10); --btn-background: var(--color-black-10);
--btn-color: var(--color-black-20) !important; --btn-color: var(--color-black-20) !important;
--icon-color: var(--color-black-20) !important; --icon-color: var(--color-black-20) !important;
} }
.btn--white[disabled] {
--btn-background: var(--color-white);
--btn-color: var(--color-grey-700) !important;
opacity: .5;
}
.btn.active, .btn.active,
.btn[aria-pressed="true"], .btn[aria-pressed="true"],

View file

@ -147,7 +147,7 @@
top: 2rem; top: 2rem;
bottom: 5.5rem; bottom: 5.5rem;
color: var(--color-white); color: var(--color-white);
z-index: 9999; z-index: 999;
overflow: hidden; overflow: hidden;
} }
#dtl-panel.with-dialog { #dtl-panel.with-dialog {
@ -198,7 +198,7 @@
height: calc(100% - 3.5rem); height: calc(100% - 3.5rem);
} }
#dtl-panel [role="tablist"] + section { #dtl-panel [role="tablist"] + section {
height: calc(100% - 6.25rem); height: calc(100% - 6rem);
} }
#dtl-panel h3 { #dtl-panel h3 {

View file

@ -262,12 +262,6 @@
#optimization-request-dialog [data-pc-name="pcclosebutton"] { #optimization-request-dialog [data-pc-name="pcclosebutton"] {
display: none; display: none;
} }
#project-request-dialog form,
#optimization-request-dialog form {
max-width: var(--dialog-max-w);
height: calc(var(--dialog-max-h) - var(--dialog-header-h));
background: none;
}
#project-request-dialog #project-dtl { #project-request-dialog #project-dtl {
position: relative; position: relative;
padding-left: var(--space-64); padding-left: var(--space-64);

View file

@ -163,6 +163,7 @@
</div> </div>
<footer v-if="proposals.length === 1" class="p-16"> <footer v-if="proposals.length === 1" class="p-16">
<button <button
disabled
class="btn btn--white w-full" class="btn btn--white w-full"
@click="handleOptimizationButtonClick" @click="handleOptimizationButtonClick"
> >

View file

@ -8,7 +8,6 @@
header="Demander un rendez-vous" header="Demander un rendez-vous"
class="dialog" class="dialog"
:closeOnEscape="true" :closeOnEscape="true"
style="z-index: 9999"
> >
<template #header> <template #header>
<h2 class="font-serif text-lg">Demander un rendez-vous</h2> <h2 class="font-serif text-lg">Demander un rendez-vous</h2>
@ -19,7 +18,7 @@
<form <form
@submit.prevent="handleSubmit" @submit.prevent="handleSubmit"
class="w-full p-16 flex flex-col" class="w-full h-full p-16 flex flex-col"
style="--row-gap: 1rem" style="--row-gap: 1rem"
> >
<label for="projects" class="sr-only">Projet</label> <label for="projects" class="sr-only">Projet</label>
@ -109,11 +108,3 @@ async function handleSubmit() {
isOpen.value = false; isOpen.value = false;
} }
</script> </script>
<style scoped>
form {
position: fixed;
background-color: #fff;
z-index: 999;
}
</style>