Skip to content

Commit

Permalink
fix(css): anchor around image not supporting margin (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar authored Jul 12, 2023
1 parent c9e46ed commit 7b51038
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
/* SEE: https://github.com/django-cms/djangocms-picture/blob/2.3.0/djangocms_picture/models.py#L24-L34 */
@import url("@tacc/core-styles/src/lib/_imports/components/align.css");

/* Allow anchor tag to wrap like a block but still behave inline */
/* FAQ: TACC/Core-CMS causes this tag-class combination, so it must manage it */
/* FAQ: TACC/Core-CMS moves (side effect) Picture classes to <figure> or <a> */
a.img-fluid {
display: inline-block;
}

/* Try to auto-clear image floats */
/* WARNING: The commented solution clears float BUT also negates float */
/*
Expand Down

0 comments on commit 7b51038

Please sign in to comment.