Skip to content

Commit d0177cc

Browse files
committed
update
1 parent 761e47e commit d0177cc

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

blocks/cards/cards.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/* default cards css */
2+
.cards {
3+
position: relative;
4+
z-index: 1;
5+
}
26
.cards > ul {
37
display: grid;
48
grid-template-columns: 1fr;

blocks/hero/hero.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ main .hero-container {
1111
.hero {
1212
position: relative;
1313
padding: 32px;
14-
min-height: 275px;
14+
min-height: 375px;
1515
}
1616

1717
.hero h1,
@@ -24,6 +24,7 @@ main .hero-container {
2424

2525
.hero h1 {
2626
margin-bottom: 0;
27+
margin-top: 200px;
2728
}
2829

2930
.hero h4 {
@@ -33,7 +34,8 @@ main .hero-container {
3334

3435
.hero picture {
3536
position: absolute;
36-
z-index: -1;
37+
/* position: fixed;
38+
z-index: 1; */
3739
inset: 0;
3840
object-fit: cover;
3941
box-sizing: border-box;

scripts/scripts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import decorate from '../blocks/hero/hero.js';
12
import {
23
sampleRUM,
34
buildBlock,
@@ -57,6 +58,10 @@ function buildAutoBlocks(main) {
5758
}
5859
}
5960

61+
// function decorateButtons(main) {
62+
// libDecorateButtons(main);
63+
// }
64+
6065
/**
6166
* Decorates the main element.
6267
* @param {Element} main The main element

styles/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ main img {
208208
/* sections */
209209
main .section {
210210
padding: 16px;
211+
background-color: white;
212+
position: relative;
213+
z-index: -2;
214+
}
215+
216+
main .block {
217+
position: relative;
218+
z-index: 1;
211219
}
212220

213221
main .main-wrapper .section:not(:first-of-type) {

0 commit comments

Comments
 (0)