Sha256: 709cd748e5a08bb6e4c8d05720272eefd5c070318ba7d3168cf60d2aae539656

Contents?: true

Size: 1.72 KB

Versions: 23

Compression:

Stored size: 1.72 KB

Contents

// ==========================================================================
// Typographic styling classes
// ==========================================================================

// ---
// WEIGHTS
// ---

.light
{
	font-weight: $type-weight-light !important;
}

.normal
{
	font-weight: $type-weight-normal !important;
}

.medium
{
	font-weight: $type-weight-medium !important;
}

.bold
{
	font-weight: $type-weight-bold !important;
}

// ---
// STYLES
// ---

.italic
{
	font-style: italic !important;
}

.roman
{
	font-style: normal !important;
}

.underline
{
	text-decoration: underline !important;
}

.no-underline
{
	text-decoration: none !important;
}

.caps
{
	text-transform: uppercase !important;
}

.title
{
	text-transform: capitalize !important;
}

.strike
{
	text-decoration: line-through !important;
}

// ---
// KERNING
// ---

@each $key, $val in $kerning-scale
{
	.kern#{$key}
	{
		letter-spacing: $val !important;
	}
}

// ---
// EFFECTS
// ---

.wrap
{
	white-space: normal !important;
}

.nowrap
{
	white-space: nowrap !important;
}

.break
{
	word-wrap: break-word !important;
}

.truncate
{
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

// ---
// TYPOGRAPHIC ELEMENTS
// ---

// <ul>
.list
{
	list-style: disc outside !important;

	> li
	{
		margin-left: _rem(($base-rhythm * 2) + $base-rhythm-half);
		padding-left: _rem($base-rhythm-half);
	}
}

.nums
{
	list-style: decimal inside !important;
}

// ---
// HANG QUOTES
//
// Define starting and optional ending content to append/prepend with
// `data-start-hang` and `data-end-hang` attributes
// ---

.hang
{
	&:before
	{
		content: attr(data-start-hang);
		margin-left: -0.275em;
	}
	&:after
	{
		content: attr(data-end-hang);
	}
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
english_tea-1.24.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.23.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.22.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.21.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.20.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.19.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.18.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.17.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.16.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.15.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.14.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.13.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.12.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.11.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.10.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.9.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.8.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.7.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.6.0 app/assets/stylesheets/english_tea/typography/_style.scss
english_tea-1.5.0 app/assets/stylesheets/english_tea/typography/_style.scss