feat: unifier le style des tags avec variables CSS --tag-bg/--tag-text, standardiser les dimensions des boutons de suppression (1.1rem), convertir les valeurs px en rem pour meilleure cohérence, améliorer l'indentation des règles CSS de la modale et des cartes, et harmoniser les styles entre note-modal-tags et note-tags pour interface cohérente
This commit is contained in:
+240
-232
@@ -452,275 +452,283 @@ body.view-notes .content-container {
|
||||
border-top-color: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.note-modal-tags.is-empty {
|
||||
display: none;
|
||||
}
|
||||
.note-modal-tags.is-empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.note-modal-tags .note-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
border: 1px solid rgba(0, 0, 0, 0.14);
|
||||
color: inherit;
|
||||
border-radius: 999px;
|
||||
padding: 4px 8px;
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.note-modal-tags .note-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
background: var(--tag-bg);
|
||||
color: var(--tag-text);
|
||||
border-radius: 999px;
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.note-modal-tags .note-tag-text {
|
||||
line-height: 1.2;
|
||||
}
|
||||
.note-modal-tags .note-tag-text {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.note-modal-tags .note-tag-remove-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
color: currentColor;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.note-modal-tags .note-tag-remove-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
color: currentColor;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-modal-tags .note-tag-remove-btn {
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
[data-theme="dark"] .note-modal-tags .note-tag-remove-btn {
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.note-modal-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.note-modal-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.12);
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-modal-actions {
|
||||
border-top-color: rgba(255, 255, 255, 0.12);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
[data-theme="dark"] .note-modal-actions {
|
||||
border-top-color: rgba(255, 255, 255, 0.12);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.note-modal-actions-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.note-modal-actions-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.note-modal-actions-left > button,
|
||||
.note-modal-actions-left > a,
|
||||
.note-modal-actions-left > .note-modal-color-picker > button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
opacity: 0.9;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
.note-modal-actions-left > button,
|
||||
.note-modal-actions-left > a,
|
||||
.note-modal-actions-left > .note-modal-color-picker > button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
opacity: 0.9;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.note-modal-actions-left > button:hover,
|
||||
.note-modal-actions-left > a:hover,
|
||||
.note-modal-actions-left > .note-modal-color-picker > button:hover {
|
||||
opacity: 1;
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.note-modal-actions-left > button:hover,
|
||||
.note-modal-actions-left > a:hover,
|
||||
.note-modal-actions-left > .note-modal-color-picker > button:hover {
|
||||
opacity: 1;
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-modal-actions-left > button:hover,
|
||||
[data-theme="dark"] .note-modal-actions-left > a:hover,
|
||||
[data-theme="dark"] .note-modal-actions-left > .note-modal-color-picker > button:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
[data-theme="dark"] .note-modal-actions-left > button:hover,
|
||||
[data-theme="dark"] .note-modal-actions-left > a:hover,
|
||||
[data-theme="dark"] .note-modal-actions-left > .note-modal-color-picker > button:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.note-modal-close-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
font-weight: 600;
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.note-modal-close-btn {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
font-weight: 600;
|
||||
border-radius: 8px;
|
||||
padding: 6px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.note-modal-close-btn:hover {
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.note-modal-close-btn:hover {
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-modal-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
[data-theme="dark"] .note-modal-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.note-modal-pin-toggle {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
opacity: 0.85;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.note-modal-pin-toggle {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: inherit;
|
||||
opacity: 0.85;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.note-modal-pin-toggle:hover,
|
||||
.note-modal-pin-toggle.active {
|
||||
opacity: 1;
|
||||
background-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.note-modal-pin-toggle:hover,
|
||||
.note-modal-pin-toggle.active {
|
||||
opacity: 1;
|
||||
background-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-modal-pin-toggle:hover,
|
||||
[data-theme="dark"] .note-modal-pin-toggle.active {
|
||||
background-color: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
[data-theme="dark"] .note-modal-pin-toggle:hover,
|
||||
[data-theme="dark"] .note-modal-pin-toggle.active {
|
||||
background-color: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
/* --- CARD STYLING --- */
|
||||
.note-card {
|
||||
background-color: var(--background-secondary, #ffffff);
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
break-inside: avoid;
|
||||
position: relative;
|
||||
transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
|
||||
overflow: visible;
|
||||
color: var(--note-card-fg, #202124);
|
||||
}
|
||||
/* --- CARD STYLING --- */
|
||||
.note-card {
|
||||
background-color: var(--background-secondary, #ffffff);
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 16px;
|
||||
break-inside: avoid;
|
||||
position: relative;
|
||||
transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s;
|
||||
overflow: visible;
|
||||
color: var(--note-card-fg, #202124);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-card {
|
||||
background-color: #202124;
|
||||
border: 1px solid #5f6368;
|
||||
color: #e8eaed;
|
||||
}
|
||||
[data-theme="dark"] .note-card {
|
||||
background-color: #202124;
|
||||
border: 1px solid #5f6368;
|
||||
color: #e8eaed;
|
||||
}
|
||||
|
||||
.note-card:hover {
|
||||
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
|
||||
}
|
||||
.note-card:hover {
|
||||
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-card:hover {
|
||||
background-color: #202124;
|
||||
}
|
||||
[data-theme="dark"] .note-card:hover {
|
||||
background-color: #202124;
|
||||
}
|
||||
|
||||
/* Cover Image */
|
||||
.note-cover {
|
||||
overflow: hidden;
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
/* Cover Image */
|
||||
.note-cover {
|
||||
overflow: hidden;
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
|
||||
.note-cover img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
.note-cover img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
/* Inner Content */
|
||||
.note-inner {
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
/* Inner Content */
|
||||
.note-inner {
|
||||
padding: 12px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
/* Title */
|
||||
.note-title {
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
line-height: 1.5rem;
|
||||
color: var(--text-color, #202124);
|
||||
}
|
||||
/* Title */
|
||||
.note-title {
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
line-height: 1.5rem;
|
||||
color: var(--text-color, #202124);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-title {
|
||||
color: #e8eaed;
|
||||
}
|
||||
[data-theme="dark"] .note-title {
|
||||
color: #e8eaed;
|
||||
}
|
||||
|
||||
/* Body (Truncated) */
|
||||
.note-body {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
color: var(--text-color, #202124);
|
||||
word-wrap: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 12;
|
||||
line-clamp: 12;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
max-height: 300px;
|
||||
}
|
||||
/* Body (Truncated) */
|
||||
.note-body {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
color: var(--text-color, #202124);
|
||||
word-wrap: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 12;
|
||||
line-clamp: 12;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-body {
|
||||
color: #e8eaed;
|
||||
}
|
||||
[data-theme="dark"] .note-body {
|
||||
color: #e8eaed;
|
||||
}
|
||||
|
||||
/* Tags */
|
||||
.note-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
/* Tags */
|
||||
.note-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.note-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.7rem;
|
||||
color: var(--text-light);
|
||||
}
|
||||
.note-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
background: var(--tag-bg);
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: var(--tag-text);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-tag {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #9aa0a6;
|
||||
}
|
||||
[data-theme="dark"] .note-tag {
|
||||
background: var(--tag-bg);
|
||||
color: var(--tag-text);
|
||||
}
|
||||
|
||||
.note-tag-text {
|
||||
line-height: 1.2;
|
||||
}
|
||||
.note-tag-text {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.note-tag-remove-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
color: currentColor;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
font-size: 14px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.note-tag-remove-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
color: currentColor;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .note-tag-remove-btn {
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
/* Hover Actions */
|
||||
.note-tag:hover,
|
||||
.note-modal-tags .note-tag:hover {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.note-tag:hover .note-tag-remove-btn,
|
||||
.note-modal-tags .note-tag:hover .note-tag-remove-btn {
|
||||
background: rgba(255, 255, 255, 0.22);
|
||||
}
|
||||
|
||||
.note-hover-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user