Skip to content

Commit ad4776e

Browse files
committed
add balance to bg-shape for page-header
1 parent ea2ae7d commit ad4776e

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

addon/styles/background-shapes.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,13 @@
3232
background-repeat: no-repeat;
3333
background-position: bottom left;
3434
}
35+
36+
@media (max-width: 1007px) {
37+
.bg-shape-boxes-bottom {
38+
background-size: 300px;
39+
}
40+
41+
.bg-shape-boxes-bottom + * {
42+
background-size: 100px;
43+
}
44+
}
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<div class="es-page-header bg-shape-boxes-bottom" ...attributes>
2-
<div class="container">
3-
<h1 class="text-hero-xl">{{@headline}}</h1>
2+
<div class="container layout">
3+
<div class="lg:col-5">
4+
<h1 class="text-hero-xl">{{@headline}}</h1>
45

5-
<p class="text-hero-base {{if hasBlock "mb-2"}}">{{@detail}}</p>
6+
<p class="text-hero-base {{if hasBlock "mb-2"}}">{{@detail}}</p>
67

7-
{{yield}}
8+
{{yield}}
9+
</div>
810
</div>
9-
</div>
11+
</div>

docs/components/page-header.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ should use the `<EsPageHeader />` component:
1212
>
1313
<EsButton>Go</EsButton>
1414
</EsPageHeader>
15+
<section>
16+
<div class="container">
17+
<h2>Next Section</h2>
18+
<p>This is here to show how the bg-shape continues onto the next section</p>
19+
</div>
20+
</section>
1521
```
1622

1723
This example is making use of the [`dark` css helper](/css/helpers#dark)

0 commit comments

Comments
 (0)