forked from carbon-design-system/carbon-for-ibm-dotcom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/carbon-for-ibm-dotcom-v2' into feat/callout-with-m…
…edia-v2
- Loading branch information
Showing
40 changed files
with
1,045 additions
and
449 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2023 | ||
* | ||
* 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 '@carbon/styles/scss/config' as *; | ||
@use '@carbon/styles/scss/spacing' as *; | ||
@use '@carbon/styles/scss/theme' as *; | ||
@use '../../globals/vars' as *; | ||
@use '../../../../carbon-web-components/src/components/button/button'; | ||
|
||
@mixin button { | ||
:host(#{$c4d-prefix}-button) { | ||
@extend :host(#{$prefix}-button); | ||
|
||
svg { | ||
@extend .#{$prefix}--btn__icon; | ||
} | ||
|
||
.#{$prefix}--btn--hidden { | ||
display: none; | ||
visibility: hidden; | ||
|
||
@media print { | ||
display: inline-block; | ||
visibility: visible; | ||
font-weight: 200; | ||
color: $text-primary; | ||
|
||
span { | ||
font-weight: 600; | ||
margin-left: calc(-1 * #{$spacing-02}); | ||
margin-right: $spacing-02; | ||
} | ||
} | ||
} | ||
} | ||
} |
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,11 @@ | ||
// | ||
// Copyright IBM Corp. 2023 | ||
// | ||
// 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 'button'; | ||
@use 'button'; | ||
|
||
@include button.button; |
Oops, something went wrong.