Skip to content

Commit

Permalink
Tweak fira font sizing, add .font-code, .font-embl
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins98 committed Nov 9, 2017
1 parent 109f215 commit 54d0d02
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions css/ebi-css-build/_ebi_code_styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@mixin ebi-code-styles {
.code {
font-family: Consolas, "Liberation Mono", Courier, monospace;
font-family: $code-font-family;
font-weight: normal;
color: #0a0a0a;
background-color: #e6e6e6;
Expand All @@ -21,6 +21,6 @@
.kbd {
margin: 0;
color: #0a0a0a;
font-family: Consolas, "Liberation Mono", Courier, monospace;
font-family: $code-font-family;
}
}
3 changes: 3 additions & 0 deletions css/ebi-css-build/_ebi_table_styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
@mixin ebi-table-styles {
table {
font-family: $table-font-family;
}
// padding for page content
body.table-layout table {
padding: 0;
Expand Down
2 changes: 2 additions & 0 deletions css/ebi-css-build/_ebi_theme_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ $body-antialiased: true;
$body-font-color: $ebi-colour-dark;
$body-font-family: 'Fira Sans', Helvetica, Arial, sans-serif;
$body-font-family-serif: 'EB Garamond', 'georgia', serif;
$code-font-family: 'Fira Code', Consolas, 'Liberation Mono', Courier, monospace;
$table-font-family: $code-font-family;

// Set foundation colours
$foundation-palette: (
Expand Down
8 changes: 5 additions & 3 deletions css/ebi-css-build/_ebi_utility_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }

.serif { font-family: $body-font-family-serif; font-size: 1.1rem; }
.sans-serif { font-family: $body-font-family; font-size: 1.1rem; }
.serif .sans-serif { font-size: 1rem; } // reset font size when nesting
.font-embl { font-family: $body-font-family; }
.font-code { font-family: $code-font-family; }
.font-serif, .serif { font-family: $body-font-family-serif; }
.font-sans-serif, .sans-serif { font-family: $body-font-family; }
// .serif .sans-serif { font-size: 1rem; } // reset font size when nesting

.block { display: block; }
.clear { clear: both; }
Expand Down
5 changes: 4 additions & 1 deletion css/ebi-css-build/ebi-global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
@import 'ebi_color_styles';
@import 'ebi_clearable_inputs';
@import 'embl_selector'; // EMBL Dropdown selector for .masthead-black-bar

// simple imports for the font while we test
@import 'https://code.cdn.mozilla.net/fonts/fira.css';
@import 'https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css';

@mixin ebi-base-styles {
body h1, body h2, body h3, body h4, body h5 { font-weight: 300; letter-spacing: -.5px}
Expand Down Expand Up @@ -303,7 +306,7 @@
.columns.no-pad-left { padding-left: 0; }

// mono-space fonts are fat
code { font-size: .95rem; }
// code { font-size: .95rem; }

// Button
//
Expand Down
6 changes: 3 additions & 3 deletions css/ebi-css-build/foundation/_settings-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ $block-grid-max: 8;
$header-font-family: $body-font-family;
$header-font-weight: $global-weight-normal;
$header-font-style: normal;
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
$font-family-monospace: $code-font-family;
$header-sizes: (
small: (
'h1': 24,
Expand All @@ -183,11 +183,11 @@ $header-margin-bottom: 0.5rem;
$header-text-rendering: optimizeLegibility;
$small-font-size: 80%;
$header-small-font-color: $medium-gray;
$paragraph-lineheight: 1.6;
$paragraph-lineheight: 1.5;
$paragraph-margin-bottom: 1rem;
$paragraph-text-rendering: optimizeLegibility;
$code-color: $black;
$code-font-family: $font-family-monospace;
// $code-font-family: $font-family-monospace;
$code-font-weight: $global-weight-normal;
$code-background: $light-gray;
$code-border: 1px solid $medium-gray;
Expand Down
2 changes: 1 addition & 1 deletion libraries/Choices/assets/styles/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ html, body {
}

body {
font-family: 'Fira Sans', Helvetica, Arial, "Lucida Grande", sans-serif;
font-family: $body-font-family;
font-size: 16px;
line-height: 1.4;
color: #FFFFFF;
Expand Down

0 comments on commit 54d0d02

Please sign in to comment.