-
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.
- Loading branch information
Showing
11 changed files
with
89 additions
and
44 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
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
17 changes: 11 additions & 6 deletions
17
packages/gatsby-theme-carbon/src/components/PageHeader/PageHeader.js
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
29 changes: 29 additions & 0 deletions
29
packages/gatsby-theme-carbon/src/components/PageHeader/PageHeader.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,29 @@ | ||
@import '~carbon-components/scss/globals/scss/vars'; | ||
@import '~@carbon/elements/scss/type/type'; | ||
@import '~carbon-components/scss/globals/scss/layout'; | ||
|
||
.page-header { | ||
background: $carbon--black-100; | ||
color: $inverse-01; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
height: 15rem; | ||
} | ||
|
||
.text { | ||
@include carbon--type-style('display-01'); | ||
margin-bottom: $spacing-06; | ||
margin-top: auto; | ||
} | ||
|
||
.page-header--sticky { | ||
position: sticky; | ||
z-index: z('header'); | ||
|
||
/* page-head (15rem) | ||
- global-head (3rem) | ||
- tabs (3rem) */ | ||
top: -9rem; | ||
} |
14 changes: 0 additions & 14 deletions
14
packages/gatsby-theme-carbon/src/components/PageHeader/page-header.scss
This file was deleted.
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
30 changes: 19 additions & 11 deletions
30
...on/src/components/PageTabs/page-tabs.scss → .../components/PageTabs/PageTabs.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 |
---|---|---|
@@ -1,44 +1,52 @@ | ||
.page-tabs { | ||
@import '~carbon-components/scss/globals/scss/vars'; | ||
@import '~carbon-components/scss/globals/scss/layout'; | ||
@import '~@carbon/elements/scss/type/type'; | ||
|
||
.tabs-container { | ||
margin: 0; | ||
width: 100%; | ||
height: rem(48px); | ||
position: relative; | ||
box-shadow: 0 -1px 0 rgba($ui-02, 0.25); | ||
} | ||
|
||
.page-tabs__list { | ||
.list { | ||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
list-style: none; | ||
padding: 0; | ||
height: rem(48px); | ||
position: relative; | ||
} | ||
|
||
.page-tabs__list li { | ||
.list-item { | ||
display: flex; | ||
align-self: center; | ||
} | ||
|
||
.page-tabs__list li a { | ||
.list-item:not(.selected-item) .link { | ||
color: $active-01; | ||
|
||
&:hover { | ||
color: #fff; | ||
} | ||
} | ||
|
||
.link { | ||
@include carbon--type-style('body-short-02'); | ||
padding: 0 $spacing-09 0 $spacing-05; | ||
text-decoration: none; | ||
color: $inverse-01; | ||
white-space: nowrap; | ||
border-top: 3px solid transparent; // 3px accessibility minimum | ||
height: rem(48px); | ||
height: 3rem; | ||
display: inline-flex; | ||
align-items: center; | ||
transition: $transition--base; | ||
transition: all $duration--moderate-01 $carbon--standard-easing; | ||
|
||
&:hover { | ||
background: #353535; | ||
} | ||
} | ||
|
||
.page-tabs__list li.selected a { | ||
.selected-item .link { | ||
border-top: 3px solid $brand-01; // 3px accessibility minimum | ||
background: $carbon--gray-80; | ||
} |
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