« Modèle:Accueil/shared/styles.css » : différence entre les versions
De Nefald
Autres actions
Aucun résumé des modifications |
m Search bar |
||
| Ligne 124 : | Ligne 124 : | ||
display: block; | display: block; | ||
} | } | ||
/* ==================================== | /* ==================================== | ||
2. BARRE DE RECHERCHE | 2. BARRE DE RECHERCHE - STYLE STAR CITIZEN | ||
==================================== */ | ==================================== */ | ||
| Ligne 133 : | Ligne 134 : | ||
align-items: center; | align-items: center; | ||
gap: 1rem; | gap: 1rem; | ||
max-width: | max-width: 500px; | ||
width: 100%; | width: 100%; | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 1. | padding: 1rem 1.5rem; | ||
background: rgba(255, 255, 255, 0. | |||
border: 1px solid rgba(255, 255, 255, 0. | /* Style minimaliste */ | ||
border-radius: | background: rgba(255, 255, 255, 0.02); | ||
border: 1px solid rgba(255, 255, 255, 0.08); | |||
border-radius: 8px; | |||
cursor: pointer; | cursor: pointer; | ||
transition: all 0.3s | transition: all 0.3s ease; | ||
} | } | ||
.home-search:hover { | .home-search:hover { | ||
background: rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.04); | ||
border-color: rgba(255, 255, 255, 0. | border-color: rgba(255, 255, 255, 0.12); | ||
transform: translateY(-1px); | |||
transform: translateY(- | |||
} | } | ||
.home-search:active { | .home-search:active { | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||
.home-search__icon { | .home-search__icon { | ||
font-size: 1. | font-size: 1.125rem; | ||
opacity: 0. | opacity: 0.3; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
transition: opacity 0.2s ease; | transition: opacity 0.2s ease; | ||
| Ligne 170 : | Ligne 166 : | ||
.home-search:hover .home-search__icon { | .home-search:hover .home-search__icon { | ||
opacity: 0. | opacity: 0.5; | ||
} | } | ||
.home-search__text { | .home-search__text { | ||
flex: 1; | flex: 1; | ||
font-size: | font-size: 0.9375rem; | ||
font-weight: 400; | font-weight: 400; | ||
color: rgba(255, 255, 255, 0. | color: rgba(255, 255, 255, 0.4); | ||
user-select: none; | user-select: none; | ||
text-align: left; | text-align: left; | ||
letter-spacing: 0.3px; | |||
transition: color 0.2s ease; | transition: color 0.2s ease; | ||
} | } | ||
.home-search:hover .home-search__text { | .home-search:hover .home-search__text { | ||
color: rgba(255, 255, 255, 0. | color: rgba(255, 255, 255, 0.6); | ||
} | } | ||
.home-search__kbd { | .home-search__kbd { | ||
font-family: monospace; | font-family: monospace; | ||
font-size: 0. | font-size: 0.75rem; | ||
font-weight: | font-weight: 500; | ||
padding: 0. | padding: 0.25rem 0.5rem; | ||
min-width: | min-width: 1.5rem; | ||
text-align: center; | text-align: center; | ||
background: rgba(255, 255, 255, 0. | |||
border: 1px solid rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.03); | ||
border-radius: | border: 1px solid rgba(255, 255, 255, 0.06); | ||
color: rgba(255, 255, 255, 0. | border-radius: 4px; | ||
color: rgba(255, 255, 255, 0.3); | |||
flex-shrink: 0; | flex-shrink: 0; | ||
transition: all 0.2s ease; | transition: all 0.2s ease; | ||
| Ligne 204 : | Ligne 202 : | ||
.home-search:hover .home-search__kbd { | .home-search:hover .home-search__kbd { | ||
background: rgba(255, 255, 255, 0. | background: rgba(255, 255, 255, 0.05); | ||
border-color: rgba(255, 255, 255, 0. | border-color: rgba(255, 255, 255, 0.1); | ||
color: rgba(255, 255, 255, 0. | color: rgba(255, 255, 255, 0.4); | ||
} | } | ||
/* ==================================== | /* ==================================== | ||