Skip to content

Commit

Permalink
Hero Banner small center variant (#452)
Browse files Browse the repository at this point in the history
* hero small center

* center text on 100% width on mobile

* padding gutter

* undo

---------

Co-authored-by: Joe-Savella <[email protected]>
  • Loading branch information
jsavella and webjsavella authored Dec 23, 2024
1 parent d702499 commit 83f3ed4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion eds/blocks/hero/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@
font-size: var(--font-6);
}

.hero.small.center .content {
text-align: center;
}

.hero :where(h1, p) {
inline-size: 90%;
inline-size: 100%;
}

.hero p:has(+ p) {
Expand Down Expand Up @@ -95,6 +99,10 @@
aspect-ratio: 3 / 2;
}

.hero.small picture img {
aspect-ratio: 16 / 9;
}

@media (width >= 1024px) {
.hero {
align-items: center;
Expand All @@ -110,4 +118,12 @@
inline-size: 50%;
max-inline-size: 700px;
}

.hero :where(h1, p) {
inline-size: 90%;
}

.hero.small.center :is(.image, .content) {
inline-size: auto;
}
}

0 comments on commit 83f3ed4

Please sign in to comment.