Skip to content

Commit

Permalink
NA - Indent properly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscoelho committed Mar 5, 2024
1 parent a8b39f9 commit a8e2f7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ function decorateSpaceshipFocusPageH1() {
if (spaceshipFocusPageH1Element) {
const innerText = spaceshipFocusPageH1Element.textContent.trim();
const arr = innerText.split(' ');
const result = `<span class="rotate">${arr.join(' </span><span class="rotate">')}</span>`;
const result = `<span class="indent">${arr.join(' </span><span class="indent">')}</span>`;

spaceshipFocusPageH1Element.innerHTML = result;
}
Expand Down
14 changes: 6 additions & 8 deletions styles/baseModel.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,21 @@ body.ship-focus .default-content-wrapper .main-group > h1:first-child {
position: absolute;
left: 30%;
margin: 64px auto 0;
word-break: keep-all;
word-spacing: 9999px;
text-align: left;
font-size: 150px;
color: var(--dark-blue);
text-transform: uppercase;
transform: skew(40deg);
line-height: 150px;
width: 55%;
text-shadow: 0 0 64px white;
}

body.ship-focus .default-content-wrapper .main-group > h1:first-child .rotate {
position: relative;
white-space: pre-wrap;
transform: skew(-40deg);
display: inline-block;
body.ship-focus .default-content-wrapper .main-group > h1:first-child .indent:nth-child(2) {
padding-left: 10%;
}

body.ship-focus .default-content-wrapper .main-group > h1:first-child .indent:nth-child(3) {
padding-left: 20%;
}

body.ship-focus .default-content-wrapper .sub-group p,
Expand Down

0 comments on commit a8e2f7e

Please sign in to comment.