From 7f7983de9812597d990c4a0954e8c7447873542f Mon Sep 17 00:00:00 2001 From: Thuan Bui Date: Sat, 6 Oct 2018 21:41:43 +0700 Subject: [PATCH] Add YCB Social Icons --- assets/styles/_content.scss | 27 ++++++++++++++- assets/styles/_plugins.scss | 37 +++++++++++++++++++++ functions.php | 24 ++++++++++++++ style.css | 65 +++++++++++++++++++++++++++++++++++++ style.css.map | 2 +- 5 files changed, 153 insertions(+), 2 deletions(-) diff --git a/assets/styles/_content.scss b/assets/styles/_content.scss index 4184570..f658442 100755 --- a/assets/styles/_content.scss +++ b/assets/styles/_content.scss @@ -357,12 +357,37 @@ } .active a { - @include gradient; color: $white; } } +.entry-pagination { + margin-bottom: 60px; + a { + padding: 0.5rem 1rem; + color: $dark; + font-size: 1.6rem; + text-decoration: none; + @include transition; + &:hover, + &:focus { + color: $accent; + } + } + + & > .custom-page-links { + padding: 0.5rem 1rem; + @include gradient; + color: $white; + border-radius: $site-radius; + } +} + + + + + /* ## Comments --------------------------------------------- */ diff --git a/assets/styles/_plugins.scss b/assets/styles/_plugins.scss index 5787dc1..fdf37da 100755 --- a/assets/styles/_plugins.scss +++ b/assets/styles/_plugins.scss @@ -651,6 +651,9 @@ ul.testimonials-list { } .gfpc-featured-posts { + & > article { + margin-bottom: 40px; + } .entry-content { clear: unset; &:before { @@ -717,4 +720,38 @@ ul.testimonials-list { #wpcomm .wc-reply .wc-comment-right .wc-comment-text, #wpcomm .wc-reply .wc-comment-right .wc-comment-text * { font-size: 1.6rem; +} + + +/*YCB Social Icons*/ +ul.ycb-social-icons { + margin: 0; + line-height: unset; + li { + padding: 0 !important; + display: inline-block !important; + margin: 0 8px 8px 0 !important; + list-style-type: none !important; + + a { + border-radius: 2px; + font-size: 20px !important; + background: $blue; + padding: 8px; + color: #FFF; + + &:hover { + background: $one !important; + color: #FFFFFF !important; + } + + .svg-inline--fa { + width: 1.2em; + text-align: center; + font-variant: normal; + text-transform: none; + line-height: 1.2em; + } + } + } } \ No newline at end of file diff --git a/functions.php b/functions.php index 5ebc91e..86da14e 100755 --- a/functions.php +++ b/functions.php @@ -244,6 +244,11 @@ function corporate_scripts_styles() { } + // Enqueue Font-Awesome 5 + wp_enqueue_script( 'font-awesome-free', '//use.fontawesome.com/releases/v5.3.1/js/fontawesome.js', array(), null ); + wp_enqueue_script( 'font-awesome-brand', '//use.fontawesome.com/releases/v5.3.1/js/brands.js', array(), null ); + + // Enqueue custom theme scripts. wp_enqueue_script( CHILD_TEXT_DOMAIN . '-pro', CHILD_THEME_URI . '/assets/scripts/min/theme.min.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); @@ -289,6 +294,25 @@ require_once CHILD_THEME_DIR . '/includes/defaults.php'; // Load recommended plugins. require_once CHILD_THEME_DIR . '/includes/plugins.php'; +add_filter( 'script_loader_tag', 'add_defer_attribute', 10, 2 ); +/** + * Filter the HTML script tag of `font-awesome` script to add `defer` attribute. + * + * @param string $tag The