Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Title
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop
Code
<article class="key-highlight bg--img bg--blend bg--shadow grid--bdrs grid--hover" id="esgtemplates">
<div class="grid__content">
<div class="heading--sub">EXCEL COMPENDIUM</div>
<h3 class="heading--4">Explore 106 ESG Sector Templates</h3>
<p>Discover the sector-specific ESG templates that analysts at Fitch Ratings use to evaluate ESG Relevance Scores for each entity, transaction, or program as part of the credit rating process.</p>
<div class="button__wrapper">
<a class="button button--2 overlay" data-form-title="" data-overlay="#marketo-download" data-title="ESG Sector Templates" data-url="" href="#" target="_self">DOWNLOAD TEMPLATES</a>
</div>
</div>
</article>
{{ attach_library('fitch_master/key-highlight') }}
{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
]
%}
{% block paragraph %}
<article
class="
key-highlight
{% if content.field_background_image.0 is not empty %}bg--img{% endif %}
{% if paragraph.field_background_blur.value == 1 %}bg--blur{% endif %}
{% if paragraph.field_gradient_overlay.value == 1 %}bg--blend{% endif %}
{% if content.field_color_overlay.0 is not empty %}bg--blend{% endif %}
"
style="
{% if content.field_background_image.0 is not empty %}background-image: url('{{ file_url(content.field_background_image["#items"].entity.uri.value) }}'){% if paragraph.field_gradient_overlay.value == 1 %}, var(--gradient-background){% endif %};{% endif %}
{% if content.field_background_color.0 is not empty %}background-color: {{ content.field_background_color.0 }};{% endif %}
{% if content.field_color_overlay.0 is not empty %}background-color: {{ content.field_color_overlay.0 }};{% endif %}
{% if content.field_text_color.0 is not empty %}color: {{ content.field_text_color.0 }};{% endif %}
"
>
{% include '@fitch_master/parts/video_background_hover.html.twig' %}
<div class="grid__content">
{% include '@fitch_master/paragraph/paragraph--sub-title.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--title.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--text.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--call-to-action.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--block-reference.html.twig' %}
</div>
{% if paragraph.field_fill_link.value == 1 %}
<a
class="fill--link"
href="{{ content.field_cta.0['#url'] }}"
{% if content.field_cta.0['#options'].attributes.target is not empty %}
target="{{ content.field_cta.0['#options'].attributes.target }}"
{% endif %}
{% if content.field_cta.0['#options'].attributes.rel is not empty %}
rel="{{ content.field_cta.0['#options'].attributes.rel }}"
{% endif %}
{% if content.field_cta.0['#options'].attributes.title is not empty %}
title="{{ content.field_cta.0['#options'].attributes.title }}"
{% endif %}
></a>
{% endif %}
</article>
{% endblock paragraph %}
.key-highlight {
position: relative;
height: 100%;
padding: 3.6rem var(--spacing-2);
overflow: hidden;
background-color: var(--post-view-more-background);
z-index: 1;
}
.key-highlight.bg--img, .key-highlight[style*="background-color: #174174;"] {
color: var(--inverted-text-color);
}
.key-highlight .heading--1 {
width: 66%;
margin-bottom: 4.625rem;
}
.key-highlight .heading--sub {
color: inherit;
}
.key-highlight p:last-of-type {
margin-bottom: 0;
}
.key-highlight *[class|='heading'] + .button__wrapper {
margin-top: 0;
}
.key-highlight .button__wrapper {
height: 100%;
margin-top: var(--spacing-1);
display: -ms-flexbox;
display: flex;
-ms-flex-align: end;
align-items: flex-end;
}
.key-highlight .grid__content {
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-align: stretch;
align-items: stretch;
}
.key-highlight .video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/* iPad Pro Portrait - iPad Landscape */
@media only screen and (max-width: 1024px) {
.key-highlight .heading--1 {
width: 84%;
}
}
/* iPad Portrait */
@media only screen and (max-width: 768px) {
.key-highlight .heading--1 {
width: 100%;
}
}
@import '../abstracts/_mixins';
.key-highlight {
position: relative;
height: 100%;
padding: 3.6rem var(--spacing-2);
overflow: hidden;
background-color: var(--post-view-more-background);
z-index: 1;
&.bg--img, &[style*="background-color: #174174;"] {
color: var(--inverted-text-color);
}
.heading--1 {
width: 66%;
margin-bottom: 4.625rem;
}
.heading--sub {
color: inherit;
}
p:last-of-type {
margin-bottom: 0;
}
*[class|='heading'] + .button__wrapper {
margin-top: 0;
}
.button__wrapper {
height: 100%;
margin-top: var(--spacing-1);
display: flex;
align-items: flex-end;
}
.grid__content {
display: flex;
flex-direction: column;
align-items: stretch;
}
.video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
@include mq-2 {
.key-highlight {
.heading--1 {
width: 84%;
}
}
}
@include mq-3 {
.key-highlight {
.heading--1 {
width: 100%;
}
}
}
var videoBg{{ videoVAR }} = videojs('video-bg-{{ videoID }}');
videoBg{{ videoVAR }}.ready(function () {
jQuery(window).on('load', function () {
videoBg{{ videoVAR }}.src(
{ type: 'video/mp4', src: '{{ videoURL }}' }
);
muted: true;
jQuery('.video-{{ videoID }}')
.parents('.key-highlight')
.mouseenter(function(){
videoBg{{ videoVAR }}.play();
})
.mouseleave(function(){
videoBg{{ videoVAR }}.pause();
});
});
});
Fields
| Label | Machine name | Field type | Values | Character Limit | Required |
|---|---|---|---|---|---|
| Background Blur | field_background_blur | Boolean | N/A | No | |
| Background Color | field_background_color | Color | N/A | No | |
| Background Image | field_background_image | Image | N/A | No | |
| Background Video | field_background_video | Entity reference | N/A | No | |
| Block Reference | field_block_reference | Entity reference | N/A | No | |
| Color Overlay | field_color_overlay | Color | N/A | No | |
| CTA | field_cta | Link | TBC | No | |
| CTA Style | field_cta_style | List (integer) | 0|1 1|2 2|3 3|4 4|5 5|6 |
N/A | No |
| Fill Link | field_fill_link | Boolean | N/A | No | |
| Gradient Overlay | field_gradient_overlay | Boolean | N/A | No | |
| Heading Level | field_heading_level | List (integer) | 0|2 1|3 2|4 3|5 4|6 |
N/A | No |
| Heading Style | field_heading_style | List (integer) | 0|1 1|2 2|3 3|4 4|5 5|6 |
N/A | No |
| Sub Title | field_sub_title | Text (plain) | TBC | No | |
| Text | field_text | Text (formatted, long) | TBC | No | |
| Text Color | field_text_color | Color | N/A | No | |
| Title | field_title | Text (formatted) | TBC | No |
Use Case
A Key Highlight can be used to promote any type of content and normally come in a two column layout but they are not limited to this.
As they sit within a column or grid column layout, they are able to be overlayed with the column options and added over several rows or columns as needed.
The background image and video can have a colour overlay applied to help keep the text legible.
They are placed separately but can either be placed together or used with a Key Highlight on the left with text links (Insights component) or boxes (Promo box) on the right.
Component Options
Heading Level
This sets the level between a h2 to a h6. To find out more on when to use the correct heading level please visit: https://www.w3schools.com/tags/tag_hn.asp
We don't allow H1s as this should be set either in the page header or the page template
Heading Style
This sets the style of the heading so a h2 can be made to look like a h5.
We do this to ensure the sites looks as good as possible whilst utilising the correct heading levels for SEO.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog
CTA Style
1 = Green or Primary 1 / 2
2 = White
3 = Transparent with White border
4 = Transparent with Black border
5 = Grey
6 = Text Link
Background Image
This is an optional visual treatment but is the most commonly used for components.
Background Video
This can be used to add a background video that automatically play and loops.
The video is hosting locally and should be no longer than 10 seconds and no larger than 8MB.
Background Color
Background Color offers a selection of brand colours allowing a solid background colour for the component.
| #171721 | #3f3f5b | #ff2f63 | #ffd500 | #2d374e | #174174 | #2a8abf | #33ccff | #dbddf3 | #333333 | #1a6bb4 | #dde3f2 | #3b265e |
| #6c5c86 | #9d92ae | #5e6a71 | #868f94 | #aeb4b8 | #007a87 | #409ba5 | #80bcc3 | #005cb9 | #4085ca | #80addc | #bfd6ed | #f5f5f5 |
| #00b29b | #72cb5c | #6dc3ea | #ebce56 |
Background Blur
Background Blur can be used to blur the background image and background video.
Gradient Overlay
This applies a Gradient Overlay to the background image that is predefined as part of the theme css vars.
| Fitch Guidelines - linear-gradient(108deg, #683f3f 0%, #d0e7f0 100%) |
| Fitch Group - linear-gradient(108deg, #0F2027 0%, #203A43 33%, #2C5364 100%) |
| Fitch Ratings - linear-gradient(108deg, #3e5151 0%,#decba4 100%) |
| Fitch Solutions - linear-gradient(108deg, #afc0e7 0%, #dbddf3 100%) |
| Fitch Learning - linear-gradient(108deg, #7b797d 0%, #7e8687 100%) |
| Fitch Bohua - linear-gradient(135deg, #403b4a 0%, #e7e9bb 100%) |
| Sustainble Fitch - linear-gradient(108deg, #B0DAB9 0%, #DAD299 100%) |
| Fitch Credit Certificate - linear-gradient(108deg, #7b797d 0%, #c0ccf0 100%) |
| Quant Insights - linear-gradient(108deg, #888888 0%, #888888 100%) |
Color Overlay
This is used to apply a color overlay to the background image or background video.
The Grey is our default color overlay and is used with the opacity set at 1
The EVP colours should have an opacity between 0.6 and 0.4 depending on the image and colour used.
Opacity ranges from 1 - 0. A 50% opacity would be 0.5.
| #888888 | #9db6df | #fda926 | #0bb29d | #ae3f86 | #6dc3ea | #00b29b | #72cb5c | #6dc3ea | #ebce56 |
Text Color
This can be set to Black or White (theme dependant) so the text colour is fixed for that component.
This is useful when placing text on a background image that needs to remain one or the other, even when Dark mode is enabled.
| #000000 | #FFFFFF |