gel-typography
Version:
A flexible code implementation of the GEL Typography
1,591 lines (1,455 loc) • 29.9 kB
CSS
/*------------------------------------*\
#COLOUR PALLETTE
\*------------------------------------*/
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif;
/* 1 */
-ms-text-size-adjust: 100%;
/* 2 */
-webkit-text-size-adjust: 100%;
/* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined for any HTML5 element in IE 8/9.
* Correct `block` display not defined for `details` or `summary` in IE 10/11
* and Firefox.
* Correct `block` display not defined for `main` in IE 11.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/
audio,
canvas,
progress,
video {
display: inline-block;
/* 1 */
vertical-align: baseline;
/* 2 */
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9/10.
*/
img {
border: 0;
}
/**
* Correct overflow not hidden in IE 9/10/11.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari.
*/
figure {
margin: 1em 40px;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Contain overflow in all browsers.
*/
pre {
overflow: auto;
}
/**
* Address odd `em`-unit font size rendering in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
/* Forms
========================================================================== */
/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
button,
input,
optgroup,
select,
textarea {
color: inherit;
/* 1 */
font: inherit;
/* 2 */
margin: 0;
/* 3 */
}
/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/
button {
overflow: visible;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type=button],
input[type=reset],
input[type=submit] {
-webkit-appearance: button;
/* 2 */
cursor: pointer;
/* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
input {
line-height: normal;
}
/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
input[type=checkbox],
input[type=radio] {
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
* (include `-moz` to future-proof).
*/
input[type=search] {
-webkit-appearance: textfield;
/* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
/* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0;
/* 1 */
padding: 0;
/* 2 */
}
/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/
textarea {
overflow: auto;
}
/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/* Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/*------------------------------------*\
# RESET
\*------------------------------------*/
/**
* As well as using normalize.css, it is often advantageous to remove all
* margins from certain elements.
*/
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
dl,
dd,
ol,
ul,
form,
fieldset,
legend,
figure,
table,
th,
td,
caption,
hr {
margin: 0;
padding: 0;
}
/**
* Remove the default font-weight so we can control this with our
* typography classes
*/
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
/**
* Give a help cursor to elements that give extra info on `:hover`.
*/
abbr[title],
dfn[title] {
cursor: help;
}
/**
* Remove underlines from potentially troublesome elements.
*/
u,
ins {
text-decoration: none;
}
/**
* Apply faux underlines to inserted text via `border-bottom`.
*/
ins {
border-bottom: 1px solid;
}
/*------------------------------------*\
# BOX SIZING
\*------------------------------------*/
/**
* The Onesport codebase is designed to use a `border-box` box-sizing,
* as such as set this globally on all elements
*
* http://www.paulirish.com/2012/box-sizing-border-box-ftw/
*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
/**
* Grid containing element
*/
.gel-wrap {
max-width: 1008px;
margin: 0 auto;
padding-right: 8px;
padding-left: 8px;
}
@media (min-width: 25em) {
.gel-wrap {
padding-left: 16px;
padding-right: 16px;
}
}
@media (min-width: 80em) {
.gel-wrap {
max-width: 1280px;
}
}
/**
* A grid row
*/
.gel-layout {
margin-right: 0;
margin-left: -8px;
padding-right: 0;
padding-left: 0;
list-style: none;
text-align: left;
letter-spacing: -0.31em;
text-rendering: optimizespeed;
}
@media (min-width: 37.5em) {
.gel-layout {
margin-left: -16px;
}
}
/**
* A single grid item
*/
.gel-layout__item {
display: inline-block;
padding-left: 8px;
text-align: left;
width: 100%;
vertical-align: top;
letter-spacing: normal;
word-spacing: normal;
text-rendering: auto;
}
@media (min-width: 37.5em) {
.gel-layout__item {
padding-left: 16px;
}
}
/**
* Make the layout items fill up from the right hand side
*/
.gel-layout--right {
text-align: right;
}
.gel-layout--right > .gel-layout__item {
text-align: left;
}
/**
* Make the layout items fill up from the center outward
*/
.gel-layout--center {
text-align: center;
}
.gel-layout--center > .gel-layout__item {
text-align: left;
}
@media (min-width: 56.25em) {
.gel-1\/3\@l {
width: 33.3333333333% ;
}
.gel-2\/3\@l {
width: 66.6666666667% ;
}
.gel-3\/4\@l {
width: 75% ;
}
}
@media (min-width: 80em) {
.gel-10\/12\@xxl {
width: 83.3333333333% ;
}
}
.gel-canon {
font-size: 28px;
font-size: 1.75rem;
line-height: 32px;
line-height: 2rem;
}
@media (min-width: 20em) {
.gel-canon {
font-size: 32px;
font-size: 2rem;
line-height: 36px;
line-height: 2.25rem;
}
}
@media (min-width: 37.5em) {
.gel-canon {
font-size: 52px;
font-size: 3.25rem;
line-height: 56px;
line-height: 3.5rem;
}
.no-touch .gel-canon {
font-size: 44px;
font-size: 2.75rem;
line-height: 48px;
line-height: 3rem;
}
}
.gel-canon-bold {
font-size: 28px;
font-size: 1.75rem;
line-height: 32px;
line-height: 2rem;
font-weight: bold;
letter-spacing: -1px;
letter-spacing: -0.0625rem;
}
@media (min-width: 20em) {
.gel-canon-bold {
font-size: 32px;
font-size: 2rem;
line-height: 36px;
line-height: 2.25rem;
}
}
@media (min-width: 37.5em) {
.gel-canon-bold {
font-size: 52px;
font-size: 3.25rem;
line-height: 56px;
line-height: 3.5rem;
}
.no-touch .gel-canon-bold {
font-size: 44px;
font-size: 2.75rem;
line-height: 48px;
line-height: 3rem;
}
}
.gel-trafalgar {
font-size: 20px;
font-size: 1.25rem;
line-height: 24px;
line-height: 1.5rem;
}
@media (min-width: 20em) {
.gel-trafalgar {
font-size: 24px;
font-size: 1.5rem;
line-height: 28px;
line-height: 1.75rem;
}
}
@media (min-width: 37.5em) {
.gel-trafalgar {
font-size: 36px;
font-size: 2.25rem;
line-height: 40px;
line-height: 2.5rem;
}
.no-touch .gel-trafalgar {
font-size: 32px;
font-size: 2rem;
line-height: 36px;
line-height: 2.25rem;
}
}
.gel-trafalgar-bold {
font-size: 20px;
font-size: 1.25rem;
line-height: 24px;
line-height: 1.5rem;
font-weight: bold;
letter-spacing: -1px;
letter-spacing: -0.0625rem;
}
@media (min-width: 20em) {
.gel-trafalgar-bold {
font-size: 24px;
font-size: 1.5rem;
line-height: 28px;
line-height: 1.75rem;
}
}
@media (min-width: 37.5em) {
.gel-trafalgar-bold {
font-size: 36px;
font-size: 2.25rem;
line-height: 40px;
line-height: 2.5rem;
}
.no-touch .gel-trafalgar-bold {
font-size: 32px;
font-size: 2rem;
line-height: 36px;
line-height: 2.25rem;
}
}
.gel-double-pica {
font-size: 20px;
font-size: 1.25rem;
line-height: 24px;
line-height: 1.5rem;
}
@media (min-width: 37.5em) {
.gel-double-pica {
font-size: 26px;
font-size: 1.625rem;
line-height: 30px;
line-height: 1.875rem;
}
.no-touch .gel-double-pica {
font-size: 24px;
font-size: 1.5rem;
line-height: 28px;
line-height: 1.75rem;
}
}
.gel-double-pica-bold {
font-size: 20px;
font-size: 1.25rem;
line-height: 24px;
line-height: 1.5rem;
font-weight: bold;
letter-spacing: -1px;
letter-spacing: -0.0625rem;
}
@media (min-width: 37.5em) {
.gel-double-pica-bold {
font-size: 26px;
font-size: 1.625rem;
line-height: 30px;
line-height: 1.875rem;
}
.no-touch .gel-double-pica-bold {
font-size: 24px;
font-size: 1.5rem;
line-height: 28px;
line-height: 1.75rem;
}
}
.gel-great-primer {
font-size: 18px;
font-size: 1.125rem;
line-height: 22px;
line-height: 1.375rem;
}
@media (min-width: 37.5em) {
.gel-great-primer {
font-size: 21px;
font-size: 1.3125rem;
line-height: 24px;
line-height: 1.5rem;
}
.no-touch .gel-great-primer {
font-size: 20px;
font-size: 1.25rem;
}
}
.gel-great-primer-bold {
font-size: 18px;
font-size: 1.125rem;
line-height: 22px;
line-height: 1.375rem;
font-weight: bold;
}
@media (min-width: 20em) {
.gel-great-primer-bold {
letter-spacing: -1px;
letter-spacing: -0.0625rem;
}
}
@media (min-width: 37.5em) {
.gel-great-primer-bold {
font-size: 21px;
font-size: 1.3125rem;
line-height: 24px;
line-height: 1.5rem;
}
.no-touch .gel-great-primer-bold {
font-size: 20px;
font-size: 1.25rem;
}
}
.gel-pica,
.gel-demo {
font-size: 15px;
font-size: 0.9375rem;
line-height: 20px;
line-height: 1.25rem;
}
@media (min-width: 20em) {
.gel-pica,
.gel-demo {
font-size: 16px;
font-size: 1rem;
line-height: 20px;
line-height: 1.25rem;
}
}
@media (min-width: 37.5em) {
.gel-pica,
.gel-demo {
font-size: 18px;
font-size: 1.125rem;
line-height: 22px;
line-height: 1.375rem;
}
.no-touch .gel-pica,
.no-touch .gel-demo {
font-size: 16px;
font-size: 1rem;
line-height: 20px;
line-height: 1.25rem;
}
}
.gel-pica-bold {
font-size: 15px;
font-size: 0.9375rem;
line-height: 20px;
line-height: 1.25rem;
font-weight: bold;
}
@media (min-width: 20em) {
.gel-pica-bold {
font-size: 16px;
font-size: 1rem;
line-height: 20px;
line-height: 1.25rem;
}
}
@media (min-width: 37.5em) {
.gel-pica-bold {
font-size: 18px;
font-size: 1.125rem;
line-height: 22px;
line-height: 1.375rem;
}
.no-touch .gel-pica-bold {
font-size: 16px;
font-size: 1rem;
line-height: 20px;
line-height: 1.25rem;
}
}
.gel-long-primer {
font-size: 15px;
font-size: 0.9375rem;
line-height: 18px;
line-height: 1.125rem;
}
@media (min-width: 37.5em) {
.gel-long-primer {
line-height: 20px;
line-height: 1.25rem;
}
.no-touch .gel-long-primer {
font-size: 14px;
font-size: 0.875rem;
line-height: 18px;
line-height: 1.125rem;
}
}
.gel-long-primer-bold {
font-size: 15px;
font-size: 0.9375rem;
line-height: 18px;
line-height: 1.125rem;
font-weight: bold;
}
@media (min-width: 37.5em) {
.gel-long-primer-bold {
line-height: 20px;
line-height: 1.25rem;
}
.no-touch .gel-long-primer-bold {
font-size: 14px;
font-size: 0.875rem;
line-height: 18px;
line-height: 1.125rem;
}
}
.gel-brevier,
small,
figcaption {
font-size: 14px;
font-size: 0.875rem;
line-height: 16px;
line-height: 1rem;
}
@media (min-width: 20em) {
.gel-brevier,
small,
figcaption {
line-height: 18px;
line-height: 1.125rem;
}
}
@media (min-width: 37.5em) {
.no-touch .gel-brevier,
.no-touch small,
.no-touch figcaption {
font-size: 13px;
font-size: 0.8125rem;
line-height: 16px;
line-height: 1rem;
}
}
.gel-brevier-bold {
font-size: 14px;
font-size: 0.875rem;
line-height: 16px;
line-height: 1rem;
font-weight: bold;
}
@media (min-width: 20em) {
.gel-brevier-bold {
line-height: 18px;
line-height: 1.125rem;
}
}
@media (min-width: 37.5em) {
.no-touch .gel-brevier-bold {
font-size: 13px;
font-size: 0.8125rem;
line-height: 16px;
line-height: 1rem;
}
}
.gel-minion {
font-size: 12px;
font-size: 0.75rem;
line-height: 16px;
line-height: 1rem;
text-transform: uppercase;
}
@media (min-width: 37.5em) {
.gel-minion {
font-size: 13px;
font-size: 0.8125rem;
}
.no-touch .gel-minion {
font-size: 12px;
font-size: 0.75rem;
}
}
.gel-minion-bold {
font-size: 12px;
font-size: 0.75rem;
line-height: 16px;
line-height: 1rem;
text-transform: uppercase;
font-weight: bold;
}
@media (min-width: 37.5em) {
.gel-minion-bold {
font-size: 13px;
font-size: 0.8125rem;
}
.no-touch .gel-minion-bold {
font-size: 12px;
font-size: 0.75rem;
}
}
.gel-body-copy {
font-size: 15px;
font-size: 0.9375rem;
line-height: 20px;
line-height: 1.25rem;
}
@media (min-width: 20em) {
.gel-body-copy {
font-size: 16px;
font-size: 1rem;
line-height: 22px;
line-height: 1.375rem;
}
}
@media (min-width: 37.5em) {
.gel-body-copy {
font-size: 18px;
font-size: 1.125rem;
line-height: 24px;
line-height: 1.5rem;
}
.no-touch .gel-body-copy {
font-size: 16px;
font-size: 1rem;
line-height: 22px;
line-height: 1.375rem;
}
}
body {
font-family: Helvetica, Arial, freesans, sans-serif;
}
/*------------------------------------*\
# TYPOGRAPHY
\*------------------------------------*/
/**
* Define the core typography experience - this basically maps
* various elements of the GEL typography guidelines to the
* relivant type selectors
*/
html {
font-family: Helvetica, Arial, Sans-serif;
color: #404040;
}
p {
margin-bottom: 16px;
}
ul,
ol {
list-style-position: inside;
margin-bottom: 16px;
}
ul {
list-style-type: square;
}
ul li,
ol li {
margin-bottom: 4px;
}
a:link,
a:visited {
font-weight: bold;
text-decoration: underline;
color: #404040;
}
a:hover {
-webkit-transition: color 0.2s ease-out;
-khtml-transition: color 0.2s ease-out;
-moz-transition: color 0.2s ease-out;
-ms-transition: color 0.2s ease-out;
-o-transition: color 0.2s ease-out;
transition: color 0.2s ease-out;
}
a:focus,
a:hover,
a:active {
text-decoration: underline;
color: #e6711b;
/* TODO: Define correct link colour */
}
/* TODO: Define outline styles
a:focus, .button:focus {
} */
small,
figcaption {
color: #767676;
}
.button {
display: inline-block;
position: relative;
padding-top: 16px;
padding-right: 16px;
padding-bottom: 16px;
padding-left: 16px;
border: 0;
margin: 0;
line-height: 1.2;
background-color: #404040;
border: 1px solid #404040;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
cursor: pointer;
color: white;
text-align: center;
color: white ;
text-decoration: none ;
}
@media (min-width: 15em) {
.button {
min-width: 192px;
}
}
.button .gel-icon--inline {
margin-right: 8px;
}
.button:hover {
text-decoration: underline ;
background-color: #121212;
}
.button:active {
top: 1px;
background-color: #e6711b;
border: 1px solid #e6711b;
}
/* to make a button clear */
.button--clear {
background-color: transparent;
color: #404040 ;
}
/* clear button hover styles */
.button--clear:hover {
text-decoration: underline ;
background-color: transparent;
border: 1px solid #404040;
}
.button--clear:active {
background-color: transparent ;
}
/*------------------------------------*\
# DEMO HEADER
\*------------------------------------*/
.gel-demo-header__github-link {
display: block;
margin-top: 8px;
margin-bottom: 8px;
}
.gel-demo-header__github-link object {
max-width: 72px;
vertical-align: middle;
}
.gel-demo-header__banner {
border-top: 1px solid #dcdcdc;
border-bottom: 1px solid #dcdcdc;
padding-top: 12px;
padding-bottom: 12px;
}
.gel-demo-header__brand {
display: block;
margin-bottom: 12px;
}
@media (min-width: 28.75em) {
.gel-demo-header__brand {
float: left;
margin-bottom: 0;
padding-top: 6px;
padding-bottom: 6px;
}
}
.gel-demo-header__brand-logo {
color: #404040;
display: inline-block;
height: 38px;
line-height: 1;
position: relative;
vertical-align: middle;
width: 164px;
}
.gel-demo-header__brand-logo svg {
display: block;
fill: currentColor;
height: inherit;
vertical-align: middle;
width: inherit;
}
.gel-demo-header__brand-beta {
padding-top: 1px;
padding-right: 4px;
padding-bottom: 1px;
padding-left: 4px;
font-style: normal;
font-weight: bold;
color: white;
background: #e6711b;
vertical-align: top;
}
.gel-demo-header__banner-button {
display: block;
width: 100%;
}
@media (min-width: 28.75em) {
.gel-demo-header__banner-button {
float: right;
width: auto;
}
}
.gel-demo-header__intro-title {
margin-top: 24px;
margin-bottom: 12px;
}
.gel-demo-content {
padding-bottom: 72px;
}
/*------------------------------------*\
# TYPE CONTROLS
\*------------------------------------*/
/**
* 1. Remove the margin from the last item
*/
.gel-type-controls {
position: relative;
margin-right: -8px;
margin-bottom: 16px;
margin-left: -8px;
padding: 8px;
background-color: #e6711b;
color: #fff;
}
@media (min-width: 25em) {
.gel-type-controls {
margin-right: -16px;
margin-left: -16px;
padding: 16px;
}
}
@media (min-width: 56.25em) {
.gel-type-controls {
margin-right: 0;
margin-left: 0;
}
}
.gel-type-controls > :last-child {
margin-bottom: 0;
/* [1] */
}
.gel-type-controls__label {
margin-bottom: 8px;
}
.gel-type-controls__toggle-controls {
position: absolute;
bottom: 8px;
right: 8px;
}
@media (min-width: 25em) {
.gel-type-controls__toggle-controls {
bottom: 16px;
right: 16px;
}
}
.gel-type-controls__mode-toggle {
padding: 0;
border: 0;
outline: 0;
color: #fff;
background: none;
}
.gel-type-controls__mode-toggle:focus,
.gel-type-controls__mode-toggle:hover {
text-decoration: underline;
}
.gel-type-controls__mode-toggle--bold {
display: inline-block;
}
.gel-type-controls__mode-toggle--touch {
display: none;
}
@media (min-width: 28.75em) {
.gel-type-controls__mode-toggle--touch {
display: inline-block;
margin-left: 8px;
}
}
/**
* Change the group name based on the current media-query
*/
.gel-type-controls__group-name:after {
content: "Group A (0 - 319px)";
}
@media (min-width: 20em) {
.gel-type-controls__group-name:after {
content: "Group B (320px - 599px)";
}
}
@media (min-width: 37.5em) {
.gel-type-controls__group-name:after {
content: "Group C (600+, Touch available)";
}
.no-touch .gel-type-controls__group-name:after {
content: "Group D (600+, Touch not available)";
}
}
/**
* Change the example device based on the current media-query
*/
.gel-type-controls__example-device:after {
content: "Feature Phones";
}
@media (min-width: 20em) {
.gel-type-controls__example-device:after {
content: "Default & Smart Phones";
}
}
@media (min-width: 37.5em) {
.gel-type-controls__example-device:after {
content: "Typically Tablet Devices";
}
.no-touch .gel-type-controls__example-device:after {
content: "Typically Desktop or Laptop Screens";
}
}
/*------------------------------------*\
# TYPE DEMO
\*------------------------------------*/
.gel-type-demo {
margin-bottom: 16px;
padding-top: 16px;
border-top: 1px solid #dcdcdc;
}
.gel-type-demo:first-child {
border-top: 0;
}
.gel-type-demo--body-copy {
margin-top: 64px;
border-top-color: #dbdbdb;
border-top-width: 2px;
}
/**
* 1. Just incase this is nested within a bold type class
* 2. Unset minon if you're using minon
*/
.gel-type-demo__class {
margin-bottom: 8px;
color: #565656;
letter-spacing: 0;
/* [1] */
text-transform: none;
/* [2] */
}
.gel-type-demo__class-name,
.gel-type-demo__class-html {
display: inline-block;
vertical-align: middle;
}
.gel-type-demo__class-name {
margin-right: 8px;
}
.gel-type-demo__class-html {
margin-bottom: 0;
}
/**
* 1. Remove an text-tranforms which might be missing with the look and feel
*/
.gel-type-demo__sample-scale {
text-transform: none;
/* [1] */
}
.gel-type-demo__settings {
color: #e6711b;
}
/**
* Remove any units from a given value
*/
/**
* Get the type settings for the specified group
*/
/**
* Output the type settings for each font-class for each group
*/
[data-type-class=canon] .gel-type-demo__settings:after {
content: "28/32";
}
@media (min-width: 20em) {
[data-type-class=canon] .gel-type-demo__settings:after {
content: "32/36";
}
}
@media (min-width: 37.5em) {
[data-type-class=canon] .gel-type-demo__settings:after {
content: "52/56";
}
.no-touch [data-type-class=canon] .gel-type-demo__settings:after {
content: "44/48";
}
}
[data-type-class=canon-bold] .gel-type-demo__settings:after {
content: "44/48";
}
[data-type-class=trafalgar] .gel-type-demo__settings:after {
content: "20/24";
}
@media (min-width: 20em) {
[data-type-class=trafalgar] .gel-type-demo__settings:after {
content: "24/28";
}
}
@media (min-width: 37.5em) {
[data-type-class=trafalgar] .gel-type-demo__settings:after {
content: "36/40";
}
.no-touch [data-type-class=trafalgar] .gel-type-demo__settings:after {
content: "32/36";
}
}
[data-type-class=trafalgar-bold] .gel-type-demo__settings:after {
content: "32/36";
}
[data-type-class=double-pica] .gel-type-demo__settings:after {
content: "20/24";
}
@media (min-width: 37.5em) {
[data-type-class=double-pica] .gel-type-demo__settings:after {
content: "26/30";
}
.no-touch [data-type-class=double-pica] .gel-type-demo__settings:after {
content: "24/28";
}
}
[data-type-class=double-pica-bold] .gel-type-demo__settings:after {
content: "24/28";
}
[data-type-class=great-primer] .gel-type-demo__settings:after {
content: "18/22";
}
@media (min-width: 37.5em) {
[data-type-class=great-primer] .gel-type-demo__settings:after {
content: "21/24";
}
.no-touch [data-type-class=great-primer] .gel-type-demo__settings:after {
content: "20/24";
}
}
[data-type-class=great-primer-bold] .gel-type-demo__settings:after {
content: "20/24";
}
@media (min-width: 20em) {
[data-type-class=great-primer-bold] .gel-type-demo__settings:after {
content: "20/24";
}
}
[data-type-class=pica] .gel-type-demo__settings:after {
content: "15/20";
}
@media (min-width: 20em) {
[data-type-class=pica] .gel-type-demo__settings:after {
content: "16/20";
}
}
@media (min-width: 37.5em) {
[data-type-class=pica] .gel-type-demo__settings:after {
content: "18/22";
}
.no-touch [data-type-class=pica] .gel-type-demo__settings:after {
content: "16/20";
}
}
[data-type-class=pica-bold] .gel-type-demo__settings:after {
content: "16/20";
}
[data-type-class=long-primer] .gel-type-demo__settings:after {
content: "15/18";
}
@media (min-width: 37.5em) {
[data-type-class=long-primer] .gel-type-demo__settings:after {
content: "15/20";
}
.no-touch [data-type-class=long-primer] .gel-type-demo__settings:after {
content: "14/18";
}
}
[data-type-class=long-primer-bold] .gel-type-demo__settings:after {
content: "14/18";
}
[data-type-class=brevier] .gel-type-demo__settings:after {
content: "14/16";
}
@media (min-width: 20em) {
[data-type-class=brevier] .gel-type-demo__settings:after {
content: "14/18";
}
}
@media (min-width: 37.5em) {
.no-touch [data-type-class=brevier] .gel-type-demo__settings:after {
content: "13/16";
}
}
[data-type-class=brevier-bold] .gel-type-demo__settings:after {
content: "13/16";
}
[data-type-class=minion] .gel-type-demo__settings:after {
content: "12/16";
}
@media (min-width: 37.5em) {
[data-type-class=minion] .gel-type-demo__settings:after {
content: "13/16";
}
.no-touch [data-type-class=minion] .gel-type-demo__settings:after {
content: "12/16";
}
}
[data-type-class=minion-bold] .gel-type-demo__settings:after {
content: "12/16";
}
[data-type-class=body-copy] .gel-type-demo__settings:after {
content: "15/20";
}
@media (min-width: 20em) {
[data-type-class=body-copy] .gel-type-demo__settings:after {
content: "16/22";
}
}
@media (min-width: 37.5em) {
[data-type-class=body-copy] .gel-type-demo__settings:after {
content: "18/24";
}
.no-touch [data-type-class=body-copy] .gel-type-demo__settings:after {
content: "16/22";
}
}
/*------------------------------------*\
# CLEARFIX
\*------------------------------------*/
/**
* Micro clearfix, as per: css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
*/
.clearfix:after {
content: "";
display: table;
clear: both;
}