« Modèle:Accueil/search/styles.css » : différence entre les versions
De Nefald
Autres actions
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); | ||
} | } | ||