« Modèle:Accueil/search/styles.css » : différence entre les versions
De Nefald
Autres actions
< Modèle:Accueil | search
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 67 : | Ligne 67 : | ||
.accueil-search-container.hidden { | .accueil-search-container.hidden { | ||
display: none; | display: none; | ||
} | |||
/* bouger la barre de 56px vers la droite et 20 vers le haut */ | |||
@media (min-width: 1000px) { | |||
.citizen-command-palette{ | |||
left: calc(56px + var(--space-xs)); | |||
top: 2rem; | |||
} | |||
} | } | ||
Version du 6 novembre 2025 à 13:56
/* Container positionné comme la command palette */
.accueil-search-container {
position: fixed;
top: var(--space-xxl);
right: var(--space-xs);
left: calc(56px + var(--space-xs));
z-index: 100;
max-width: 56rem;
margin-inline: auto;
pointer-events: none;
}
/* Barre de recherche avec effet glass identique */
.accueil-search-bar {
display: flex;
align-items: center;
padding: var(--space-xs) var(--space-md); /* Plus compacte */
overflow: hidden;
border: var(--border-base);
border-radius: var(--border-radius-medium);
box-shadow: var(--box-shadow-drop-xx-large);
backdrop-filter: var(--backdrop-filter-frosted-glass);
font-size: var(--font-size-small);
line-height: var(--line-height-small);
cursor: pointer;
pointer-events: auto;
transition-property: background-color, border-color, box-shadow;
transition-duration: 0.2s;
transition-timing-function: ease;
}
/* États interactifs */
.accueil-search-bar:hover {
border-color: var(--color-progressive);
box-shadow: var(--box-shadow-drop-xx-large), 0 0 0 1px var(--color-progressive);
}
.accueil-search-bar:active {
transform: translateY(1px);
}
/* Icône - wrapper inline de l'image */
.accueil-search-icon {
display: inline-flex;
align-items: center;
margin-right: var(--space-xs);
line-height: 0;
opacity: var(--opacity-icon-base);
}
/* Cibler l'image MediaWiki générée */
.accueil-search-icon img {
vertical-align: middle;
}
/* Texte placeholder - typographie identique à command palette */
.accueil-search-text {
color: var(--color-base);
font-weight: var(--font-weight-normal);
flex: 1 1 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Masquer sur scroll pour éviter les conflits */
.accueil-search-container.hidden {
display: none;
}
/* bouger la barre de 56px vers la droite et 20 vers le haut */
@media (min-width: 1000px) {
.citizen-command-palette{
left: calc(56px + var(--space-xs));
top: 2rem;
}
}
/* Responsive - adaptation tablette */
@media (max-width: 1000px) {
.accueil-search-container {
right: var(--space-xxs);
left: var(--space-xxs);
}
}
/* Responsive - adaptation mobile */
@media (max-width: 768px) {
.accueil-search-container {
position: sticky;
top: 0;
padding: var(--space-xxs);
margin-bottom: 1.5rem;
pointer-events: auto;
}
.accueil-search-bar {
padding: var(--space-xs) var(--space-sm);
}
.accueil-search-icon {
margin-right: var(--space-xxs);
}
}