-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor Footer to css modules with correct styling
- Loading branch information
1 parent
daaf17e
commit 0f129d6
Showing
4 changed files
with
116 additions
and
96 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
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
88 changes: 88 additions & 0 deletions
88
packages/gatsby-theme-carbon/src/components/Footer/Footer.module.scss
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,88 @@ | ||
.footer { | ||
@include carbon--type-style('body-short-01'); | ||
width: 100%; | ||
background: $carbon--black-100; | ||
color: $carbon--gray-30; | ||
position: relative; | ||
z-index: 2; | ||
} | ||
|
||
.grid { | ||
min-height: 370px; | ||
padding-top: $spacing-06; | ||
padding-bottom: $spacing-07; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
} | ||
|
||
.nav { | ||
padding-bottom: $spacing-08; | ||
margin-bottom: $spacing-06; | ||
position: relative; | ||
|
||
&:after { | ||
@include carbon--breakpoint('sm') { | ||
content: ''; | ||
background: $carbon--gray-80; | ||
width: calc(100% - 2rem); | ||
height: 1px; | ||
display: block; | ||
position: absolute; | ||
bottom: 0; | ||
} | ||
|
||
@include carbon--breakpoint('md') { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
.list { | ||
display: block; | ||
|
||
@include carbon--breakpoint('sm') { | ||
margin: 0 0 $spacing-03 0; | ||
} | ||
|
||
@include carbon--breakpoint('lg') { | ||
margin: 0; | ||
} | ||
} | ||
|
||
.footer a { | ||
@include carbon--type-style('body-long-01'); | ||
color: $carbon--gray-10 !important; //needed to get the color correct on the homepage, we are setting all homepage links to a light blue in the homepage sass file. | ||
text-decoration: none; | ||
outline: none; | ||
transition: $duration--fast-01 motion(standard, productive); | ||
|
||
&:hover { | ||
color: $carbon--gray-10; | ||
text-decoration: underline; | ||
} | ||
|
||
&:active, | ||
&:active:visited { | ||
color: $carbon--gray-10; | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.footer p { | ||
@include carbon--type-style('body-short-01'); | ||
padding-bottom: $spacing-05; | ||
} | ||
|
||
.footer p a { | ||
text-decoration: underline; | ||
} | ||
|
||
.footer p:last-child { | ||
padding-bottom: rem(48px); | ||
} | ||
|
||
.logo { | ||
fill: $carbon--gray-10; | ||
margin-top: $spacing-07; | ||
} |
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,3 @@ | ||
import Footer from './Footer'; | ||
|
||
export default Footer; |