feat: ajouter la fonctionnalité de saisie automatique pour les tags dans les formulaires d'ajout et d'édition de liens
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
/* Awesomplete Base Styles */
|
||||
.awesomplete [hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.awesomplete .visually-hidden {
|
||||
position: absolute;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.awesomplete {
|
||||
display: block;
|
||||
/* Changed from inline-block to match input width */
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.awesomplete>input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
/* Ensure input takes full width */
|
||||
}
|
||||
|
||||
.awesomplete>ul {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
z-index: 1000;
|
||||
/* Increased Z-Index */
|
||||
min-width: 100%;
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.25rem 0 0;
|
||||
background: var(--bg-card);
|
||||
/* Theme Variable */
|
||||
border: 1px solid var(--border);
|
||||
/* Theme Variable */
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: var(--shadow-lg);
|
||||
/* Theme Variable */
|
||||
text-shadow: none;
|
||||
overflow: hidden;
|
||||
color: var(--text-main);
|
||||
/* Theme Variable */
|
||||
animation: slideDown 0.2s ease;
|
||||
}
|
||||
|
||||
.awesomplete>ul:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.awesomplete>ul>li {
|
||||
position: relative;
|
||||
padding: 0.75rem 1rem;
|
||||
cursor: pointer;
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-main);
|
||||
transition: background 0.1s ease;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.awesomplete>ul>li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* Hover State */
|
||||
.awesomplete>ul>li:hover {
|
||||
background: var(--bg-card-hover);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* Selected State */
|
||||
.awesomplete>ul>li[aria-selected="true"] {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Highlighted Match */
|
||||
.awesomplete mark {
|
||||
background: rgba(255, 255, 0, 0.3);
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.awesomplete li[aria-selected="true"] mark {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
/* Dark Mode Adjustments */
|
||||
[data-theme="dark"] .awesomplete>ul {
|
||||
background: var(--bg-card);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .awesomplete>ul>li:hover {
|
||||
background: var(--bg-card-hover);
|
||||
}
|
||||
|
||||
/* Fix for Card Overflow affecting dropdown visibility */
|
||||
.card,
|
||||
.form-add .card,
|
||||
.page-edit .card {
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user