Redesign help modal and header dropdown menu with modern card-based UI, enhanced visual hierarchy, and comprehensive user guide sections
This commit is contained in:
parent
05dc436cea
commit
1e7c8dd6a8
@ -88,23 +88,44 @@
|
|||||||
<i data-lucide="settings" style="width:18px;height:18px"></i>
|
<i data-lucide="settings" style="width:18px;height:18px"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="header-menu-dropdown" id="header-menu-dropdown">
|
<div class="header-menu-dropdown" id="header-menu-dropdown">
|
||||||
|
<div class="menu-overview">
|
||||||
|
<div class="menu-overview-badge">⚙️ Réglages rapides</div>
|
||||||
|
<div class="menu-overview-title">Personnalisez votre espace</div>
|
||||||
|
<div class="menu-overview-subtitle">Vault actif, thème et guide d'utilisation en un seul endroit.</div>
|
||||||
|
</div>
|
||||||
<div class="menu-section">
|
<div class="menu-section">
|
||||||
<div class="menu-label">Vault</div>
|
<div class="menu-label">Vault</div>
|
||||||
|
<div class="menu-field-card">
|
||||||
|
<div class="menu-field-icon">🗂️</div>
|
||||||
|
<div class="menu-field-body">
|
||||||
|
<div class="menu-field-title">Contexte de navigation</div>
|
||||||
<select id="vault-filter" class="menu-select">
|
<select id="vault-filter" class="menu-select">
|
||||||
<option value="all">Tous les vaults</option>
|
<option value="all">Tous les vaults</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="menu-divider"></div>
|
<div class="menu-divider"></div>
|
||||||
<div class="menu-section">
|
<div class="menu-section">
|
||||||
<div class="menu-label">Thème</div>
|
<div class="menu-label">Thème</div>
|
||||||
|
<div class="menu-field-card">
|
||||||
|
<div class="menu-field-icon">🌗</div>
|
||||||
|
<div class="menu-field-body">
|
||||||
|
<div class="menu-field-title">Apparence</div>
|
||||||
<button class="menu-theme-btn" id="theme-toggle">
|
<button class="menu-theme-btn" id="theme-toggle">
|
||||||
<i data-lucide="sun" style="width:16px;height:16px"></i>
|
<i data-lucide="sun" style="width:16px;height:16px"></i>
|
||||||
<span id="theme-label">Clair</span>
|
<span id="theme-label">Clair</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="menu-divider"></div>
|
<div class="menu-divider"></div>
|
||||||
<div class="menu-section">
|
<div class="menu-section">
|
||||||
<div class="menu-label">Aide</div>
|
<div class="menu-label">Aide</div>
|
||||||
|
<div class="menu-field-card">
|
||||||
|
<div class="menu-field-icon">💡</div>
|
||||||
|
<div class="menu-field-body">
|
||||||
|
<div class="menu-field-title">Documentation intégrée</div>
|
||||||
<button class="menu-theme-btn" id="help-open-btn">
|
<button class="menu-theme-btn" id="help-open-btn">
|
||||||
<i data-lucide="circle-help" style="width:16px;height:16px"></i>
|
<i data-lucide="circle-help" style="width:16px;height:16px"></i>
|
||||||
<span>Ouvrir l'aide</span>
|
<span>Ouvrir l'aide</span>
|
||||||
@ -113,6 +134,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Main -->
|
<!-- Main -->
|
||||||
@ -207,34 +230,141 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="editor-body help-body" id="help-body">
|
<div class="editor-body help-body" id="help-body">
|
||||||
<div class="help-content">
|
<div class="help-content">
|
||||||
<h1>Guide d'utilisation</h1>
|
<section class="help-hero">
|
||||||
<p>ObsiGate vous permet d'explorer vos notes, de naviguer rapidement entre les vaults et d'utiliser les tags pour filtrer ou retrouver vos contenus.</p>
|
<div class="help-hero-copy">
|
||||||
|
<div class="help-kicker">📘 Guide d'utilisation</div>
|
||||||
|
<h1>Bienvenue dans ObsiGate</h1>
|
||||||
|
<p>Explorez vos notes, changez de vault en un clic, filtrez avec les tags et retrouvez immédiatement le bon document grâce à une navigation pensée pour aller vite.</p>
|
||||||
|
<div class="help-badges">
|
||||||
|
<span class="help-badge">⚡ Navigation rapide</span>
|
||||||
|
<span class="help-badge">🗂️ Multi-vault</span>
|
||||||
|
<span class="help-badge">🏷️ Tags intelligents</span>
|
||||||
|
<span class="help-badge">📝 Lecture et édition</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="help-hero-visual" aria-hidden="true">
|
||||||
|
<div class="help-mini-window">
|
||||||
|
<div class="help-mini-window-bar">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
<div class="help-mini-window-body">
|
||||||
|
<div class="help-mini-sidebar"></div>
|
||||||
|
<div class="help-mini-content">
|
||||||
|
<div class="help-mini-line short"></div>
|
||||||
|
<div class="help-mini-line"></div>
|
||||||
|
<div class="help-mini-tags">
|
||||||
|
<span>#docker</span>
|
||||||
|
<span>#infra</span>
|
||||||
|
<span>#linux</span>
|
||||||
|
</div>
|
||||||
|
<div class="help-mini-card"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h2>Présentation générale de l'interface</h2>
|
<section class="help-grid">
|
||||||
<p>L'application est organisée autour de trois zones principales : l'en-tête avec la recherche et les options, la barre latérale avec les vaults et les tags, et la zone centrale pour consulter, rechercher et modifier les fichiers.</p>
|
<article class="help-card">
|
||||||
|
<div class="help-card-icon">🔎</div>
|
||||||
|
<h2>Rechercher vite</h2>
|
||||||
|
<p>Utilisez la barre de recherche en haut pour retrouver un mot, un titre ou un contenu dans vos notes.</p>
|
||||||
|
</article>
|
||||||
|
<article class="help-card">
|
||||||
|
<div class="help-card-icon">🗃️</div>
|
||||||
|
<h2>Changer de vault</h2>
|
||||||
|
<p>Le sélecteur de vault vous permet de rester sur <code>Tous les vaults</code> ou de vous concentrer sur un espace précis.</p>
|
||||||
|
</article>
|
||||||
|
<article class="help-card">
|
||||||
|
<div class="help-card-icon">🏷️</div>
|
||||||
|
<h2>Filtrer par tags</h2>
|
||||||
|
<p>Cliquez sur un tag pour affiner les résultats et retrouver rapidement les notes associées.</p>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h2>Sections principales</h2>
|
<section class="help-section">
|
||||||
<h3>Vaults</h3>
|
<h2>🧭 Comprendre l’interface</h2>
|
||||||
<p>La section Vaults regroupe les espaces suivants : Recettes, IT, Main, Workout, Sessions et Bruno. Vous pouvez ouvrir un vault pour explorer son arborescence, puis sélectionner un fichier pour l'afficher.</p>
|
<div class="help-feature-list">
|
||||||
<h3>Tags</h3>
|
<div class="help-feature-item">
|
||||||
<p>La section Tags affiche les étiquettes disponibles comme <code>#serveur</code>, <code>#TDM</code>, <code>#local</code>, <code>#linux</code>, <code>#debian</code>, <code>#docker</code>, <code>#None</code>, <code>#documentation</code>, <code>#network</code>, <code>#fiche-equipement</code>, <code>#fiche-infra</code>, <code>#fiche-reseau</code>, <code>#ssh</code> et <code>#bruno</code>. Cliquez sur un tag pour lancer un filtrage rapide.</p>
|
<div class="help-feature-emoji">🧱</div>
|
||||||
|
<div>
|
||||||
|
<h3>En-tête</h3>
|
||||||
|
<p>Il regroupe la recherche globale, le bouton menu des options et l’accès rapide à l’identité de l’application.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="help-feature-item">
|
||||||
|
<div class="help-feature-emoji">🌲</div>
|
||||||
|
<div>
|
||||||
|
<h3>Sidebar</h3>
|
||||||
|
<p>La barre latérale affiche les vaults, les dossiers, les fichiers et les tags. Elle peut être redimensionnée sur desktop.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="help-feature-item">
|
||||||
|
<div class="help-feature-emoji">📄</div>
|
||||||
|
<div>
|
||||||
|
<h3>Zone centrale</h3>
|
||||||
|
<p>Elle sert à lire la note, afficher son chemin, voir ses tags et déclencher les actions comme copier, source, télécharger ou éditer.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h2>Éléments interactifs</h2>
|
<section class="help-section">
|
||||||
<h3>Sélection rapide des vaults</h3>
|
<h2>🚀 Parcours recommandé</h2>
|
||||||
<p>Le menu déroulant en haut de l'arborescence vous permet de vous focaliser instantanément sur un vault précis ou de revenir à l'affichage global avec <code>Tous les vaults</code>.</p>
|
<div class="help-steps">
|
||||||
<h3>Panneaux réductibles</h3>
|
<div class="help-step">
|
||||||
<p>Les sections Vaults et Tags peuvent être réduites ou développées depuis leur en-tête pour gagner de l'espace dans la barre latérale.</p>
|
<div class="help-step-number">1</div>
|
||||||
|
<div>
|
||||||
|
<h3>Choisissez un contexte</h3>
|
||||||
|
<p>Sélectionnez un vault dans le menu du haut ou dans la sidebar pour réduire le bruit et cibler votre navigation.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="help-step">
|
||||||
|
<div class="help-step-number">2</div>
|
||||||
|
<div>
|
||||||
|
<h3>Explorez l’arborescence</h3>
|
||||||
|
<p>Dépliez les dossiers, ouvrez une note et utilisez le chemin en haut de page pour revenir visuellement au bon endroit dans la sidebar.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="help-step">
|
||||||
|
<div class="help-step-number">3</div>
|
||||||
|
<div>
|
||||||
|
<h3>Affinez avec les tags</h3>
|
||||||
|
<p>Ajoutez un ou plusieurs tags pour filtrer vos contenus de façon plus fine et faire émerger les notes pertinentes.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h2>Actions courantes</h2>
|
<section class="help-section">
|
||||||
<h3>Créer ou modifier</h3>
|
<h2>✨ Actions utiles au quotidien</h2>
|
||||||
<p>Ouvrez un fichier puis utilisez l'action d'édition pour modifier son contenu. Le mode source et la sauvegarde sont accessibles depuis la zone de lecture.</p>
|
<div class="help-checklist">
|
||||||
<h3>Rechercher</h3>
|
<div class="help-check-item"><span>✅</span><p>Basculer entre thème <strong>clair</strong> et <strong>sombre</strong> depuis le menu Options.</p></div>
|
||||||
<p>Utilisez la barre de recherche en haut pour retrouver des notes par texte. Vous pouvez combiner la recherche avec un vault sélectionné et un ou plusieurs tags.</p>
|
<div class="help-check-item"><span>✅</span><p>Utiliser <code>Tous les vaults</code> pour une vue globale ou cibler un seul vault pour une navigation plus nette.</p></div>
|
||||||
<h3>Naviguer</h3>
|
<div class="help-check-item"><span>✅</span><p>Cliquer sur un tag dans la note ou dans la sidebar pour lancer un filtrage rapide.</p></div>
|
||||||
<p>Dépliez les dossiers et vaults dans la barre latérale, ou utilisez directement la sélection rapide pour aller au bon contexte plus vite.</p>
|
<div class="help-check-item"><span>✅</span><p>Ouvrir une note puis utiliser <strong>Copier</strong>, <strong>Source</strong>, <strong>Télécharger</strong> ou <strong>Éditer</strong>.</p></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<h2>Astuces</h2>
|
<section class="help-section help-tip-panel">
|
||||||
<p>Le thème clair/sombre est disponible dans le menu Options. Vous pouvez aussi redimensionner la barre latérale et la zone des tags sur desktop pour adapter l'affichage à votre usage.</p>
|
<h2>💡 Astuces</h2>
|
||||||
|
<div class="help-tip-grid">
|
||||||
|
<div class="help-tip-card">
|
||||||
|
<h3>Navigation visuelle</h3>
|
||||||
|
<p>Quand vous cliquez sur le chemin d’une note, la sidebar se repositionne automatiquement pour montrer l’élément correspondant.</p>
|
||||||
|
</div>
|
||||||
|
<div class="help-tip-card">
|
||||||
|
<h3>Gestion de l’espace</h3>
|
||||||
|
<p>Réduisez <code>VAULTS</code> ou <code>TAGS</code> pour donner plus d’espace à la section qui vous intéresse le plus.</p>
|
||||||
|
</div>
|
||||||
|
<div class="help-tip-card">
|
||||||
|
<h3>Confort de lecture</h3>
|
||||||
|
<p>Adaptez la largeur de la sidebar et la hauteur de la zone tags sur desktop pour un affichage plus confortable.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -182,24 +182,28 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-btn {
|
.header-menu-btn {
|
||||||
background: none;
|
background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 92%, white 8%), var(--bg-secondary));
|
||||||
border: 1px solid var(--border);
|
border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
|
||||||
border-radius: 8px;
|
border-radius: 12px;
|
||||||
padding: 6px 10px;
|
padding: 10px 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: color 200ms ease, border-color 200ms ease;
|
justify-content: center;
|
||||||
|
box-shadow: 0 8px 24px rgba(0,0,0,0.22);
|
||||||
|
transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 180ms ease, box-shadow 200ms ease;
|
||||||
}
|
}
|
||||||
.header-menu-btn:hover {
|
.header-menu-btn:hover {
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 12px 28px rgba(0,0,0,0.28);
|
||||||
}
|
}
|
||||||
.header-menu-btn.active {
|
.header-menu-btn.active {
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
background: var(--tag-bg);
|
background: color-mix(in srgb, var(--accent) 16%, var(--bg-secondary));
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-dropdown {
|
.header-menu-dropdown {
|
||||||
@ -207,20 +211,55 @@ a:hover {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(100% + 8px);
|
top: calc(100% + 8px);
|
||||||
right: 0;
|
right: 0;
|
||||||
background: var(--bg-secondary);
|
background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 96%, white 4%), var(--bg-secondary));
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 8px;
|
border-radius: 14px;
|
||||||
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
|
box-shadow: 0 18px 44px rgba(0,0,0,0.42);
|
||||||
min-width: 220px;
|
min-width: 330px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
padding: 8px;
|
padding: 14px;
|
||||||
|
backdrop-filter: blur(12px);
|
||||||
}
|
}
|
||||||
.header-menu-dropdown.active {
|
.header-menu-dropdown.active {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-overview {
|
||||||
|
padding: 10px 12px 14px;
|
||||||
|
border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
|
||||||
|
border-radius: 12px;
|
||||||
|
background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-overview-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 4px 8px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||||
|
color: var(--accent);
|
||||||
|
font-family: 'JetBrains Mono', monospace;
|
||||||
|
font-size: 0.68rem;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-overview-title {
|
||||||
|
font-family: 'JetBrains Mono', monospace;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-overview-subtitle {
|
||||||
|
font-size: 0.82rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
.menu-section {
|
.menu-section {
|
||||||
padding: 8px;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-label {
|
.menu-label {
|
||||||
@ -233,48 +272,87 @@ a:hover {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-select {
|
.menu-field-card {
|
||||||
width: 100%;
|
display: flex;
|
||||||
padding: 6px 10px;
|
gap: 10px;
|
||||||
|
align-items: flex-start;
|
||||||
|
padding: 12px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 6px;
|
border-radius: 12px;
|
||||||
background: var(--search-bg);
|
background: color-mix(in srgb, var(--bg-primary) 58%, transparent);
|
||||||
color: var(--text-primary);
|
}
|
||||||
|
|
||||||
|
.menu-field-icon {
|
||||||
|
width: 34px;
|
||||||
|
height: 34px;
|
||||||
|
border-radius: 10px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||||
|
flex: 0 0 auto;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-field-body {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-field-title {
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
color: var(--text-primary);
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-select {
|
||||||
|
width: 100%;
|
||||||
|
padding: 11px 14px;
|
||||||
|
border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
|
||||||
|
border-radius: 10px;
|
||||||
|
background: color-mix(in srgb, var(--search-bg) 88%, white 12%);
|
||||||
|
color: var(--text-primary);
|
||||||
|
font-family: 'JetBrains Mono', monospace;
|
||||||
|
font-size: 0.86rem;
|
||||||
|
font-weight: 700;
|
||||||
outline: none;
|
outline: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: border-color 200ms ease;
|
transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
|
||||||
}
|
}
|
||||||
.menu-select:hover, .menu-select:focus {
|
.menu-select:hover, .menu-select:focus {
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-divider {
|
.menu-divider {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: var(--border);
|
background: var(--border);
|
||||||
margin: 4px 0;
|
margin: 2px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-theme-btn {
|
.menu-theme-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: none;
|
background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 92%, white 8%), var(--bg-primary));
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 6px;
|
border-radius: 10px;
|
||||||
padding: 8px 12px;
|
padding: 11px 12px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
font-family: 'JetBrains Mono', monospace;
|
font-family: 'JetBrains Mono', monospace;
|
||||||
font-size: 0.8rem;
|
font-size: 0.84rem;
|
||||||
transition: all 200ms ease;
|
font-weight: 700;
|
||||||
|
transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 180ms ease;
|
||||||
}
|
}
|
||||||
.menu-theme-btn:hover {
|
.menu-theme-btn:hover {
|
||||||
background: var(--bg-hover);
|
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
|
background: color-mix(in srgb, var(--accent) 10%, var(--bg-primary));
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Main body --- */
|
/* --- Main body --- */
|
||||||
@ -1101,10 +1179,10 @@ a:hover {
|
|||||||
}
|
}
|
||||||
.help-body {
|
.help-body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: var(--bg-primary);
|
background: radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%), var(--bg-primary);
|
||||||
}
|
}
|
||||||
.help-content {
|
.help-content {
|
||||||
max-width: 820px;
|
max-width: 920px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 28px 24px 40px;
|
padding: 28px 24px 40px;
|
||||||
}
|
}
|
||||||
@ -1139,6 +1217,245 @@ a:hover {
|
|||||||
padding: 1px 5px;
|
padding: 1px 5px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.help-hero {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
|
||||||
|
gap: 22px;
|
||||||
|
align-items: stretch;
|
||||||
|
padding: 22px;
|
||||||
|
border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
|
||||||
|
border-radius: 18px;
|
||||||
|
background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%), color-mix(in srgb, var(--bg-secondary) 92%, var(--bg-primary));
|
||||||
|
margin-bottom: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-kicker {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||||
|
color: var(--accent);
|
||||||
|
font-family: 'JetBrains Mono', monospace;
|
||||||
|
font-size: 0.72rem;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-badges {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 6px 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
color: var(--text-primary);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-hero-visual {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-window {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 320px;
|
||||||
|
border-radius: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
|
||||||
|
background: color-mix(in srgb, var(--bg-primary) 88%, black 12%);
|
||||||
|
box-shadow: 0 18px 44px rgba(0,0,0,0.28);
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-window-bar {
|
||||||
|
display: flex;
|
||||||
|
gap: 7px;
|
||||||
|
padding: 12px 14px;
|
||||||
|
border-bottom: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-window-bar span {
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: color-mix(in srgb, var(--accent) 45%, var(--text-muted));
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-window-body {
|
||||||
|
display: flex;
|
||||||
|
min-height: 190px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-sidebar {
|
||||||
|
width: 72px;
|
||||||
|
background: color-mix(in srgb, var(--bg-secondary) 92%, black 8%);
|
||||||
|
border-right: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-content {
|
||||||
|
flex: 1;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-line {
|
||||||
|
height: 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: color-mix(in srgb, var(--text-muted) 28%, transparent);
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-line.short {
|
||||||
|
width: 62%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-tags {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
margin: 14px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-tags span {
|
||||||
|
padding: 3px 8px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||||
|
color: var(--text-primary);
|
||||||
|
font-size: 0.72rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-mini-card {
|
||||||
|
height: 64px;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 94%, white 6%), var(--bg-primary));
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
gap: 16px;
|
||||||
|
margin-bottom: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-card {
|
||||||
|
padding: 18px;
|
||||||
|
border-radius: 16px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: color-mix(in srgb, var(--bg-secondary) 92%, var(--bg-primary));
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-card-icon {
|
||||||
|
width: 42px;
|
||||||
|
height: 42px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||||
|
font-size: 1.2rem;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-section {
|
||||||
|
margin-top: 26px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-feature-list,
|
||||||
|
.help-steps,
|
||||||
|
.help-checklist,
|
||||||
|
.help-tip-grid {
|
||||||
|
display: grid;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-feature-item,
|
||||||
|
.help-step,
|
||||||
|
.help-check-item,
|
||||||
|
.help-tip-card {
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 16px;
|
||||||
|
background: color-mix(in srgb, var(--bg-secondary) 92%, var(--bg-primary));
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-feature-item {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 52px minmax(0, 1fr);
|
||||||
|
gap: 14px;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-feature-emoji {
|
||||||
|
width: 52px;
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: 14px;
|
||||||
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-steps {
|
||||||
|
counter-reset: step;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-step {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 44px minmax(0, 1fr);
|
||||||
|
gap: 14px;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-step-number {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
background: color-mix(in srgb, var(--accent) 18%, transparent);
|
||||||
|
color: var(--accent);
|
||||||
|
font-family: 'JetBrains Mono', monospace;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-check-item {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 28px minmax(0, 1fr);
|
||||||
|
gap: 12px;
|
||||||
|
padding: 14px 16px;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-check-item span {
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-check-item p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-tip-panel {
|
||||||
|
margin-top: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-tip-grid {
|
||||||
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-tip-card {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
.cm-editor {
|
.cm-editor {
|
||||||
height: auto;
|
height: auto;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
@ -1290,12 +1607,12 @@ body.resizing-v {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-btn {
|
.header-menu-btn {
|
||||||
padding: 5px 8px;
|
padding: 8px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu-dropdown {
|
.header-menu-dropdown {
|
||||||
right: -8px;
|
right: -8px;
|
||||||
min-width: 200px;
|
min-width: 280px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-quick-select {
|
.sidebar-quick-select {
|
||||||
@ -1354,6 +1671,16 @@ body.resizing-v {
|
|||||||
padding: 20px 16px 28px;
|
padding: 20px 16px 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.help-hero {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
padding: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-grid,
|
||||||
|
.help-tip-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
.content-area {
|
.content-area {
|
||||||
padding: 16px 12px 60px;
|
padding: 16px 12px 60px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user