Skip to content

Commit

Permalink
Modernize and rename font stacks
Browse files Browse the repository at this point in the history
- Closes #709
  • Loading branch information
Tyson Gach committed Jan 19, 2016
1 parent 22f1d4c commit 3cf106a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 26 deletions.
18 changes: 11 additions & 7 deletions app/assets/stylesheets/addons/_font-stacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

////
/// @type list
///
/// @link goo.gl/Cxb26i
////

$georgia: "Georgia", "Cambria", "Times New Roman", "Times", serif;

$helvetica: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;

$lucida-grande: "Lucida Grande", "Tahoma", "Verdana", "Arial", sans-serif;
$helvetica: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
$lucida-grande: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Geneva", "Verdana", sans-serif;
$verdana: "Verdana", "Geneva", sans-serif;

$monospace: "Bitstream Vera Sans Mono", "Consolas", "Courier", monospace;
$garamond: "Garamond", "Baskerville", "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
$georgia: "Georgia", "Times", "Times New Roman", serif;
$hoefler-text: "Hoefler Text", "Baskerville Old Face", "Garamond", "Times New Roman", serif;

$verdana: "Verdana", "Geneva", sans-serif;
$consolas: "Consolas", "monaco", monospace;
$courier-new: "Courier New", "Courier", "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
$monaco: "monaco", "Consolas", "Lucida Console", monospace;
32 changes: 21 additions & 11 deletions spec/bourbon/addons/font_stacks_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,29 @@

context "stacks used in variable" do
it "output stacks" do
georgia = '"Georgia", "Cambria", "Times New Roman", "Times", serif'
helvetica = '"Helvetica Neue", "Helvetica", "Roboto", ' +
'"Arial", sans-serif'
lucida_grande = '"Lucida Grande", "Tahoma", "Verdana", ' +
'"Arial", sans-serif'
monospace = '"Bitstream Vera Sans Mono", "Consolas", "Courier", monospace'
helvetica = '"Helvetica Neue", "Helvetica", "Arial", sans-serif'
lucida_grande = '"Lucida Grande", "Lucida Sans Unicode", ' +
'"Lucida Sans", "Geneva", "Verdana", sans-serif'
verdana = '"Verdana", "Geneva", sans-serif'
garamond = '"Garamond", "Baskerville", "Baskerville Old Face", ' +
'"Hoefler Text", "Times New Roman", serif'
georgia = '"Georgia", "Times", "Times New Roman", serif'
hoefler_text = '"Hoefler Text", "Baskerville Old Face", ' +
'"Garamond", "Times New Roman", serif'
consolas = '"Consolas", "monaco", monospace'
courier_new = '"Courier New", "Courier", "Lucida Sans Typewriter", ' +
'"Lucida Typewriter", monospace'
monaco = '"monaco", "Consolas", "Lucida Console", monospace'

expect("$georgia").to have_value(georgia)
expect("$helvetica").to have_value(helvetica)
expect("$lucida-grande").to have_value(lucida_grande)
expect("$monospace").to have_value(monospace)
expect("$verdana").to have_value(verdana)
expect(".helvetica").to have_value(helvetica)
expect(".lucida-grande").to have_value(lucida_grande)
expect(".verdana").to have_value(verdana)
expect(".garamond").to have_value(garamond)
expect(".georgia").to have_value(georgia)
expect(".hoefler-text").to have_value(hoefler_text)
expect(".consolas").to have_value(consolas)
expect(".courier-new").to have_value(courier_new)
expect(".monaco").to have_value(monaco)
end
end
end
32 changes: 24 additions & 8 deletions spec/fixtures/addons/font-stacks.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@import "setup";

.georgia {
content: $georgia;
}

.helvetica {
content: $helvetica;
}
Expand All @@ -12,10 +8,30 @@
content: $lucida-grande;
}

.monospace {
content: $monospace;
}

.verdana {
content: $verdana;
}

.garamond {
content: $garamond;
}

.georgia {
content: $georgia;
}

.hoefler-text {
content: $hoefler-text;
}

.consolas {
content: $consolas;
}

.courier-new {
content: $courier-new;
}

.monaco {
content: $monaco;
}

0 comments on commit 3cf106a

Please sign in to comment.