Is it possible to change the font size for the Success Metrics in the Elevate Theme for Case Studies

We’re testing out the new Case Studies object, and most of it works fine. I see options to adjust headers and the blockquote, but I can’t find an option to adjust the font size for the Success Metrics section. We use metrics like Hours Saved or Orders Eliminated, but when I enter “142 hrs” or “1,700 orders”, they break into 2 lines and look terrible.

Does anyone know if there’s an option I’m missing to decrease the size of the metrics? Or are there any plans to add the option to style that section separately, like the blockquote?

Hey @GMiddleswarth1,

by code, yes.
Check for the used class of the element, open the case-studies.hubl.css which is located in assets/dist/css, look for the class and change the font-size to the desired font-size.

Note:
In order to make changes to Elevate, you need to install the HubSpot CLI.

If you haven’t already, you can use this Quickstart guide.

If you don’t want to dive into it, you can add the whole CSS part like

<style>
.this-is-the-corresponding-class{
font-size: 18px {# change this value to your desired size #};
}
</style>

in the header area in the pages setting.

Furthermore - you should add some media-queries to the code so the font size will differ by breakpoint.

Example:

<style>
.this-is-the-corresponding-class{
font-size: 18px {# change this value to your desired size for small breakpoints i.e smartphones #};
}

@media screen and (min-width:768px){
.this-is-the-corresponding-class{
font-size: 20px {# change this value to your desired size for medium breakpoints i.e tablets #};
}
}

@media screen and (min-width:1024px){
.this-is-the-corresponding-class{
font-size: 22px {# change this value to your desired size for bigger breakpoints i.e desktops and big tablets #};
}
}

@media screen and (min-width:1400px){
.this-is-the-corresponding-class{
font-size: 22px {# change this value to your desired size for large breakpoints i.e HiDPI desktops #};
}
}
</style>

Hope this helps

Best,

Anton