feat: ajouter sélecteur de couleur personnalisé avec palette HSL interactive, swatches redimensionnés (22px couleurs, 20px polices), bouton reset avec icône, support couleur personnalisée pour notes et texte avec tags font- et note-color-, et amélioration de l'interface du Background Studio avec meilleure organisation visuelle et support thème clair/sombre
This commit is contained in:
parent
7bd618fe38
commit
7817f5b39f
@ -1092,41 +1092,6 @@ body.view-notes .content-container {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-studio-swatches {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(6, 26px);
|
|
||||||
grid-auto-rows: 26px;
|
|
||||||
gap: 8px;
|
|
||||||
min-width: 0;
|
|
||||||
width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-studio-swatch {
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
border-radius: 999px;
|
|
||||||
border: 1px solid rgba(15, 23, 42, 0.22);
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0;
|
|
||||||
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-studio-swatch:hover {
|
|
||||||
transform: scale(1.15);
|
|
||||||
box-shadow: 0 10px 20px rgba(0,0,0,0.35);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-studio-swatch.is-active {
|
|
||||||
border: 2px solid rgba(255, 255, 255, 0.95);
|
|
||||||
box-shadow: 0 8px 16px rgba(0,0,0,0.35);
|
|
||||||
}
|
|
||||||
|
|
||||||
[data-theme="dark"] .bg-studio-swatch {
|
|
||||||
border-color: rgba(255, 255, 255, 0.28);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-studio-filters {
|
.bg-studio-filters {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -1161,18 +1126,25 @@ body.view-notes .content-container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bg-studio-reset {
|
.bg-studio-reset {
|
||||||
|
width: 28px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
padding: 0 12px;
|
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
border: 1px solid rgba(15, 23, 42, 0.18);
|
border: 1px solid rgba(15, 23, 42, 0.18);
|
||||||
background: linear-gradient(180deg, #ffffff, #f3f4f6);
|
background: linear-gradient(180deg, #ffffff, #f3f4f6);
|
||||||
color: #111827;
|
color: #111827;
|
||||||
font-size: 0.82rem;
|
font-size: 0.82rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.01em;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
|
||||||
transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
|
transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-reset i {
|
||||||
|
font-size: 16px;
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-studio-reset:hover {
|
.bg-studio-reset:hover {
|
||||||
@ -1478,6 +1450,15 @@ body.view-notes .content-container {
|
|||||||
color: var(--note-card-fg, #202124);
|
color: var(--note-card-fg, #202124);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-outer {
|
||||||
|
color: var(--note-card-fg, inherit);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-outer .link-title,
|
||||||
|
.link-outer .link-description {
|
||||||
|
color: var(--note-card-fg, inherit);
|
||||||
|
}
|
||||||
|
|
||||||
/* --- NOTES: Vue Masonry/Grid (multi-colonnes, largeur variable) --- */
|
/* --- NOTES: Vue Masonry/Grid (multi-colonnes, largeur variable) --- */
|
||||||
.notes-masonry .note-card.note-has-bg {
|
.notes-masonry .note-card.note-has-bg {
|
||||||
/* Les cartes masonry ont des largeurs variables selon les breakpoints:
|
/* Les cartes masonry ont des largeurs variables selon les breakpoints:
|
||||||
@ -1730,4 +1711,355 @@ body.view-notes .content-container {
|
|||||||
[data-theme="dark"] .palette-btn-filter i,
|
[data-theme="dark"] .palette-btn-filter i,
|
||||||
[data-theme="dark"] .palette-btn-filter-none i {
|
[data-theme="dark"] .palette-btn-filter-none i {
|
||||||
color: #e8eaed;
|
color: #e8eaed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================
|
||||||
|
Custom Color Picker Panel
|
||||||
|
========================================= */
|
||||||
|
.color-picker-panel {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1300;
|
||||||
|
width: min(320px, calc(100vw - 24px));
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
border: 1px solid var(--border, #d1d5db);
|
||||||
|
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
|
||||||
|
backdrop-filter: blur(20px);
|
||||||
|
-webkit-backdrop-filter: blur(20px);
|
||||||
|
color: var(--text-main, #0f172a);
|
||||||
|
padding: 20px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-panel.open {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-panel {
|
||||||
|
background: rgba(31, 37, 41, 0.95);
|
||||||
|
border-color: #2A3238;
|
||||||
|
box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
|
||||||
|
color: rgba(255, 255, 255, 0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-close {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.16);
|
||||||
|
background: rgba(15, 23, 42, 0.05);
|
||||||
|
color: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: background 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-close:hover {
|
||||||
|
background: rgba(15, 23, 42, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-close {
|
||||||
|
border-color: rgba(255, 255, 255, 0.16);
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-close:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.14);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-gradient {
|
||||||
|
width: 100%;
|
||||||
|
height: 140px;
|
||||||
|
border-radius: 12px;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-gradient {
|
||||||
|
border-color: rgba(255, 255, 255, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-gradient-inner {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(210, 100%, 50%));
|
||||||
|
cursor: crosshair;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-cursor {
|
||||||
|
position: absolute;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
border: 2px solid white;
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.2);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-hue {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-hue-slider {
|
||||||
|
width: 100%;
|
||||||
|
height: 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||||
|
outline: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-hue-slider::-webkit-slider-thumb {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: white;
|
||||||
|
border: 2px solid rgba(15, 23, 42, 0.3);
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-hue-slider::-moz-range-thumb {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: white;
|
||||||
|
border: 2px solid rgba(15, 23, 42, 0.3);
|
||||||
|
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-preview-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-preview {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.12);
|
||||||
|
background: #3b82f6;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-preview {
|
||||||
|
border-color: rgba(255, 255, 255, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-inputs {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-input-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-input-group label {
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
color: rgba(15, 23, 42, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-input-group label {
|
||||||
|
color: rgba(255, 255, 255, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-input-group input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 8px 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.16);
|
||||||
|
background: rgba(15, 23, 42, 0.05);
|
||||||
|
color: inherit;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: monospace;
|
||||||
|
text-transform: uppercase;
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-input-group input:focus {
|
||||||
|
border-color: #3b82f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-input-group input {
|
||||||
|
border-color: rgba(255, 255, 255, 0.16);
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 16px;
|
||||||
|
padding-top: 16px;
|
||||||
|
border-top: 1px solid rgba(15, 23, 42, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-footer {
|
||||||
|
border-color: rgba(255, 255, 255, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-btn {
|
||||||
|
padding: 8px 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-btn-secondary {
|
||||||
|
background: rgba(15, 23, 42, 0.08);
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-btn-secondary:hover {
|
||||||
|
background: rgba(15, 23, 42, 0.14);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-btn-secondary {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .color-picker-btn-secondary:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-btn-primary {
|
||||||
|
background: #3b82f6;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-picker-btn-primary:hover {
|
||||||
|
background: #2563eb;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* =========================================
|
||||||
|
Smaller swatches for Colors and Font sections
|
||||||
|
========================================= */
|
||||||
|
.bg-studio-swatches {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(6, 22px);
|
||||||
|
grid-auto-rows: 22px;
|
||||||
|
gap: 6px;
|
||||||
|
min-width: 0;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch {
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
border-radius: 999px;
|
||||||
|
border: 1px solid rgba(15, 23, 42, 0.22);
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch i {
|
||||||
|
font-size: 14px;
|
||||||
|
color: rgba(15, 23, 42, 0.6);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .bg-studio-swatch i {
|
||||||
|
color: rgba(255, 255, 255, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch:hover {
|
||||||
|
transform: scale(1.12);
|
||||||
|
box-shadow: 0 6px 16px rgba(0,0,0,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch.is-active {
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.95);
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch-custom {
|
||||||
|
background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.04));
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .bg-studio-swatch-custom {
|
||||||
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatch-custom:hover {
|
||||||
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-theme="dark"] .bg-studio-swatch {
|
||||||
|
border-color: rgba(255, 255, 255, 0.28);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Font swatches - slightly smaller */
|
||||||
|
.bg-studio-swatches-font {
|
||||||
|
grid-template-columns: repeat(6, 20px);
|
||||||
|
grid-auto-rows: 20px;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatches-font .bg-studio-swatch {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bg-studio-swatches-font .bg-studio-swatch i {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom note color style */
|
||||||
|
.note-card.note-color-custom,
|
||||||
|
.note-modal.note-color-custom {
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure Font section is properly sized */
|
||||||
|
.bg-studio-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user