-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1195 from cozy/inverted-tabs
feat: Inverted style for tabs
- Loading branch information
Showing
8 changed files
with
113 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
import '!!style-loader!css-loader!../transpiled/react/stylesheet.css' | ||
import '!!style-loader!css-loader!../dist/cozy-ui.utils.min.css' | ||
|
||
window.SHOW_DEPRECATION_WARNINGS = true |
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
@require '../../stylus/components/tabs' | ||
|
||
body | ||
--tabsIndicatorColor var(--primaryColor) | ||
--tabsActiveTextColor var(--primaryColor) | ||
--tabsInactiveTextColor var(--coolGrey) | ||
--tabsBackground transparent | ||
|
||
.coz-tabs | ||
@extend $tabs-base |
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 |
---|---|---|
@@ -1,23 +1,41 @@ | ||
@require '../tools/mixins' | ||
@require '../settings/breakpoints' | ||
|
||
$tabs-base | ||
.coz-tab-list | ||
border-bottom rem(1) solid var(--silver) | ||
background var(--tabsBackgroundColor) | ||
overflow-x scroll | ||
|
||
.coz-tab-list--inverted | ||
--tabsActiveTextColor var(--primaryContrastTextColor) | ||
--tabsInactiveTextColor var(--primaryContrastTextColor) | ||
--tabsIndicatorColor var(--primaryContrastTextColor) | ||
--tabsBackgroundColor var(--primaryColor) | ||
|
||
.coz-tab | ||
display inline-block | ||
padding rem(10 16) | ||
text-transform uppercase | ||
font-size rem(13) | ||
font-size rem(12) | ||
line-height rem(12) | ||
cursor pointer | ||
color var(--coolGrey) | ||
color var(--tabsInactiveTextColor) | ||
font-weight bold | ||
opacity .64 | ||
|
||
&:hover | ||
text-decoration none | ||
|
||
+small-screen() | ||
& | ||
// Important thing is to have the tab's height 48px | ||
padding rem(17 24) | ||
|
||
.coz-tab--active | ||
border-bottom rem(2) solid var(--dodgerBlue) | ||
color var(--dodgerBlue) | ||
border-bottom rem(2) solid var(--tabsIndicatorColor) | ||
color var(--tabsActiveTextColor) | ||
opacity 1 | ||
|
||
.coz-tab-panel | ||
padding-top rem(20) |