Skip to content

Commit

Permalink
Merge b400091 into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmdotcom-bot authored Dec 7, 2024
2 parents 884dafd + b400091 commit 005ddf5
Show file tree
Hide file tree
Showing 5 changed files with 159 additions and 221 deletions.
35 changes: 12 additions & 23 deletions packages/styles/scss/components/link-list/_link-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
.#{$c4d-prefix}--link-list__list--vertical,
.#{$c4d-prefix}-ce--link-list__list--end {
display: grid;
grid-auto-rows: 1fr;

::slotted(#{$c4d-prefix}-link-list-item),
::slotted(#{$c4d-prefix}-link-list-item-cta) {
Expand All @@ -36,7 +35,9 @@
}

.#{$c4d-prefix}--link-list__list--vertical
::slotted(#{$c4d-prefix}-link-list-item) {
::slotted(#{$c4d-prefix}-link-list-item),
.#{$c4d-prefix}--link-list__list--vertical
::slotted(#{$c4d-prefix}-link-list-item-cta) {
display: flex;
}

Expand All @@ -54,7 +55,8 @@

.#{$c4d-prefix}-ce--link-list__list--split,
.#{$c4d-prefix}-ce--link-list__list--three-columns {
::slotted(#{$c4d-prefix}-link-list-item) {
::slotted(#{$c4d-prefix}-link-list-item),
::slotted(#{$c4d-prefix}-link-list-item-cta) {
display: grid;
align-items: stretch;
// margin-right: -$spacing-05;
Expand All @@ -63,10 +65,6 @@
@include breakpoint(md) {
display: grid;
grid-column-gap: $spacing-07;

::slotted(#{$c4d-prefix}-link-list-item) {
margin-inline: -$spacing-05 0;
}
}
}

Expand All @@ -83,9 +81,14 @@
}
}

:host(#{$c4d-prefix}-link-list-item) {
:host(#{$c4d-prefix}-link-list-item),
:host(#{$c4d-prefix}-link-list-item-cta) {
.#{$prefix}--link {
display: flex;
align-content: flex-start;
padding: $spacing-04 0;
gap: $spacing-03;
inline-size: 100%;

span,
::slotted(svg[slot='icon']) {
Expand All @@ -106,16 +109,6 @@
@include type-style('heading-02');
}

:host(#{$c4d-prefix}-link-list-item)[type='default'],
:host(#{$c4d-prefix}-link-list-item-cta)[type='default'],
:host(#{$c4d-prefix}-link-list-item)[type='end'] {
.#{$prefix}--link {
display: flex;
padding: $spacing-05 0;
inline-size: 100%;
}
}

.#{$c4d-prefix}--link-list__list {
::slotted(#{$c4d-prefix}-link-list-item),
::slotted(#{$c4d-prefix}-link-list-item-cta) {
Expand All @@ -134,10 +127,6 @@
border-block-end: 1px solid $border-subtle-01;
border-block-start: 1px solid $border-subtle-01;
margin-block-start: -1px;

@include breakpoint(lg) {
margin-inline: -$spacing-05;
}
}
}

Expand All @@ -156,7 +145,7 @@

.#{$c4d-prefix}--link-list__list--vertical {
::slotted(*) {
margin-block-end: $spacing-05;
margin-block-end: 0;
}
}

Expand Down
Loading

0 comments on commit 005ddf5

Please sign in to comment.