utilities

corners() mixin

Apply the brand three-rounded-corners look to an element corners in $component-sizes map located in _scale.scss

@mixin corners { /* ... */ }
scss
.foo {
  @include corners;
}

Usage (scss)

css
.foo {
  border-radius: 6px 6px 0;
}

Output (css)

shadow() mixin

Apply a standard box-shadow to an element

@mixin shadow(
  $inset: null
) { /* ... */ }
Parameters
NameDescriptionTypeDefault
$inset

Optionally make the shadow inset.

Booleannull
scss
.foo {
  @include shadow('inset');
}

Usage (scss)

css
.foo {
  box-shadow: 0 0 0.34722rem rgba(37, 41, 44, 0.6) inset;
}

Output (css)

text-overflow() mixin

Truncates text and appends ellipsis when extending beyond allowed space

@mixin text-overflow { /* ... */ }

outline() mixin

Focus outline state with optional negative offset

@mixin outline(
  $offset: null
) { /* ... */ }
Links
Parameters
NameDescriptionTypeDefault
$offset

Use 'offset' if you want to include the negative offset

stringnull
scss
.no-offset {
  @include outline;
}
.offset {
  @include outline('offset');
}

Usage (scss)

css
.no-offset {
  outline: 2px dashed #25292c;
}
.offset {
  outline: 2px dashed #25292c;
  outline-offset: -2px;
}

Output (css)

circlecount() mixin

Displays Number in Circle for unread updates or friend invites

@mixin circlecount(
  $color,
  $translate-x
) { /* ... */ }
Parameters
NameDescriptionTypeDefault
$color

Background color for contrasted mixin

string none
$translate-x

TranslateX value from top right corner

string none
Requires

safari-vh-fix() mixin

If CSS var is supported, this buggyFill will work on iOS 9.3+ only will degrade on a buggy 100vh on older version of iOS

@mixin safari-vh-fix { /* ... */ }
Links

$time variable

Unit of time for consistent transitions

$time: 300ms;

$inline-icons variable

Inline Icons transform amount

$inline-icons: -0.125em;

$icon-text-spacing variable

Equal space between Icon + Text

$icon-text-spacing: 0.25rem;