From 06258ba08403fb7816c0c120ca4e9a949b6145d9 Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 10 Apr 2015 10:14:07 +0100 Subject: [PATCH 1/4] Remove unused Sass partial --- assets/scss/barebones.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/scss/barebones.scss b/assets/scss/barebones.scss index 2ed9ef2..df243bd 100755 --- a/assets/scss/barebones.scss +++ b/assets/scss/barebones.scss @@ -14,7 +14,6 @@ Author: Benchmark @import 'vendor/simple-grid/simple-grid'; -@import 'base/normalise'; @import 'base/shared'; @import 'base/images'; @import 'base/forms'; @@ -23,4 +22,4 @@ Author: Benchmark @import 'base/links'; @import 'modules/nav'; -@import 'modules/buttons'; \ No newline at end of file +@import 'modules/buttons'; From a3d6e1aec3645bd6e7e87535f854eb448a83624c Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 10 Apr 2015 10:16:40 +0100 Subject: [PATCH 2/4] Remove FontAwesome, make it easier to include Google Fonts --- functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/functions.php b/functions.php index dba6725..e90a791 100644 --- a/functions.php +++ b/functions.php @@ -42,10 +42,8 @@ add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' ); function barebones_scripts() { /* * For IE8 to play nice, you'll need to include your CSS here, for example: - * - * wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' ); - * wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', null, '4.3.0' ); */ + // wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' ); wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2', true ); wp_enqueue_script( 'jquery' ); From a3102e322d5aa6ab6c7ebc8820c4fef5d4342618 Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 10 Apr 2015 10:17:05 +0100 Subject: [PATCH 3/4] Add wp_get_attachment_image_url function --- functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions.php b/functions.php index e90a791..5192c57 100644 --- a/functions.php +++ b/functions.php @@ -131,3 +131,13 @@ function barebones_tiny_mce_before_init( $settings ) { } add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' ); + + +/** + * Get image URL for whatever size. + */ + +function wp_get_attachment_image_url( $id, $size = 'full', $attrs = []) { + $image = wp_get_attachment_image_src( $id, $size, $attrs ); + return $image[0]; +} From 899ec1c4cf5eef0ad3b67181b1f4b00a91c24874 Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 10 Apr 2015 14:39:28 +0100 Subject: [PATCH 4/4] Fix for Windows Safari --- assets/scss/utilities/_a11y.scss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/scss/utilities/_a11y.scss b/assets/scss/utilities/_a11y.scss index 5a6ee02..d985864 100644 --- a/assets/scss/utilities/_a11y.scss +++ b/assets/scss/utilities/_a11y.scss @@ -1,4 +1,7 @@ .sr-only { font-size: 0; + height: 0; + overflow: hidden; position: absolute; -} \ No newline at end of file + width: 0; +}