Files
meteo-fe/src/app/components/prediccio-diaria/prediccio-diaria.scss
T

142 lines
2.7 KiB
SCSS

.daily-forecast {
display: flex;
flex-direction: column;
gap: 1px;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
@media (min-width: 768px) {
border-radius: 15px;
}
.day-item {
display: grid;
grid-template-columns: 1fr auto auto 1.2fr;
align-items: center;
gap: 8px;
padding: 10px;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
@media (min-width: 768px) {
gap: 15px;
padding: 15px;
}
&:hover {
background: rgba(255, 255, 255, 0.1);
}
.day-info {
.day-name {
font-size: 13px;
font-weight: 500;
margin-bottom: 2px;
@media (min-width: 768px) {
font-size: 16px;
}
}
.date {
font-size: 11px;
opacity: 0.7;
@media (min-width: 768px) {
font-size: 13px;
}
}
}
.weather-icon {
font-size: 26px;
line-height: 1;
text-align: center;
@media (min-width: 768px) {
font-size: 32px;
}
.weather-icon-img {
width: 28px;
height: 28px;
object-fit: contain;
@media (min-width: 768px) {
width: 36px;
height: 36px;
}
}
}
.precipitation {
font-size: 11px;
opacity: 0.8;
min-width: 40px;
text-align: center;
@media (min-width: 768px) {
font-size: 13px;
min-width: 50px;
}
}
.precipitation-placeholder {
min-width: 40px;
@media (min-width: 768px) {
min-width: 50px;
}
}
.temps {
.temp-bar-container {
display: flex;
align-items: center;
gap: 6px;
@media (min-width: 768px) {
gap: 10px;
}
.temp-min, .temp-max {
font-size: 13px;
font-weight: 500;
min-width: 30px;
text-align: center;
@media (min-width: 768px) {
font-size: 16px;
min-width: 35px;
}
}
.temp-min {
opacity: 0.7;
}
.temp-bar {
flex: 1;
height: 5px;
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
position: relative;
@media (min-width: 768px) {
height: 6px;
}
.temp-range {
position: absolute;
height: 100%;
border-radius: 3px;
transition: left 0.3s ease, width 0.3s ease;
// El background se aplica dinámicamente desde el componente
}
}
}
}
}
}