From 983eaf0efa7df284930959eff47d6b8acb0d8715 Mon Sep 17 00:00:00 2001 From: "Ryan P Letulle (CGI)" <92539208+ryanletulle@users.noreply.github.com> Date: Mon, 14 Feb 2022 11:10:38 -0600 Subject: [PATCH] Fix for Image alignment/caption. --- .../custom/epa_intranet/assets/css/global.css | 19 ++++++++++++++++++- .../epa_intranet/assets/scss/global.scss | 19 ++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/docroot/themes/custom/epa_intranet/assets/css/global.css b/docroot/themes/custom/epa_intranet/assets/css/global.css index 5efb9cc24..59a67635e 100644 --- a/docroot/themes/custom/epa_intranet/assets/css/global.css +++ b/docroot/themes/custom/epa_intranet/assets/css/global.css @@ -1260,4 +1260,21 @@ div.box__title, .box--special > .box__title { width: 100%; } } -/*# sourceMappingURL=global.css.map */ \ No newline at end of file + +/* IN-851 */ +figure.caption { + display: flex; + flex-direction: column; +} +article.align-center + figcaption { + text-align: center; +} +article.align-right + figcaption { + text-align: right; +} +article.align-left + figcaption { + text-align: left; +} +} + +/*# sourceMappingURL=global.css.map */ diff --git a/docroot/themes/custom/epa_intranet/assets/scss/global.scss b/docroot/themes/custom/epa_intranet/assets/scss/global.scss index 4fcfff4f5..848fca650 100644 --- a/docroot/themes/custom/epa_intranet/assets/scss/global.scss +++ b/docroot/themes/custom/epa_intranet/assets/scss/global.scss @@ -1299,4 +1299,21 @@ div.box__title, .box--special > .box__title { .region-footer-menu .grid-row li { width: 100%; } -} \ No newline at end of file +} + +/* IN-851 */ +figure.caption { + display: flex; + flex-direction: column; +} +article { + &.align-center + figcaption { + text-align: center; + } + &.align-right + figcaption { + text-align: right; + } + &.align-left + figcaption { + text-align: left; + } +} \ No newline at end of file