-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SGD8-2505: Update content header implementation
- Loading branch information
1 parent
d59d42a
commit c1b0683
Showing
9 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
body { | ||
div.content-header-container { | ||
margin-top: 0; | ||
// Content header in Drupal should always break out on the sides. | ||
// This breakout is provided for several layouts by the styleguide. | ||
margin-right: -1rem; | ||
margin-left: -1rem; | ||
|
||
@include tablet { | ||
width: calc(100% + 6.75rem * 2); | ||
margin-left: -6.75rem; | ||
padding-right: 6.75rem; | ||
padding-left: 6.75rem; | ||
} | ||
|
||
&.accolade-title { | ||
@include tablet { | ||
// Set max width because the absolute title gets out of boundary. | ||
.left { | ||
max-width: calc(100% - (6.75rem * 2 + 1rem)); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.overview-layout { | ||
// This is defined in styleguide as well, but not with paragraph classes. | ||
> .content-header-container { | ||
& + .paragraph--type--table-of-contents, | ||
& + .paragraph--type--partners, | ||
& + .paragraph--type--text { | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
&:not(.image) { | ||
& + .paragraph--type--table-of-contents, | ||
& + .paragraph--type--partners, | ||
& + .paragraph--type--text { | ||
@include set-layout('width-12'); | ||
|
||
margin-top: -6rem; | ||
} | ||
|
||
& + .partner-block, | ||
& + .paragraph--type--text { | ||
max-width: 100%; | ||
padding: 1rem; | ||
background-color: color('white'); | ||
|
||
@include tablet { | ||
padding: 3rem; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters