Skip to content

Commit

Permalink
fix: article card type style and caption spacing (#368)
Browse files Browse the repository at this point in the history
* fix: article card type style and caption spacing

* fix: anchor link color

* Update caption.scss
  • Loading branch information
alisonjoseph authored Aug 26, 2019
1 parent cadb414 commit a91814b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
position: relative;
display: inline-block;
transition: color $transition--base;
color: $interactive-02;
color: $carbon--gray-100;
text-decoration: none;
margin-bottom: $spacing-03;
margin-left: $spacing-06;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@
}

.#{$prefix}--article-card__info {
@include carbon--type-style('caption-01');
position: absolute;
bottom: 1rem;
left: 1rem;
padding: 0;
color: $text-02;
}

.#{$prefix}--article-card__info p {
@include carbon--type-style('caption-01');
}

.#{$prefix}--article-card__img .gatsby-resp-image-wrapper {
margin-bottom: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ img + .#{$prefix}--caption {
}

// Caption after video
[class^='Video-module--video'] + .#{$prefix}--caption {
margin-top: -$spacing-08;
div[class^='Video-module--video'] + .#{$prefix}--caption {
margin-top: -$layout-05;
}

// Responsive by default
Expand Down

1 comment on commit a91814b

@vercel
Copy link

@vercel vercel bot commented on a91814b Aug 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.