From 3522285fb3618464e27fe26d78a5f9b02184a747 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sat, 28 Jul 2018 17:10:42 -0400 Subject: [PATCH] Switch to Input Mono for code blocks --- fonts/input-mono/stylesheet.css | 27 ++++++++++++++++++++++----- functions.php | 1 + style.css | 8 ++++++-- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/fonts/input-mono/stylesheet.css b/fonts/input-mono/stylesheet.css index b824dcd..4642ed4 100644 --- a/fonts/input-mono/stylesheet.css +++ b/fonts/input-mono/stylesheet.css @@ -1,13 +1,30 @@ @font-face { font-family: 'Input Mono'; - src: url('FanwoodText-Regular.ttf') format('truetype'); - font-weight: normal; font-style: normal; + font-weight: 400; + src: url('Input-Regular_(InputMono-Regular).ttf'); + } @font-face { - font-family: 'Fanwood Text'; - src: url('FanwoodText-Italic.ttf') format('truetype'); - font-weight: normal; + font-family: 'Input Mono'; font-style: italic; + font-weight: 400; + src: url('Input-Italic_(InputMono-Italic).ttf'); + +} + +@font-face { + font-family: 'Input Mono'; + font-style: normal; + font-weight: 700; + src: url('Input-Bold_(InputMono-Bold).ttf'); + +} + +@font-face { + font-family: 'Input Mono'; + font-style: italic; + font-weight: 700; + src: url('Input-BoldItalic_(InputMono-BoldItalic).ttf'); } diff --git a/functions.php b/functions.php index a60ba00..4c0390c 100644 --- a/functions.php +++ b/functions.php @@ -121,6 +121,7 @@ add_action( 'widgets_init', 'jeremy_wordpress_theme_widgets_init' ); */ function jeremy_wordpress_theme_scripts() { wp_enqueue_style( 'fanwood-text-font', get_template_directory_uri() . '/fonts/fanwood-text/stylesheet.css' ); + wp_enqueue_style( 'input-mono-font', get_template_directory_uri() . '/fonts/input-mono/stylesheet.css' ); wp_enqueue_style( 'jeremy-wordpress-theme-style', get_stylesheet_uri() ); wp_enqueue_script( 'jeremy-wordpress-theme-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); diff --git a/style.css b/style.css index 057f839..4fbc62a 100644 --- a/style.css +++ b/style.css @@ -424,7 +424,7 @@ address { pre { background: #eee; - font-family: "Courier 10 Pitch", Courier, monospace; + font-family: "Input Mono", "Courier 10 Pitch", Courier, monospace; font-size: 15px; font-size: 0.9375rem; line-height: 1.6; @@ -435,11 +435,15 @@ pre { } code, kbd, tt, var { - font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; + font-family: "Input Mono", Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; font-size: 15px; font-size: 0.9375rem; } +samp { + font-family: "Input Mono", Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} + abbr, acronym { border-bottom: 1px dotted #666; cursor: help;