From ecd451045cf2f0d43469738f0527a7c7f06aab76 Mon Sep 17 00:00:00 2001 From: Adam Turner Date: Thu, 29 Aug 2019 08:24:16 -0700 Subject: [PATCH] Fix #10 Restore default link styling in course documents lists --- includes/template-functions.php | 4 ++-- src/blocks/list-courses/style.css | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/template-functions.php b/includes/template-functions.php index 5947ce2..9929f38 100644 --- a/includes/template-functions.php +++ b/includes/template-functions.php @@ -123,8 +123,8 @@ function filter_courses_content( $content ) { if ( false !== strpos( $content, 'course-documents' ) ) { $icon = Icons\SVG_Icons::get_svg( 'ui', 'attachment' ); $content = preg_replace( - '/
  • (.*?)/', - '
  • $1' . $icon, + '/
  • (.*?)()/', + '
  • $1' . $icon . '$2', $content ); } diff --git a/src/blocks/list-courses/style.css b/src/blocks/list-courses/style.css index 578b380..aa1f193 100644 --- a/src/blocks/list-courses/style.css +++ b/src/blocks/list-courses/style.css @@ -106,8 +106,7 @@ svg.svg-icon { } .wsuwp_hrs_courses .course-documents a { - border: none; - display: block; + display: inline-block; margin-right: 2em; }