Design ludique arrondi + mobile responsive + fix IPv6
- ToolboxVignette: prop bullets[] remplace description, touch targets agrandis - Design arrondi: border-radius 16px cards, 20px pills, 12px inputs, no borders - Hover animations: translateY(-3px) + shadow, active states pour touch - SectionLayout: toolbox accordion mobile, pills scroll horizontal, responsive title/subtitle - app.vue: MoodSwitcher dans drawer mobile, header responsive, nav touch-friendly - Dashboard: grille 2-colonnes mobile, connect banner column layout, formula code scroll - Documents/decisions/mandates/protocols: cards responsive (padding, font-size, gap) - Login: touch targets 3rem min, iOS zoom prevention, responsive sizing - Modals: padding responsive sm:p-6 - Protocols: table compact mobile, proto items responsive - nuxt.config: host 0.0.0.0 pour fix IPv4/IPv6 binding Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* Dashboard / Page d'accueil — Glibredecision.
|
||||
*
|
||||
* Accueil sobre et lisible : cartes d'entree, banniere connexion,
|
||||
* apercu boite a outils et activite recente.
|
||||
*/
|
||||
const documents = useDocumentsStore()
|
||||
const decisions = useDecisionsStore()
|
||||
const protocols = useProtocolsStore()
|
||||
@@ -26,7 +20,6 @@ onMounted(async () => {
|
||||
}
|
||||
})
|
||||
|
||||
/** Entry cards — the 4 main doors. */
|
||||
const entryCards = computed(() => [
|
||||
{
|
||||
key: 'documents',
|
||||
@@ -69,12 +62,11 @@ const entryCards = computed(() => [
|
||||
count: null,
|
||||
countLabel: null,
|
||||
totalLabel: null,
|
||||
description: 'Un contexte, un objectif, une duree, une ou plusieurs nominations ; par defaut : nomination d\'un binome.',
|
||||
description: 'Missions deleguees avec nomination en binome',
|
||||
color: 'var(--mood-success)',
|
||||
},
|
||||
])
|
||||
|
||||
/** Last 5 decisions sorted by most recent. */
|
||||
const recentDecisions = computed(() => {
|
||||
return [...decisions.list]
|
||||
.sort((a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_at).getTime())
|
||||
@@ -105,7 +97,9 @@ function formatDate(dateStr: string): string {
|
||||
<div class="dash">
|
||||
<!-- Welcome -->
|
||||
<div class="dash__welcome">
|
||||
<h1 class="dash__title"><span class="dash__title-g">ğ</span><span class="dash__title-paren">(</span>Decision<span class="dash__title-paren">)</span></h1>
|
||||
<h1 class="dash__title">
|
||||
<span class="dash__title-g">ğ</span><span class="dash__title-paren">(</span>Decision<span class="dash__title-paren">)</span>
|
||||
</h1>
|
||||
<p class="dash__subtitle">
|
||||
Decisions collectives pour la communaute Duniter / G1
|
||||
</p>
|
||||
@@ -125,7 +119,7 @@ function formatDate(dateStr: string): string {
|
||||
:style="{ '--card-color': card.color }"
|
||||
>
|
||||
<div class="entry-card__icon">
|
||||
<UIcon :name="card.icon" class="text-xl" />
|
||||
<UIcon :name="card.icon" class="text-2xl" />
|
||||
</div>
|
||||
<h2 class="entry-card__title">{{ card.title }}</h2>
|
||||
<template v-if="card.count !== null">
|
||||
@@ -136,7 +130,7 @@ function formatDate(dateStr: string): string {
|
||||
<span class="entry-card__desc">{{ card.description }}</span>
|
||||
</template>
|
||||
<span class="entry-card__arrow">
|
||||
<UIcon name="i-lucide-arrow-right" class="text-sm" />
|
||||
<UIcon name="i-lucide-arrow-right" />
|
||||
</span>
|
||||
</NuxtLink>
|
||||
</template>
|
||||
@@ -145,28 +139,25 @@ function formatDate(dateStr: string): string {
|
||||
<!-- Connect banner -->
|
||||
<div v-if="!auth.isAuthenticated" class="dash__connect">
|
||||
<div class="dash__connect-left">
|
||||
<UIcon name="i-lucide-key-round" class="text-base" />
|
||||
<UIcon name="i-lucide-key-round" class="text-lg" />
|
||||
<div>
|
||||
<p class="dash__connect-text">Connectez-vous avec votre identite Duniter pour participer.</p>
|
||||
<p class="dash__connect-hint">Signature Ed25519 · aucun mot de passe</p>
|
||||
</div>
|
||||
</div>
|
||||
<NuxtLink to="/login" class="dash__connect-btn">
|
||||
<UIcon name="i-lucide-log-in" class="text-sm" />
|
||||
<UIcon name="i-lucide-log-in" />
|
||||
<span>Connexion</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<!-- Boite a outils teaser -->
|
||||
<!-- Toolbox teaser -->
|
||||
<div class="dash__toolbox">
|
||||
<div class="dash__toolbox-head">
|
||||
<UIcon name="i-lucide-wrench" class="text-base" />
|
||||
<UIcon name="i-lucide-wrench" class="text-lg" />
|
||||
<h3>Boite a outils</h3>
|
||||
<span class="dash__toolbox-count">{{ protocols.protocols.length }}</span>
|
||||
</div>
|
||||
<p class="dash__toolbox-desc">
|
||||
Protocoles de vote avec formule de seuil WoT adaptative.
|
||||
</p>
|
||||
<div class="dash__toolbox-tags">
|
||||
<template v-if="protocols.protocols.length > 0">
|
||||
<NuxtLink
|
||||
@@ -179,21 +170,21 @@ function formatDate(dateStr: string): string {
|
||||
</NuxtLink>
|
||||
</template>
|
||||
<template v-else>
|
||||
<span class="dash__tag">Vote majoritaire</span>
|
||||
<span class="dash__tag">Vote WoT</span>
|
||||
<span class="dash__tag">Vote nuance</span>
|
||||
<span class="dash__tag">Vote permanent</span>
|
||||
</template>
|
||||
</div>
|
||||
<NuxtLink to="/protocols" class="dash__toolbox-link">
|
||||
Voir la boite a outils
|
||||
<UIcon name="i-lucide-chevron-right" class="text-xs" />
|
||||
<UIcon name="i-lucide-chevron-right" />
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<!-- Recent activity -->
|
||||
<div v-if="recentDecisions.length > 0" class="dash__activity">
|
||||
<div class="dash__activity-head">
|
||||
<UIcon name="i-lucide-activity" class="text-base" />
|
||||
<UIcon name="i-lucide-activity" class="text-lg" />
|
||||
<h3>Activite recente</h3>
|
||||
</div>
|
||||
<div class="dash__activity-list">
|
||||
@@ -216,13 +207,10 @@ function formatDate(dateStr: string): string {
|
||||
<UCollapsible v-model:open="formulaOpen">
|
||||
<button class="dash__formula-trigger" @click="formulaOpen = !formulaOpen">
|
||||
<div class="dash__formula-trigger-left">
|
||||
<UIcon name="i-lucide-calculator" class="text-sm" />
|
||||
<UIcon name="i-lucide-calculator" />
|
||||
<span>Formule de seuil WoT</span>
|
||||
</div>
|
||||
<UIcon
|
||||
:name="formulaOpen ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'"
|
||||
class="text-xs"
|
||||
/>
|
||||
<UIcon :name="formulaOpen ? 'i-lucide-chevron-up' : 'i-lucide-chevron-down'" />
|
||||
</button>
|
||||
<template #content>
|
||||
<div class="dash__formula-body">
|
||||
@@ -242,7 +230,7 @@ function formatDate(dateStr: string): string {
|
||||
</div>
|
||||
<NuxtLink to="/protocols/formulas" class="dash__formula-link">
|
||||
Ouvrir le simulateur
|
||||
<UIcon name="i-lucide-chevron-right" class="text-xs" />
|
||||
<UIcon name="i-lucide-chevron-right" />
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</template>
|
||||
@@ -254,8 +242,8 @@ function formatDate(dateStr: string): string {
|
||||
.dash {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
max-width: 52rem;
|
||||
gap: 2rem;
|
||||
max-width: 56rem;
|
||||
}
|
||||
|
||||
/* --- Welcome --- */
|
||||
@@ -263,10 +251,16 @@ function formatDate(dateStr: string): string {
|
||||
padding: 0.5rem 0;
|
||||
}
|
||||
.dash__title {
|
||||
font-size: 1.625rem;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 800;
|
||||
color: var(--mood-accent);
|
||||
letter-spacing: -0.02em;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__title {
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
}
|
||||
.dash__title-g {
|
||||
font-style: italic;
|
||||
@@ -274,201 +268,260 @@ function formatDate(dateStr: string): string {
|
||||
.dash__title-paren {
|
||||
font-weight: 300;
|
||||
color: var(--mood-text-muted);
|
||||
opacity: 0.4;
|
||||
}
|
||||
.dash__subtitle {
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
margin-top: 0.375rem;
|
||||
font-size: 0.9375rem;
|
||||
color: var(--mood-text-muted);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__subtitle {
|
||||
font-size: 1.0625rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Entry cards --- */
|
||||
.dash__entries {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__entries {
|
||||
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-card {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
padding: 1.25rem 1rem;
|
||||
padding: 1rem;
|
||||
background: var(--mood-surface);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 6px;
|
||||
border-radius: 16px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.entry-card {
|
||||
gap: 0.5rem;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-card:hover {
|
||||
border-color: var(--card-color, var(--mood-accent));
|
||||
box-shadow: 0 2px 8px var(--mood-shadow);
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 8px 24px var(--mood-shadow);
|
||||
}
|
||||
|
||||
.entry-card:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.entry-card__icon {
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 6px;
|
||||
background: color-mix(in srgb, var(--card-color, var(--mood-accent)) 10%, transparent);
|
||||
border-radius: 14px;
|
||||
background: color-mix(in srgb, var(--card-color, var(--mood-accent)) 12%, transparent);
|
||||
color: var(--card-color, var(--mood-accent));
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.entry-card__title {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 800;
|
||||
color: var(--mood-text);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.entry-card__count {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
color: var(--card-color, var(--mood-accent));
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.entry-card__total {
|
||||
font-size: 0.6875rem;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--mood-text-muted);
|
||||
}
|
||||
|
||||
.entry-card__desc {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--mood-text-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.entry-card__arrow {
|
||||
position: absolute;
|
||||
top: 1rem;
|
||||
right: 1rem;
|
||||
top: 1.25rem;
|
||||
right: 1.25rem;
|
||||
color: var(--mood-text-muted);
|
||||
opacity: 0.4;
|
||||
transition: opacity 0.15s;
|
||||
opacity: 0.3;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.entry-card:hover .entry-card__arrow {
|
||||
opacity: 1;
|
||||
color: var(--card-color, var(--mood-accent));
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
/* --- Connect banner --- */
|
||||
.dash__connect {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
padding: 0.875rem 1rem;
|
||||
padding: 1rem;
|
||||
background: var(--mood-accent-soft);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 6px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__connect {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__connect-left {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.625rem;
|
||||
gap: 0.75rem;
|
||||
color: var(--mood-accent);
|
||||
}
|
||||
|
||||
.dash__connect-text {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__connect-text {
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__connect-hint {
|
||||
font-size: 0.6875rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--mood-text-muted);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__connect-hint {
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__connect-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
padding: 0.375rem 0.875rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.625rem 1.25rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-accent-text);
|
||||
background: var(--mood-accent);
|
||||
border-radius: 4px;
|
||||
border-radius: 24px;
|
||||
text-decoration: none;
|
||||
transition: opacity 0.15s ease;
|
||||
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||
min-height: 2.75rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__connect-btn {
|
||||
font-size: 0.9375rem;
|
||||
padding: 0.5rem 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__connect-btn:hover {
|
||||
opacity: 0.88;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||
}
|
||||
|
||||
.dash__connect-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* --- Toolbox teaser --- */
|
||||
.dash__toolbox {
|
||||
background: var(--mood-surface);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 6px;
|
||||
border-radius: 16px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__toolbox {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__toolbox-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
gap: 0.5rem;
|
||||
color: var(--mood-accent);
|
||||
font-weight: 700;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 800;
|
||||
font-size: 1.0625rem;
|
||||
}
|
||||
.dash__toolbox-head h3 { margin: 0; }
|
||||
|
||||
.dash__toolbox-count {
|
||||
font-size: 0.625rem;
|
||||
font-weight: 700;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
background: var(--mood-accent-soft);
|
||||
color: var(--mood-accent);
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.dash__toolbox-desc {
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--mood-text-muted);
|
||||
padding: 2px 8px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.dash__toolbox-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.375rem;
|
||||
margin-top: 0.5rem;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.dash__tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.25rem 0.625rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 500;
|
||||
padding: 0.375rem 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-accent);
|
||||
background: var(--mood-accent-soft);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 4px;
|
||||
border-radius: 20px;
|
||||
text-decoration: none;
|
||||
transition: border-color 0.15s ease;
|
||||
transition: transform 0.1s ease;
|
||||
}
|
||||
.dash__tag:hover {
|
||||
border-color: var(--mood-accent);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.dash__toolbox-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
gap: 0.375rem;
|
||||
margin-top: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -479,19 +532,24 @@ function formatDate(dateStr: string): string {
|
||||
/* --- Activity --- */
|
||||
.dash__activity {
|
||||
background: var(--mood-surface);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 6px;
|
||||
border-radius: 16px;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__activity {
|
||||
padding: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__activity-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
gap: 0.5rem;
|
||||
color: var(--mood-text);
|
||||
font-weight: 700;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 800;
|
||||
font-size: 1.0625rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
.dash__activity-head h3 { margin: 0; }
|
||||
|
||||
@@ -504,19 +562,14 @@ function formatDate(dateStr: string): string {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem 0;
|
||||
border-bottom: 1px solid var(--mood-border);
|
||||
gap: 0.75rem;
|
||||
padding: 0.625rem 0.5rem;
|
||||
text-decoration: none;
|
||||
transition: background 0.1s;
|
||||
border-radius: 12px;
|
||||
}
|
||||
.dash__activity-item:last-child { border-bottom: none; }
|
||||
.dash__activity-item:hover {
|
||||
background: var(--mood-surface-hover);
|
||||
margin: 0 -0.5rem;
|
||||
padding-left: 0.5rem;
|
||||
padding-right: 0.5rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.dash__activity-main {
|
||||
@@ -527,16 +580,22 @@ function formatDate(dateStr: string): string {
|
||||
}
|
||||
|
||||
.dash__activity-title {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--mood-text);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__activity-title {
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__activity-date {
|
||||
font-size: 0.625rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--mood-text-muted);
|
||||
}
|
||||
|
||||
@@ -546,69 +605,82 @@ function formatDate(dateStr: string): string {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
padding: 1rem 1.25rem;
|
||||
background: var(--mood-surface);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-radius: 6px;
|
||||
border-radius: 16px;
|
||||
color: var(--mood-text-muted);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.9375rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s;
|
||||
transition: box-shadow 0.15s;
|
||||
}
|
||||
.dash__formula-trigger:hover {
|
||||
border-color: var(--mood-accent);
|
||||
box-shadow: 0 4px 12px var(--mood-shadow);
|
||||
}
|
||||
|
||||
.dash__formula-trigger-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.dash__formula-body {
|
||||
padding: 0 1rem 1rem;
|
||||
background: var(--mood-surface);
|
||||
border: 1px solid var(--mood-border);
|
||||
border-top: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.625rem;
|
||||
}
|
||||
|
||||
.dash__formula-body {
|
||||
padding: 0 1.25rem 1.25rem;
|
||||
background: var(--mood-surface);
|
||||
border-radius: 0 0 16px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.dash__formula-desc {
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.875rem;
|
||||
color: var(--mood-text-muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.dash__formula-code {
|
||||
display: block;
|
||||
padding: 0.625rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
background: var(--mood-accent-soft);
|
||||
border-radius: 4px;
|
||||
border-radius: 12px;
|
||||
font-size: 0.75rem;
|
||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||
color: var(--mood-text);
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__formula-code {
|
||||
padding: 0.75rem 1rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__formula-params {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.625rem;
|
||||
font-size: 0.625rem;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
color: var(--mood-text-muted);
|
||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.dash__formula-params {
|
||||
gap: 0.75rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
}
|
||||
|
||||
.dash__formula-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-size: 0.6875rem;
|
||||
font-weight: 600;
|
||||
gap: 0.375rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
color: var(--mood-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user