« 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 1 : | Ligne 1 : | ||
/* Container | /* Container positionné comme la command palette */ | ||
.accueil-search-container { | .accueil-search-container { | ||
position: | position: fixed; | ||
top: var(--space-xs); | top: var(--space-xs); | ||
right: var(--space-xs); | |||
left: var(--space-xs); | |||
z-index: 100; | z-index: 100; | ||
max-width: 56rem; | max-width: 56rem; | ||
margin-inline: auto; | margin-inline: auto; | ||
pointer-events: none; | |||
} | } | ||
/* Barre de recherche avec effet glass */ | /* Barre de recherche avec effet glass identique */ | ||
.accueil-search-bar { | .accueil-search-bar { | ||
display: flex; | display: flex; | ||
| Ligne 19 : | Ligne 20 : | ||
border-radius: var(--border-radius-medium); | border-radius: var(--border-radius-medium); | ||
box-shadow: var(--box-shadow-drop-xx-large); | box-shadow: var(--box-shadow-drop-xx-large); | ||
backdrop-filter: var(--backdrop-filter-frosted-glass); | backdrop-filter: var(--backdrop-filter-frosted-glass); | ||
font-size: var(--font-size-small); | font-size: var(--font-size-small); | ||
line-height: var(--line-height-small); | line-height: var(--line-height-small); | ||
cursor: pointer; | cursor: pointer; | ||
pointer-events: auto; | |||
transition-property: background-color, border-color, box-shadow; | transition-property: background-color, border-color, box-shadow; | ||
transition-duration: 0.2s; | transition-duration: 0.2s; | ||
| Ligne 45 : | Ligne 46 : | ||
margin-right: var(--space-xs); | margin-right: var(--space-xs); | ||
line-height: 0; | line-height: 0; | ||
opacity: var(--opacity-icon-base); | |||
} | } | ||
| Ligne 50 : | Ligne 52 : | ||
.accueil-search-icon img { | .accueil-search-icon img { | ||
vertical-align: middle; | vertical-align: middle; | ||
} | } | ||
/* Texte placeholder - typographie identique à command palette */ | |||
/* Texte placeholder */ | |||
.accueil-search-text { | .accueil-search-text { | ||
color: var(--color- | color: var(--color-base); | ||
font-weight: var(--font-weight-normal); | |||
flex: 1 1 auto; | flex: 1 1 auto; | ||
white-space: nowrap; | white-space: nowrap; | ||
overflow: hidden; | overflow: hidden; | ||
text-overflow: ellipsis; | text-overflow: ellipsis; | ||
} | |||
/* Masquer sur scroll pour éviter les conflits */ | |||
.accueil-search-container.hidden { | |||
display: none; | |||
} | } | ||
| Ligne 70 : | Ligne 72 : | ||
@media (max-width: 1000px) { | @media (max-width: 1000px) { | ||
.accueil-search-container { | .accueil-search-container { | ||
right: var(--space-xxs); | |||
left: var(--space-xxs); | |||
} | } | ||
} | } | ||
| Ligne 77 : | Ligne 80 : | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.accueil-search-container { | .accueil-search-container { | ||
position: sticky; | |||
top: 0; | top: 0; | ||
padding: var(--space-xxs); | padding: var(--space-xxs); | ||
margin-bottom: 1.5rem; | margin-bottom: 1.5rem; | ||
pointer-events: auto; | |||
} | } | ||
.accueil-search-bar { | .accueil-search-bar { | ||
padding: var(--space-xs) var(--space-sm); | padding: var(--space-xs) var(--space-sm); | ||
} | } | ||
Version du 3 novembre 2025 à 11:53
/* Container positionné comme la command palette */
.accueil-search-container {
position: fixed;
top: var(--space-xs);
right: var(--space-xs);
left: 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-sm) var(--space-md);
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;
}
/* 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);
}
}