Skip to content

Commit

Permalink
Merge pull request #40 from Netcentric/feature/na-ship-focus-changes
Browse files Browse the repository at this point in the history
NA - Ship focus page changes
  • Loading branch information
alexiscoelho authored Mar 7, 2024
2 parents cb5ac28 + eb64825 commit 9e9ec68
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 72 deletions.
93 changes: 92 additions & 1 deletion styles/baseModel.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ body.ship-focus .default-content-wrapper h1 + p {
margin: 0 -130px;
}

body.ship-focus .default-content-wrapper h2 {
margin-top: 60px;
}

body.ship-focus .default-content-wrapper .main-group img {
width: 100vw;
height: 100vh;
Expand Down Expand Up @@ -40,7 +44,26 @@ body.ship-focus .default-content-wrapper .main-group > h1:first-child .indent:nt
padding-left: 20%;
}

body.ship-focus .default-content-wrapper .sub-group p,
body.ship-focus .default-content-wrapper .sub-group p {
line-height: 27px;
width: 80%;
}

body.ship-focus .default-content-wrapper .block h3 + p {
order: 1;
margin: 0;
grid-area: title;
}

body.ship-focus .default-content-wrapper .block p:last-child {
order: 3;
margin-top: 10px;
}

body.ship-focus .default-content-wrapper .block:nth-child(3) h3 + p {
width: 100%;
}

body.ship-focus .default-content-wrapper .block:last-child p:last-child {
width: 80%;
}
Expand Down Expand Up @@ -88,3 +111,71 @@ body.ship-focus .default-content-wrapper .info-container .info-text {
line-height: 24px;
padding-left: 5px;
}

body.ship-focus .default-content-wrapper .blocks {
display: flex;
flex-wrap: wrap;
margin-top: 80px;
justify-content: space-between;
}

body.ship-focus .default-content-wrapper .block {
display: flex;
flex-flow: column wrap;
font-size: var(--paragraph-font-size);
line-height: 27px;
overflow: hidden;
place-content: stretch;
justify-content: flex-start;
align-items: stretch;
}

body.ship-focus .default-content-wrapper .block:nth-child(1) {
flex-basis: 55%;
}

body.ship-focus .default-content-wrapper .block:nth-child(2) {
flex-basis: 35%;
}

body.ship-focus .default-content-wrapper .block:nth-child(3) {
flex-basis: 100%;
margin-top: 42px;
display: grid;
grid-template-areas:
"title img img"
"text img img"
"text img img";
grid-template-rows: min-content 1fr;
}

body.ship-focus .default-content-wrapper .block h3 {
order: 2;
margin-bottom: 0;
margin-top: 28px;
font-size: var(--paragraph-font-size);
grid-area: title;
}

body.ship-focus .default-content-wrapper .block:nth-child(3) :nth-child(2) {
grid-area: img;
}

body.ship-focus .default-content-wrapper .block:nth-child(3) :nth-child(3) {
grid-area: text;
}

body.ship-focus .default-content-wrapper .block:nth-child(3) h3 {
margin-top: 0
}

body.ship-focus .default-content-wrapper .block:nth-child(3) img {
width: 100%;
}

body.ship-focus .default-content-wrapper .info {
background-color: var(--background-color);
opacity: 0.9;
padding: 10px 20px;
margin-bottom: 20px;
}
71 changes: 0 additions & 71 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,74 +223,3 @@ main .section.highlight {
.default-content-wrapper {
color: var(--midnight-blue-color);
}

.default-content-wrapper h2 {
margin-top: 60px;
}

.default-content-wrapper .sub-group p {
line-height: 27px;
}

.default-content-wrapper .blocks {
display: flex;
flex-wrap: wrap;
margin-top: 80px;
justify-content: space-between;
}

.default-content-wrapper .block {
display: flex;
flex-flow: column wrap;
font-size: var(--paragraph-font-size);
line-height: 27px;
overflow: hidden;
place-content: stretch;
justify-content: flex-start;
align-items: stretch;
}

.default-content-wrapper .block:nth-child(1) {
flex-basis: 55%;
}

.default-content-wrapper .block:nth-child(2) {
flex-basis: 35%;
}

.default-content-wrapper .block:nth-child(3) {
flex-basis: 100%;
margin-top: 42px;
}

.default-content-wrapper .block h3 {
order: 2;
margin-bottom: 0;
margin-top: 24px;
font-size: var(--paragraph-font-size);
}

.default-content-wrapper .block h3 + p {
order: 1;
margin: 0;
}

.default-content-wrapper .block p:last-child {
order: 3;
margin-top: 10px;
}

.default-content-wrapper .block:nth-child(3) h3 + p {
width: 100%;
}

.default-content-wrapper .block:nth-child(3) img {
width: 100%;
}

.default-content-wrapper .info {
background-color: var(--background-color);
opacity: 0.9;
padding: 10px 20px;
margin-bottom: 20px;
}

0 comments on commit 9e9ec68

Please sign in to comment.