Skip to content

Commit

Permalink
refactor: add styles to support image captions. Closes #191
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfisher committed Feb 17, 2024
1 parent c195276 commit 0b579f3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions site/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ article p:has(span.gatsby-resp-image-wrapper) {
margin-right: 0px !important;
}

article p.caption {
article p.caption,
article p span.gatsby-resp-image-wrapper + em {
font-size: 1.8rem !important;
background-color: var(--dark-grey);
margin-top: calc(-0.5 * var(--gutter));
Expand All @@ -144,16 +145,25 @@ article p.caption {
border-bottom: 0.4rem solid var(--light-base);
}

article p.caption a, article p.caption a:visited {
article p.caption a, article p.caption a:visited,
article p span.gatsby-resp-image-wrapper + em a,
article p span.gatsby-resp-image-wrapper + em a:visited {
color: var(--light-text-colour);
background: none;
padding: 0;
}

article p.caption a:hover, article p.caption a:visited:hover {
article p.caption a:hover, article p.caption a:visited:hover,
article p span.gatsby-resp-image-wrapper + em a:hover,
article p span.gatsby-resp-image-wrapper + em a:visited:hover {
color: var(--light-base);
}

article p span.gatsby-resp-image-wrapper + em {
/* specific overrides for doing inline captions */
font-style: normal;
margin-top: calc(0.25 * var(--gutter));
}
/* MEDIA QUERIES FOR Medium Size display */

/* MEDIA QUERIES FOR Large Size displau */
Expand Down

0 comments on commit 0b579f3

Please sign in to comment.