Fuel Advisor: stations reelles avec Waze/Google Maps, liste depliable, enseignes sans monogramme, contexte marche et Brent quotidien FRED
57 stations renvoyees au lieu de 12; cout reel par option (carburant + detour marginal) et ecart en euros; bouton Afficher les N autres stations alimente par un compte serveur teste (0/1-2/3/>3); pictogramme neutre + nom complet, aucun logo de marque tierce; Brent DCOILBRENTEU (EIA via FRED) quotidien avec date d observation reelle; sections techniques repliees.
This commit is contained in:
42
style.css
42
style.css
@@ -67,3 +67,45 @@ img.brand-logo{width:40px;height:40px;flex:0 0 auto}
|
||||
.brand-tile{width:26px;height:26px;flex:0 0 auto;border-radius:7px;display:inline-block;vertical-align:middle}
|
||||
.station-head .brand-tile{width:30px;height:30px;margin-right:.4rem}
|
||||
.badge.brand{gap:.45rem}
|
||||
|
||||
/* --- Cartes station : lisibles au doigt, navigation explicite --- */
|
||||
.station-title{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
|
||||
.station-title strong{overflow-wrap:anywhere}
|
||||
.station-age{font-size:.78rem;opacity:.72}
|
||||
.station-price{font-weight:700;white-space:nowrap}
|
||||
.station-line,.station-cost{margin:.2rem 0}
|
||||
.station-nav{display:flex;gap:.5rem;margin-top:.45rem}
|
||||
.station-nav .nav-btn{flex:1 1 0;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.5rem .7rem;border-radius:10px;border:1px solid #34455b;background:#203048;color:var(--text);text-decoration:none;font-size:.92rem;font-weight:700;white-space:nowrap}
|
||||
.station-nav .nav-btn:hover{background:#27395a}
|
||||
.station-nav .nav-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
||||
button.ghost{background:#203048;color:var(--text);border-color:#34455b}
|
||||
button.ghost:hover{background:#27395a}
|
||||
.badge.best-badge{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
|
||||
.badge.delta{background:#f1f5f9}
|
||||
.hero-reason{margin:.15rem 0 .5rem}
|
||||
.top-stations .compact-station{padding:.6rem .7rem}
|
||||
@media (max-width:759px){.station-card .station-head{gap:.5rem}}
|
||||
|
||||
/* Débordement horizontal : une piste `1fr` ne doit jamais s'étirer au-delà de son conteneur
|
||||
à cause du contenu (min-content). On borne donc les pistes et les enfants de flex. */
|
||||
.station-cards{grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr))}
|
||||
.top-stations{grid-template-columns:minmax(0,1fr)}
|
||||
.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
|
||||
.two{grid-template-columns:repeat(2,minmax(0,1fr))}
|
||||
.station-head,.station-nav,.station-title{min-width:0}
|
||||
.station-line,.station-cost,.station-title strong,.station-age{overflow-wrap:anywhere}
|
||||
@media (min-width:760px){
|
||||
.top-stations{grid-template-columns:repeat(3,minmax(0,1fr))}
|
||||
}
|
||||
|
||||
/* Véhicule et autonomie sur la même ligne, avec des libellés alignés : le libellé du champ
|
||||
autonomie est plus long et se replie sur deux lignes, ce qui décalait les deux colonnes. */
|
||||
.top-bar-row{align-items:flex-start}
|
||||
.top-bar .top-field label{min-height:2.3em}
|
||||
@media (min-width:760px){.top-bar #advise{align-self:flex-end}}
|
||||
|
||||
/* La règle .station-head span (prix) ciblait aussi la ligne d'âge du prix et l'empêchait de se
|
||||
replier : la carte débordait alors de 100 px sur mobile. Le prix garde nowrap, pas l'âge. */
|
||||
.station-title strong,.station-title .station-age{white-space:normal}
|
||||
.station-title .station-age{font-size:.78rem;font-weight:500;color:var(--muted)}
|
||||
.station-title strong{font-size:.98rem}
|
||||
|
||||
Reference in New Issue
Block a user