Skip to content

Commit

Permalink
Merge branch 'master' into link-list-classes
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jan 14, 2021
2 parents 9621639 + 976059d commit 90caf1d
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions packages/web-components/src/components/card/card.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2020
// Copyright IBM Corp. 2020, 2021
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -29,7 +29,6 @@
margin-bottom: 0;
}
}

:host(#{$dds-prefix}-card) {
.#{$prefix}--card__pictogram {
display: flex;
Expand All @@ -39,6 +38,20 @@
flex: 1;
display: flex;
align-items: flex-end;
@include carbon--breakpoint('md') {
padding-left: 0;
}
@include carbon--breakpoint('sm') {
padding-left: $carbon--spacing-05;
}
}
::slotted(#{$dds-prefix}-card-eyebrow) {
@include carbon--breakpoint('md') {
padding-left: 0;
}
@include carbon--breakpoint('sm') {
padding-left: $carbon--spacing-05;
}
}
}

Expand All @@ -50,12 +63,25 @@
}

.#{$prefix}--card__copy {
@include carbon--breakpoint('md') {
padding-left: 0;
}
@include carbon--breakpoint('sm') {
padding-left: $carbon--spacing-05;
}

display: none;
}
}

::slotted(svg[slot='pictogram']) {
color: $icon-01;
@include carbon--breakpoint('md') {
margin-left: 0;
}
@include carbon--breakpoint('sm') {
margin-left: $carbon--layout-01;
}
}

&[color-scheme='inverse'] ::slotted(svg[slot='pictogram']) {
Expand Down

0 comments on commit 90caf1d

Please sign in to comment.