Ben Scott / @BPScott
// _thing.scss .thing { font-size: 16px; line-height: 18px; margin-bottom: 4px; color: #f54997; }
"Thing is heading-3 and has highlight-color text"
// _variables.scss $highlight-color: #f54997; // _common-typography.scss %heading-3 { font-size: 16px; line-height: 18px; margin-bottom: 4px; } // _thing.scss .thing { @extend %heading-3; color: $highlight-color; }
http://www.bbc.co.uk/modules/ branding/css/1_5_0/musketeers-1392728488.css
<?php /* common.css.php */ ?> .br-box-page { color: <?=$branding->page_text_color?>; background-color: <?=$branding->page_bg_color?>; } .br-box-page a { color: <?=$branding->page_link_color?>; } .br-box-page a:hover { color: <?=$branding->page_link_hover_color?>; }
.br-box-page { color: #333333; background-color: #dddddd; } .br-box-page a { color: #0000dd; } .br-box-page a:hover { color: #0000ff; }
<div class="br-box-page"> <p> Hello there, here is a <a href="#">link</a> </p> </div>
Hello there, here is a link
<?php /* common.css.php */ ?> .br-page-bg-ontext { color: <?=$branding->page_bg_color?>; } .br-page-link-onbg { background-color: <?=$branding->page_link_color?>; } .br-page-linkhover-onbg--hover:hover { background-color: <?=$branding->page_link_hover_color?>; }
.br-page-bg-ontext { color: #dddddd; } .br-page-link-onbg { background-color: #0000dd; } .br-page-linkhover-onbg--hover:hover { background-color: #0000ff; }
<div class="br-box-page"> <p>Regular box</p> </div> <div class="br-page-bg-ontext br-page-text-onbg"> <p>Inverted styles</p> </div> <div class="br-page-bg-ontext br-page-link-onbg br-page-linkhover-onbg--hover"> <p>Block link</p> </div>
Regular box
Inverted styles
Block link
Ben Scott / @BPScott