Template:Main page/styles.css: Difference between revisions
Template page
More actions
Main page styles |
Limit hero height |
||
| Line 8: | Line 8: | ||
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
height: | height: 340px; | ||
object-fit: cover; | |||
object-position: center 35%; | |||
} | } | ||
.bar-hero-text { | .bar-hero-text { | ||
Latest revision as of 21:34, 12 November 2026
.bar-hero {
position: relative;
margin-bottom: 1.5em;
border-radius: 12px;
overflow: hidden;
}
.bar-hero img {
display: block;
width: 100%;
height: 340px;
object-fit: cover;
object-position: center 35%;
}
.bar-hero-text {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 1.2em 1.5em;
color: #fff;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}
.bar-hero-title {
font-size: 2em;
font-weight: 700;
line-height: 1.2;
}
.bar-hero-sub {
font-size: 1.05em;
opacity: 0.9;
}
.bar-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 1em;
margin: 1em 0 2em;
}
.bar-card {
display: flex;
gap: 0.8em;
align-items: center;
padding: 0.9em 1em;
border: 1px solid rgba(127, 127, 127, 0.35);
border-radius: 10px;
background: rgba(127, 127, 127, 0.06);
}
.bar-card:hover {
border-color: rgba(59, 130, 246, 0.8);
}
.bar-card-img {
flex: 0 0 64px;
text-align: center;
}
.bar-card-title {
font-weight: 700;
font-size: 1.1em;
}
.bar-card-desc {
font-size: 0.9em;
opacity: 0.8;
}
.bar-columns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5em;
}