This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
ON HOLD: STIJ-183: POC - footer with CSS Grid and flexbox fallback. #156
Open
meirege
wants to merge
3
commits into
develop
Choose a base branch
from
feature/STIJ-183
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -4,7 +4,3 @@ | |
color: map-get($colors, 'section-text-color'); | ||
} | ||
} | ||
|
||
*[class*="section--"] { | ||
@include clearfix(); | ||
} |
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 |
---|---|---|
@@ -1,47 +1,49 @@ | ||
// General footer styling. | ||
footer { | ||
padding: 1.5rem 0; | ||
@include tablet { | ||
padding: 1.5rem; | ||
} | ||
|
||
padding: 1.5rem .5rem; | ||
|
||
p { | ||
color: $color-gray; | ||
} | ||
|
||
.db-block-partnership { | ||
@include tablet { | ||
margin-top: 6rem; | ||
} | ||
} | ||
} | ||
|
||
// Footer 2 column layout. | ||
footer[data-columns="2"] { | ||
.footer--column { | ||
@include make-mobile-column(12); | ||
@include make-tablet-column(6); | ||
@include make-desktop-column(6); | ||
// Footer 4 column layout. | ||
footer[data-columns="4"] { | ||
@include tablet { | ||
display: flex; | ||
display: grid; | ||
grid-template-columns: repeat(2, 1fr [footer-column]); | ||
grid-gap: 1rem; | ||
grid-auto-rows: 275px; | ||
} | ||
} | ||
|
||
// Footer 3 column layout. | ||
footer[data-columns="3"] { | ||
.footer--column { | ||
@include make-mobile-column(12); | ||
@include make-tablet-column(6); | ||
@include make-desktop-column(4); | ||
@include desktop { | ||
grid-template-columns: repeat(4, 1fr [footer-column]); | ||
grid-auto-rows: 400px; | ||
} | ||
} | ||
|
||
// Footer 4 column layout. | ||
footer[data-columns="4"] { | ||
.footer--column { | ||
@include make-mobile-column(12); | ||
@include make-tablet-column(6); | ||
@include make-desktop-column(3); | ||
@include tablet { | ||
width: 50%; | ||
} | ||
@include desktop { | ||
width: 25%; | ||
} | ||
@supports (display: grid) { | ||
width: auto; | ||
} | ||
} | ||
|
||
.db-block-partnership { | ||
@include desktop { | ||
margin-top: 12.5rem; | ||
.footer--column:last-child { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alignment of the molecule should me added on the molecule itself, not on the grid system. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed. |
||
align-self: flex-end; | ||
justify-self: flex-end; | ||
|
||
@supports (display: grid) { | ||
align-self: end; | ||
justify-self: end; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
<footer class="section--wrapper" role="contentinfo" data-columns="4"> | ||
<div class="content-container"> | ||
<div class="row"> | ||
<div class="footer--column"> | ||
{% include '@gentinfo-island' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@post-address-block' %} | ||
{% include '@disclaimer-block' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@social-media-block' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@partnership-block' %} | ||
</div> | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@gentinfo-island' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@post-address-block' %} | ||
{% include '@disclaimer-block' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@social-media-block' %} | ||
</div> | ||
<div class="footer--column"> | ||
{% include '@partnership-block' %} | ||
</div> | ||
</footer> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please exclude the display in this rule instead of changing the error level
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.