Update Project view: add .cards wrapper and .flex-1 class on kanban sections
This commit is contained in:
parent
1989b8ca30
commit
5cc48ff9d2
1 changed files with 103 additions and 89 deletions
|
|
@ -6,13 +6,14 @@
|
||||||
</header>
|
</header>
|
||||||
<div class="kanban">
|
<div class="kanban">
|
||||||
<section
|
<section
|
||||||
class="flow"
|
class="flex-1"
|
||||||
aria-labelledby="votre-brief-label"
|
aria-labelledby="votre-brief-label"
|
||||||
data-status="done"
|
data-status="done"
|
||||||
>
|
>
|
||||||
<h2 id="votre-brief-label">
|
<h2 id="votre-brief-label">
|
||||||
<span data-icon="votre-brief">Votre brief</span>
|
<span data-icon="votre-brief">Votre brief</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="cards | flow">
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<hgroup class="order-last">
|
<hgroup class="order-last">
|
||||||
<h3 class="card__title | font-serif | text-lg">Votre Brief</h3>
|
<h3 class="card__title | font-serif | text-lg">Votre Brief</h3>
|
||||||
|
|
@ -35,15 +36,17 @@
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
</article>
|
</article>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
class="flow"
|
class="flex-1"
|
||||||
aria-labelledby="offre-commerciale-label"
|
aria-labelledby="offre-commerciale-label"
|
||||||
data-status="done"
|
data-status="done"
|
||||||
>
|
>
|
||||||
<h2 id="offre-commerciale-label">
|
<h2 id="offre-commerciale-label">
|
||||||
<span data-icon="offre-commerciale">Offre Commerciale</span>
|
<span data-icon="offre-commerciale">Offre Commerciale</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="cards | flow">
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<hgroup class="order-last">
|
<hgroup class="order-last">
|
||||||
<h3 class="card__title | font-serif | text-lg">Offre - 2</h3>
|
<h3 class="card__title | font-serif | text-lg">Offre - 2</h3>
|
||||||
|
|
@ -78,15 +81,17 @@
|
||||||
<time class="card__date | text-grey-700" datetime="2024-06-12">12 juin 2024</time>
|
<time class="card__date | text-grey-700" datetime="2024-06-12">12 juin 2024</time>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
class="flow"
|
class="flex-1"
|
||||||
aria-labelledby="brief-enrichi-label"
|
aria-labelledby="brief-enrichi-label"
|
||||||
data-status="in-progress"
|
data-status="in-progress"
|
||||||
>
|
>
|
||||||
<h2 id="brief-enrichi-label">
|
<h2 id="brief-enrichi-label">
|
||||||
<span data-icon="brief-enrichi">Brief Enrichi</span>
|
<span data-icon="brief-enrichi">Brief Enrichi</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="cards | flow">
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<hgroup class="order-last">
|
<hgroup class="order-last">
|
||||||
<h3 class="card__title | font-serif | text-lg">Brief enrichi</h3>
|
<h3 class="card__title | font-serif | text-lg">Brief enrichi</h3>
|
||||||
|
|
@ -111,18 +116,21 @@
|
||||||
/>
|
/>
|
||||||
</figure>
|
</figure>
|
||||||
</article>
|
</article>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
class="flow"
|
class="flex-1"
|
||||||
aria-labelledby="echantillon-virtuel-label"
|
aria-labelledby="echantillon-virtuel-label"
|
||||||
data-status="uncompleted"
|
data-status="uncompleted"
|
||||||
>
|
>
|
||||||
<h2 id="echantillon-virtuel-label">
|
<h2 id="echantillon-virtuel-label">
|
||||||
<span data-icon="echantillon-virtuel">Échantillon Virtuel</span>
|
<span data-icon="echantillon-virtuel">Échantillon Virtuel</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="cards | flow">
|
||||||
<div class="flex flex-col justify-center | rounded-2xl | bg-grey-200 text-grey-700">
|
<div class="flex flex-col justify-center | rounded-2xl | bg-grey-200 text-grey-700">
|
||||||
<p>Prochainement disponible</p>
|
<p>Prochainement disponible</p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
@ -147,12 +155,12 @@ const user = useUserStore().user;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--gap);
|
gap: var(--gap);
|
||||||
overflow-y: auto;
|
overflow-x: auto;
|
||||||
margin: 0 calc(-1 * var(--gutter));
|
margin: 0 calc(-1 * var(--gutter));
|
||||||
padding: 0 var(--gutter);
|
padding: 0 var(--gutter);
|
||||||
|
height: calc(100vh - var(--gutter) * 2 - var(--header-height) - 2.25rem);
|
||||||
}
|
}
|
||||||
.kanban > section {
|
.kanban > section {
|
||||||
flex-grow: 1;
|
|
||||||
min-width: 20rem;
|
min-width: 20rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
@ -253,7 +261,7 @@ const user = useUserStore().user;
|
||||||
.kanban [data-status="uncompleted"] h2 > span {
|
.kanban [data-status="uncompleted"] h2 > span {
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
}
|
}
|
||||||
.kanban [data-status="uncompleted"] > div {
|
.kanban [data-status="uncompleted"] .cards > * {
|
||||||
min-height: 10rem;
|
min-height: 10rem;
|
||||||
}
|
}
|
||||||
.kanban [data-status="uncompleted"]::after {
|
.kanban [data-status="uncompleted"]::after {
|
||||||
|
|
@ -268,4 +276,10 @@ const user = useUserStore().user;
|
||||||
line-height: 2.125rem;
|
line-height: 2.125rem;
|
||||||
padding: 0 var(--space-12);
|
padding: 0 var(--space-12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kanban .cards {
|
||||||
|
padding-top: var(--space-16);
|
||||||
|
max-height: calc(100% - var(--header-height));
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue