-
Notifications
You must be signed in to change notification settings - Fork 3
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 #51 from merative/ab/carbon-upgrade
Carbon 11 upgrade
- Loading branch information
Showing
9 changed files
with
335 additions
and
348 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
2 changes: 1 addition & 1 deletion
2
packages/carbon-addons-devenv/src/scss/addons_samples/logo.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
17 changes: 8 additions & 9 deletions
17
packages/carbon-addons-devenv/src/scss/addons_samples/personfolio.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,33 +1,32 @@ | ||
.#{$prefix}--personfolio { | ||
|
||
background-color: $ui-01; | ||
color: $text-01; | ||
background-color: $layer-01; | ||
color: $text-primary; | ||
border-radius: 6px; | ||
border-width: 1px 1px 1px 1px; | ||
border-style: solid !important; | ||
padding: $spacing-05; | ||
margin-top: $spacing-05; | ||
|
||
&--child { | ||
border-color: $support-01; | ||
border-color: $support-error; | ||
|
||
} | ||
|
||
&--youngadult { | ||
|
||
border-color: $support-02; | ||
border-color: $support-success; | ||
|
||
} | ||
|
||
&--adult { | ||
|
||
border-color: $support-03; | ||
border-color: $support-warning; | ||
} | ||
|
||
&--senior { | ||
|
||
border-color: $support-04; | ||
border-color: $support-info; | ||
} | ||
|
||
} | ||
|
||
|
||
} |
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 +0,0 @@ | ||
|
||
//------------------------- | ||
// 🚀 Variables | ||
//------------------------- | ||
|
||
$feature-flags: ( | ||
grid-columns-16: true, | ||
); | ||
|
||
$css--font-face: true; | ||
$css--helpers: true; | ||
$css--body: true; | ||
$css--reset: true; | ||
$css--default-type: true; | ||
$css--plex: true; | ||
$css--use-experimental-grid: false; | ||
$css--use-experimental-grid-fallback: false; | ||
|
||
//------------------------- | ||
// 🔄 Resets | ||
//------------------------- | ||
|
||
// rtl directives must be imported when wrapping an imported stylesheet so | ||
// that they are positioned correctly in the compiled css | ||
// https://github.com/MohammadYounes/rtlcss/issues/113#issuecomment-379907981 | ||
|
||
@import 'carbon-components/scss/globals/scss/css--reset'; | ||
|
||
|
||
//------------------------- | ||
// 🎨 Themes | ||
//------------------------- | ||
|
||
@import 'carbon-components/scss/globals/scss/theme'; | ||
|
||
$carbon--theme: $carbon--theme--g10; | ||
@include carbon--theme(); | ||
|
||
// overwrite box-sizing from css--reset to original Curam styling | ||
* { | ||
box-sizing: content-box; | ||
} | ||
|
||
// Temporary until Carbon fix is applied for date picker opening event. | ||
html.spm-modal--html { | ||
overflow: visible; | ||
} | ||
87 changes: 9 additions & 78 deletions
87
packages/carbon-addons-devenv/src/scss/carbon-components.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,78 +1,9 @@ | ||
|
||
// re-apply Carbon box-boxing after overwrite above | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
//------------------------- | ||
// 🌍 Globals | ||
//------------------------- | ||
@import 'carbon-components/scss/globals/scss/theme-tokens'; | ||
@import 'carbon-components/scss/globals/scss/layout'; | ||
@import 'carbon-components/scss/globals/scss/layer'; | ||
@import 'carbon-components/scss/globals/scss/typography'; | ||
@import 'carbon-components/scss/globals/scss/css--font-face'; | ||
@import 'carbon-components/scss/globals/scss/css--helpers'; | ||
@import 'carbon-components/scss/globals/scss/css--body'; | ||
@import 'carbon-components/scss/globals/grid/grid'; | ||
|
||
//------------------------- | ||
// 🍕 Components | ||
//------------------------- | ||
|
||
@import 'carbon-components/scss/components/button/button'; | ||
@import 'carbon-components/scss/components/copy-button/copy-button'; | ||
@import 'carbon-components/scss/components/file-uploader/file-uploader'; | ||
@import 'carbon-components/scss/components/checkbox/checkbox'; | ||
@import 'carbon-components/scss/components/combo-box/combo-box'; | ||
@import 'carbon-components/scss/components/radio-button/radio-button'; | ||
@import 'carbon-components/scss/components/toggle/toggle'; | ||
@import 'carbon-components/scss/components/search/search'; | ||
@import 'carbon-components/scss/components/select/select'; | ||
@import 'carbon-components/scss/components/text-input/text-input'; | ||
@import 'carbon-components/scss/components/text-area/text-area'; | ||
@import 'carbon-components/scss/components/number-input/number-input'; | ||
@import 'carbon-components/scss/components/form/form'; | ||
@import 'carbon-components/scss/components/link/link'; | ||
@import 'carbon-components/scss/components/list-box/list-box'; | ||
@import 'carbon-components/scss/components/list/list'; | ||
@import 'carbon-components/scss/components/data-table/data-table'; | ||
@import 'carbon-components/scss/components/structured-list/structured-list'; | ||
@import 'carbon-components/scss/components/code-snippet/code-snippet'; | ||
@import 'carbon-components/scss/components/overflow-menu/overflow-menu'; | ||
@import 'carbon-components/scss/components/content-switcher/content-switcher'; | ||
@import 'carbon-components/scss/components/date-picker/date-picker'; | ||
@import 'carbon-components/scss/components/dropdown/dropdown'; | ||
@import 'carbon-components/scss/components/loading/loading'; | ||
@import 'carbon-components/scss/components/modal/modal'; | ||
@import 'carbon-components/scss/components/multi-select/multi-select'; | ||
@import 'carbon-components/scss/components/notification/inline-notification'; | ||
@import 'carbon-components/scss/components/notification/toast-notification'; | ||
@import 'carbon-components/scss/components/tooltip/tooltip'; | ||
@import 'carbon-components/scss/components/tabs/tabs'; | ||
@import 'carbon-components/scss/components/tag/tag'; | ||
@import 'carbon-components/scss/components/pagination/pagination'; | ||
@import 'carbon-components/scss/components/accordion/accordion'; | ||
@import 'carbon-components/scss/components/progress-indicator/progress-indicator'; | ||
@import 'carbon-components/scss/components/breadcrumb/breadcrumb'; | ||
@import 'carbon-components/scss/components/toolbar/toolbar'; | ||
@import 'carbon-components/scss/components/time-picker/time-picker'; | ||
@import 'carbon-components/scss/components/slider/slider'; | ||
@import 'carbon-components/scss/components/tile/tile'; | ||
@import 'carbon-components/scss/components/skeleton/skeleton'; | ||
@import 'carbon-components/scss/components/inline-loading/inline-loading'; | ||
@import 'carbon-components/scss/components/pagination-nav/pagination-nav'; | ||
|
||
// type utilities | ||
@import '@carbon/type/scss/classes'; | ||
@include carbon--type-classes(); | ||
|
||
//------------------------- | ||
// ✨ Addons | ||
//------------------------- | ||
|
||
|
||
@import './variables.scss'; | ||
@import './addons_samples/logo.scss'; | ||
@import './addons_samples/personfolio.scss'; | ||
|
||
@use '@carbon/styles/scss/spacing' as *; | ||
@use '@carbon/react/scss/themes'; | ||
@use '@carbon/react/scss/theme' as * with ( | ||
$theme: themes.$g100 | ||
); | ||
@use '@carbon/react/scss/reset'; | ||
@import './variables.scss'; | ||
@import './addons_samples/logo.scss'; | ||
@import './addons_samples/personfolio.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,10 +1,5 @@ | ||
|
||
@import './app.scss'; | ||
|
||
.spm-custom-component { | ||
//------------------------- | ||
// Carbon-Components | ||
//------------------------- | ||
@import './carbon-components.scss'; | ||
@import './addon-samples.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,5 +1,6 @@ | ||
$prefix: 'bx'; | ||
$border-radius-round: 100vw !default; | ||
$width-logo-large: 120px; // do we need small and medium too | ||
$width-logo-medium: 80px; | ||
$width-logo-small: 36px; | ||
$border-base: 1px solid $ui-background; // this should be a variable | ||
$border-base: 1px solid $background; |
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