mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 15:18:16 +02:00
UI: CSS complet pour RSS, OpenRouter et administration améliorée
## Layout: - Grid 3 colonnes: notes + todo-box + rss-box - RSS box sticky avec scroll indépendant - Styles articles RSS avec preview, source, date - Bouton résumé IA dans header RSS box - Responsive: stack vertical sur <1200px ## Modal Admin: - Système d'onglets moderne (Users/RSS/OpenRouter) - Tabs avec underline animation sur actif - Tab content avec scroll indépendant (60vh max) - Styles harmonisés avec thème noir/blanc ## Flux RSS: - Liste feeds avec toggle on/off (switch animé) - Card per feed: title, URL, actions - Input URL avec validation visuelle - Bouton fetch articles avec style secondaire - Hover effects et transitions ## OpenRouter Settings: - Form groups avec labels et hints - Input API key (type password) - Select modèle avec taille 8 pour recherche - Textarea prompt avec resize vertical - Checkbox activation résumés - Link vers openrouter.ai ## Modal changement mot de passe: - Small modal (450px max) - Form clean avec 2 inputs password - Labels et placeholders clairs - Actions alignées à droite - Validation visuelle ## Design tokens: - Cohérence totale avec variables.css - Shadows, radius, spacing uniformes - Transitions fluides partout - States hover/focus/active - Accessible et moderne
This commit is contained in:
2 files changed
+419
-2
No files matched your search
+122
-2
@@ -229,7 +229,7 @@ body {
|
||||
max-width: var(--max-width);
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr var(--todo-box-width);
|
||||
grid-template-columns: 1fr var(--todo-box-width) var(--todo-box-width);
|
||||
gap: var(--spacing-xl);
|
||||
align-items: start;
|
||||
}
|
||||
@@ -365,13 +365,133 @@ body {
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
/* RSS Box */
|
||||
.rss-box {
|
||||
position: sticky;
|
||||
top: calc(var(--header-height) + var(--spacing-xl));
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-xl);
|
||||
box-shadow: var(--shadow-md);
|
||||
max-height: calc(100vh - var(--header-height) - var(--spacing-2xl) * 2);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.rss-box-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.rss-box-title {
|
||||
font-size: var(--font-size-xl);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.btn-summarize {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-accent);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition-fast);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-summarize:hover {
|
||||
background: var(--color-accent-hover);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.btn-summarize svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.rss-articles-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.rss-empty {
|
||||
text-align: center;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
padding: var(--spacing-2xl);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.rss-article {
|
||||
padding: var(--spacing-md);
|
||||
background: var(--color-background);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--color-border);
|
||||
transition: all var(--transition-fast);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.rss-article:hover {
|
||||
background: var(--color-hover);
|
||||
border-color: var(--color-accent);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.rss-article-title {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--color-text-primary);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
line-height: 1.4;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.rss-article-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-text-secondary);
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.rss-article-source {
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.rss-article-description {
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.5;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 1200px) {
|
||||
.content-container {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.todo-box {
|
||||
.todo-box,
|
||||
.rss-box {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user