Skip to content

Commit

Permalink
hero small center
Browse files Browse the repository at this point in the history
  • Loading branch information
webjsavella committed Dec 21, 2024
1 parent d702499 commit 477a6e4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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,8 @@
inline-size: 50%;
max-inline-size: 700px;
}

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

0 comments on commit 477a6e4

Please sign in to comment.