-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(styles): reorder imports to avoid config conflict (#10963)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d5ebf7b
commit 9dd28d7
Showing
8 changed files
with
105 additions
and
74 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
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,8 @@ | ||
// | ||
// Copyright IBM Corp. 2018, 2018 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@forward '@carbon/type/scss/modules/reset'; |
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,55 @@ | ||
// | ||
// Copyright IBM Corp. 2018, 2018 | ||
// | ||
// This source code is licensed under the Apache-2.0 license found in the | ||
// LICENSE file in the root directory of this source tree. | ||
// | ||
|
||
@use 'styles' as *; | ||
|
||
/// Include default type styles | ||
/// @access public | ||
/// @group @carbon/type | ||
@mixin default-type { | ||
h1 { | ||
@include type-style('productive-heading-06'); | ||
} | ||
|
||
h2 { | ||
@include type-style('productive-heading-05'); | ||
} | ||
|
||
h3 { | ||
@include type-style('productive-heading-04'); | ||
} | ||
|
||
h4 { | ||
@include type-style('productive-heading-03'); | ||
} | ||
|
||
h5 { | ||
@include type-style('productive-heading-02'); | ||
} | ||
|
||
h6 { | ||
@include type-style('productive-heading-01'); | ||
} | ||
|
||
p { | ||
@include type-style('body-long-02'); | ||
} | ||
|
||
a { | ||
@if meta.global-variable-exists('carbon--theme') and | ||
map.has-key($carbon--theme, 'link-01') | ||
{ | ||
color: map.get($carbon--theme, 'link-01'); | ||
} @else { | ||
color: #0062fe; | ||
} | ||
} | ||
|
||
em { | ||
font-style: italic; | ||
} | ||
} |
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