Skip to content

Commit

Permalink
Add documentation for each font stack variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tysongach committed Nov 1, 2016
1 parent 5b7ab71 commit da3be35
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 5 deletions.
160 changes: 156 additions & 4 deletions core/bourbon/library/_font-stacks.scss
@@ -1,10 +1,20 @@
@charset "UTF-8";

////
/// A variable that outputs a Helvetica font stack.
///
/// @link https://goo.gl/uSJvZe
///
/// @type list
///
/// @link https://goo.gl/Cxb26i
////
/// @example scss
/// .element {
/// font-family: $font-stack-helvetica;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
/// }

$font-stack-helvetica: (
"Helvetica Neue",
Expand All @@ -13,6 +23,22 @@ $font-stack-helvetica: (
sans-serif,
);

/// A variable that outputs a Lucida Grande font stack.
///
/// @link https://goo.gl/R5UyYE
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-lucida-grande;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Lucida Grande", "Lucida Sans Unicode", "Geneva", "Verdana", sans-serif;
/// }

$font-stack-lucida-grande: (
"Lucida Grande",
"Lucida Sans Unicode",
Expand All @@ -21,13 +47,43 @@ $font-stack-lucida-grande: (
sans-serif,
);

/// A variable that outputs a Verdana font stack.
///
/// @link https://goo.gl/yGXWSS
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-verdana;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Verdana", "Geneva", sans-serif;
/// }

$font-stack-verdana: (
"Verdana",
"Geneva",
sans-serif,
);

/// A variable that outputs a system font stack.
///
/// @link https://goo.gl/LHRZIf
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-system;
/// }
///
/// // CSS Output
/// .element {
/// font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
/// }

$font-stack-system: (
-apple-system,
Expand All @@ -51,6 +107,22 @@ $font-stack-system: (
sans-serif,
);

/// A variable that outputs a Garamond font stack.
///
/// @link https://goo.gl/QQFEkV
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-garamond;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Garamond", "Baskerville", "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
/// }

$font-stack-garamond: (
"Garamond",
"Baskerville",
Expand All @@ -60,13 +132,45 @@ $font-stack-garamond: (
serif,
);

/// A variable that outputs a Georgia font stack.
///
/// @link https://goo.gl/wtzVPy
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-georgia;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Georgia", "Times", "Times New Roman", serif;
/// }

$font-stack-georgia: (
"Georgia",
"Times",
"Times New Roman",
serif,
);

/// A variable that outputs a Hoefler Text font stack.
///
/// @link https://goo.gl/n7U7zx
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-hoefler-text;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Hoefler Text", "Baskerville Old Face", "Garamond", "Times New Roman", serif;
/// }

$font-stack-hoefler-text: (
"Hoefler Text",
"Baskerville Old Face",
Expand All @@ -75,12 +179,44 @@ $font-stack-hoefler-text: (
serif,
);

/// A variable that outputs a Consolas font stack.
///
/// @link https://goo.gl/iKrtqv
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-consolas;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Consolas", "monaco", monospace;
/// }

$font-stack-consolas: (
"Consolas",
"monaco",
monospace,
);

/// A variable that outputs a Courier New font stack.
///
/// @link https://goo.gl/bHfWMP
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-courier-new;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Courier New", "Courier", "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
/// }

$font-stack-courier-new: (
"Courier New",
"Courier",
Expand All @@ -89,8 +225,24 @@ $font-stack-courier-new: (
monospace,
);

/// A variable that outputs a Monaco font stack.
///
/// @link https://goo.gl/9PgKDO
///
/// @type list
///
/// @example scss
/// .element {
/// font-family: $font-stack-monaco;
/// }
///
/// // CSS Output
/// .element {
/// font-family: "Monaco", "Consolas", "Lucida Console", monospace;
/// }

$font-stack-monaco: (
"monaco",
"Monaco",
"Consolas",
"Lucida Console",
monospace,
Expand Down
2 changes: 1 addition & 1 deletion spec/bourbon/library/font_stacks_spec.rb
Expand Up @@ -19,7 +19,7 @@
consolas = '"Consolas", "monaco", monospace'
courier_new = '"Courier New", "Courier", "Lucida Sans Typewriter", ' +
'"Lucida Typewriter", monospace'
monaco = '"monaco", "Consolas", "Lucida Console", monospace'
monaco = '"Monaco", "Consolas", "Lucida Console", monospace'

system = '-apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", ' +
'"Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", ' +
Expand Down

0 comments on commit da3be35

Please sign in to comment.