stylint
Version:
A linter for stylus
191 lines (145 loc) • 2.65 kB
text/stylus
/**
* Various Typographic Styles used throughout the site
*/
// put ambroise on a thing
.ambroise
$ambroise
// default ambroise header
.ambroise-hdr
$ambroise-hdr
// metadata all looks the same, however you want to call it
.credit,
time,
.byline,
.metatitle
.meta,
.metadata,
.byline,
.attribution
$meta
// these properties need to behave differently inside cards but look like metadata
time,
.byline-t,
.metatitle
$meta
// default exchange spec for body copy
.body-copy
$body-copy
// put brandon on a thing
.brandon
$brandon
// grid metadata
.credit,
.meta,
.metadata
#grid &,
.prefooter-single &
margin-bottom $gutter-nano
// captions, caption icons
.caption,
figcaption,
.wp-caption-text
$caption
.content &
margin-top $gutter-med
img,
.illo,
.photo
display inline-block
max-width 18px
.credit
display inline
// puts exchange on a thing
.exchange
font-family $brandon
$mob-plus
font-family $exchange
// puts small exchange on a thing
.exchange-sm
line-clamp( 3, 16px )
$exchange-sm
&.title
font-size 13px
line-height 16px
// @TODO i think this can just be done with helper classes
.metadata
$mob
li
float none
clear both
/**
* put oxide on a thing
* if thing is a list, it's pipe gets oxide
*/
.oxide
$oxide
li:before
$oxide
// put proxima on a thing
.proxima
$proxima
// time is always below a title
// @TODO this is dumb
time
.card &,
.big-story &
margin-bottom -3px
// default title used on grid pages
// @TODO redundant, unwieldy, sloppy
.title
font-size 18px
line-height 20px
&:hover
color $gray-5
&.clamp-3
line-clamp( 3, 20px )
&.clamp-5
line-clamp( 5, 20px )
&.big
$mob-plus
big-title()
&.clamp-3
line-clamp( 3, 27px )
&.clamp-5
line-clamp( 5, 27px )
&.clamp-6
line-clamp( 6, 27px )
&.sm-big
$sm
big-title()
&.clamp-3
line-clamp( 3, 27px )
&.clamp-5
line-clamp( 5, 27px )
&.med-big
$med
big-title()
&.clamp-3
line-clamp( 3, 27px )
&.clamp-5
line-clamp( 5, 27px )
&.big-big
$big-plus
big-title()
&.clamp-3
line-clamp( 3, 27px )
&.clamp-5
line-clamp( 5, 27px )
// tungsten is the big big type
.tungsten
$tungsten
&.title
font-size 45px
line-height 36px
&.clamp-3
line-clamp( 3, 35.2px )
&.clamp-5
line-clamp( 6, 35.2px )
// @TODO dont hard code this?
$mob-plus
margin-top 6px
.no-clamp
overflow visible
text-overflow clip
-webkit-line-clamp 1000
max-height none