Origami Frontend Components & Services

SassDoc: o-footer-services

oFooterServices(opts, include-base-styles)

Outputs all features and styles available for o-footer-services.

parameter type default description
opts (optional) ('logo': 'ftlogo-v1:origami', 'icons': ('slack', 'github'), 'brand-strip': true) A map of optional footer features to output, including the footer logo, list of social icon links, and "a Nikkei company" brand strip.
include-base-styles (optional) true Whether to output fundamental o-footer-services styles required by the optional features.

Links

oOverlayContentClose

Overlay close button styles.

The output does not include a class definition, and should be wrapped in a selector.

Example

Output button styles

.my-close-button {
    @include oOverlayContentClose();
}

Links

oTypographyGetScale(index, font)

Returns a single list on the scale

parameter type default description
index Number of the scale to return.
font (optional) '' The font to get the scale number for, as fonts may have different scales. Uses the default scale if not specified.

Returns

List - List of the requested scale value.

Links

oTypographyMaxLineWidth(optimal-characters-per-line)

Returns a maximum line width based on the given scale

parameter type default description
optimal-characters-per-line number of the characters per line

Returns

String - maximum line width in ch

Links

oTypographyGetFontFamily(type)

Get font family for o-typography type i.e "sans", "serif", or "display". Note: we do not recommend setting font-family this way. Instead use mixins oTypographySans, oTypographySerif, oTypographyDisplay without any arguments.

parameter type default description
type One of 'sans', 'serif', or 'display'.

Returns

String - The font-family set for the given font style.

Links

oTypographyHeading(level)

Output styles for page headings.

parameter type default description
level The heading level 1-5.

Examples

Example #1

heading level 1 styles.

h1 {
	@include oTypographyHeading($level: 1);
}

Example #2

heading level 5 styles.

h5 {
	@include oTypographyHeading($level: 5);
}

Links

oTypographyBody

Body text styles

Links

oTypographySub

Subscript text

Links

oTypographySuper

Superscript text

Links

oTypographyList(type, include-base-styles)

Output styles for lists. Styles child li elements. Apply to a containing list element such as ul or ol. Does not output font styles, these are inherited (@see oTypographyBody).

parameter type default description
type (optional) null "ordered", "unordered", or null for just the base styles shared by all lists
include-base-styles (optional) true set to false to exclude base styles which are shared by all list types

Examples

Example #1

the styles for an unordered list.

.my-unordered-list {
	@include oTypographyList('unordered');
}

Example #2

the styles for an ordered and unordered list, sharing base list styles.

.my-list {
	@include oTypographyList();
}

.my-list--ordered {
	@include oTypographyList('ordered', $include-base-styles: false);
}

.my-list--unordered {
	@include oTypographyList('unordered', $include-base-styles: false);
}

Links

oTypographyFooter

Style for <footer> tags

Links

oTypographyCaption

Styles for photo or video credit/caption

Links

Status
active
Switch component view

GitHub: o-footer-services@4.2.5

Install o-footer-services

If using the Build Service, add o-footer-services@^4.2.5 to your link tag.

If using the npm package manager for a Manual Build, run npm install --save-peer "@financial-times/o-footer-services@^4.2.5".

Help & Support

o-footer-services is maintained directly by the Origami team. If you have any questions about o-footer-services or Origami in general, we are happy to help. 😊

Slack: #origami-support
Email: origami.support@ft.com

Feedback / Issues

To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊

Slack: #origami-support
Email: origami.support@ft.com