I can't seem to change the font size of the lightning:outputfield. The unordered list text below is the font size I am looking for.
<aura:attribute name="Impact1Title" type="Aura.Component[]">
<div class="red">
<lightning:outputField variant="label-hidden" fieldName="Project_Title__c" class="red" />
</div>
<ul>
<li class="red">I'm red.</li>
</ul>
</aura:attribute>
.THIS .red {
background-color: red;
font-size:5rem;}
<aura:if isTrue="{!not(empty('Impact_1__c'))}">
<lightning:card title="{!v.Impact1Title}" iconName="action:approval" class="cards" />
</aura:if>
{!v.Impact1Title}
, it works as expected.red
class is designed to work one level deep, same way it's used in<li>
. Have you tried wrapping your output field in anotherdiv
and then apply the class there and see if it works? Something as<div><div class="red"> ... </div></div>