certs
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
17 changed files
with
175 additions
and
36 deletions
This diff is collapsed.
Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -5,6 +5,8 @@ add_shortcode('course-list', 'course_list'); | ... | @@ -5,6 +5,8 @@ add_shortcode('course-list', 'course_list'); |
| 5 | 5 | ||
| 6 | function course_list(){ | 6 | function course_list(){ |
| 7 | 7 | ||
| 8 | try{ | ||
| 9 | |||
| 8 | $custom_args = array( | 10 | $custom_args = array( |
| 9 | 'post_type' => 'sfwd-courses', | 11 | 'post_type' => 'sfwd-courses', |
| 10 | 'posts_per_page' => -1, | 12 | 'posts_per_page' => -1, |
| ... | @@ -39,9 +41,13 @@ function course_list(){ | ... | @@ -39,9 +41,13 @@ function course_list(){ |
| 39 | </div> | 41 | </div> |
| 40 | </div> | 42 | </div> |
| 41 | <?php endif; | 43 | <?php endif; |
| 42 | wp_reset_query(); | 44 | wp_reset_query(); |
| 43 | $output = ob_get_clean(); | 45 | $output = ob_get_clean(); |
| 44 | return $output; | 46 | return $output; |
| 47 | }catch(Throwable $e) { | ||
| 48 | error_log("course_list()". $e->getMessage()) ; | ||
| 49 | } | ||
| 50 | |||
| 45 | } | 51 | } |
| 46 | 52 | ||
| 47 | add_shortcode('my-course-list', 'my_course_list'); | 53 | add_shortcode('my-course-list', 'my_course_list'); |
| ... | @@ -55,7 +61,7 @@ $enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id()); | ... | @@ -55,7 +61,7 @@ $enrolled_courses = learndash_user_get_enrolled_courses(get_current_user_id()); |
| 55 | if (is_array($enrolled_courses)): ?> | 61 | if (is_array($enrolled_courses)): ?> |
| 56 | <div class="carousel course"> | 62 | <div class="carousel course"> |
| 57 | <div id="<?php echo $uniqid; ?>" class="course-carousel carousel-items"> | 63 | <div id="<?php echo $uniqid; ?>" class="course-carousel carousel-items"> |
| 58 | <div class='swiper-wrapper'> | 64 | <div class='swiper-wrapper container'> |
| 59 | <?php foreach($enrolled_courses as $enrolled){ | 65 | <?php foreach($enrolled_courses as $enrolled){ |
| 60 | echo course_card($enrolled); | 66 | echo course_card($enrolled); |
| 61 | }; ?> | 67 | }; ?> | ... | ... |
| ... | @@ -5,6 +5,8 @@ add_shortcode('resources-list', 'resources_list'); | ... | @@ -5,6 +5,8 @@ add_shortcode('resources-list', 'resources_list'); |
| 5 | 5 | ||
| 6 | function resources_list(){ | 6 | function resources_list(){ |
| 7 | 7 | ||
| 8 | try{ | ||
| 9 | |||
| 8 | $custom_args = array( | 10 | $custom_args = array( |
| 9 | 'post_type' => 'resource', | 11 | 'post_type' => 'resource', |
| 10 | 'posts_per_page' => -1, | 12 | 'posts_per_page' => -1, |
| ... | @@ -54,9 +56,14 @@ function resources_list(){ | ... | @@ -54,9 +56,14 @@ function resources_list(){ |
| 54 | </table> | 56 | </table> |
| 55 | </div> | 57 | </div> |
| 56 | <?php endif; | 58 | <?php endif; |
| 57 | wp_reset_query(); | 59 | wp_reset_query(); |
| 58 | $output = ob_get_clean(); | 60 | $output = ob_get_clean(); |
| 59 | return $output; | 61 | return $output; |
| 62 | |||
| 63 | }catch(Throwable $e) { | ||
| 64 | error_log("resources_list()". $e->getMessage()) ; | ||
| 65 | } | ||
| 66 | |||
| 60 | } | 67 | } |
| 61 | 68 | ||
| 62 | 69 | ... | ... |
| ... | @@ -4,6 +4,7 @@ add_shortcode( 'promos', 'promos' ); | ... | @@ -4,6 +4,7 @@ add_shortcode( 'promos', 'promos' ); |
| 4 | 4 | ||
| 5 | function promos(){ | 5 | function promos(){ |
| 6 | 6 | ||
| 7 | try{ | ||
| 7 | $custom_args = array( | 8 | $custom_args = array( |
| 8 | 'post_type' => 'promo', | 9 | 'post_type' => 'promo', |
| 9 | 'posts_per_page' => 3, | 10 | 'posts_per_page' => 3, |
| ... | @@ -29,9 +30,12 @@ function promos(){ | ... | @@ -29,9 +30,12 @@ function promos(){ |
| 29 | </div> | 30 | </div> |
| 30 | 31 | ||
| 31 | <?php endif; | 32 | <?php endif; |
| 32 | wp_reset_query(); | 33 | wp_reset_query(); |
| 33 | $output = ob_get_clean(); | 34 | $output = ob_get_clean(); |
| 34 | return $output; | 35 | return $output; |
| 36 | }catch(Throwable $e) { | ||
| 37 | error_log("promos()". $e->getMessage()) ; | ||
| 38 | } | ||
| 35 | } | 39 | } |
| 36 | 40 | ||
| 37 | function promos_slides($id){ | 41 | function promos_slides($id){ |
| ... | @@ -107,4 +111,51 @@ function firstname(){ | ... | @@ -107,4 +111,51 @@ function firstname(){ |
| 107 | $user = get_userdata( get_current_user_id() ); | 111 | $user = get_userdata( get_current_user_id() ); |
| 108 | return $user->first_name;; | 112 | return $user->first_name;; |
| 109 | 113 | ||
| 114 | } | ||
| 115 | |||
| 116 | |||
| 117 | add_shortcode( 'certs', 'certs' ); | ||
| 118 | |||
| 119 | function certs(){ | ||
| 120 | |||
| 121 | try{ | ||
| 122 | $enrolled_courses = learndash_user_get_enrolled_courses( get_current_user_id(), array(), false); | ||
| 123 | |||
| 124 | |||
| 125 | ob_start(); | ||
| 126 | |||
| 127 | if (is_array($enrolled_courses)):?> | ||
| 128 | |||
| 129 | <div class="carousel"> | ||
| 130 | <div id="cert" class="cert-carousel carousel-items"> | ||
| 131 | <div class='swiper-wrapper'> | ||
| 132 | <?php foreach($enrolled_courses as $enrolled_course){ | ||
| 133 | $cert = learndash_get_course_certificate_link($enrolled_course, get_current_user_id()); | ||
| 134 | if(!empty($cert)){ | ||
| 135 | $sfwd_course = get_post_meta($enrolled_course , '_sfwd-courses', true ); | ||
| 136 | $thumbnail_id = "911"; ?> | ||
| 137 | <div class="swiper-slide container"> | ||
| 138 | <div class="cert"> | ||
| 139 | <?php echo '<a target="_blank" style="background-image:url('.wp_get_attachment_url( $thumbnail_id).')" class="cert_link" href="'.$cert.'"><p><strong>' | ||
| 140 | .get_user_meta(get_current_user_id(), 'first_name', true )." ". get_user_meta(get_current_user_id(), 'last_name', true ).'</strong></p>' | ||
| 141 | .get_the_title( $enrolled_course ).'</a>'; | ||
| 142 | ?> | ||
| 143 | </div> | ||
| 144 | </div> | ||
| 145 | <?php } | ||
| 146 | }; ?> | ||
| 147 | </div> | ||
| 148 | <div class="swiper-pagination"></div> | ||
| 149 | <div class="swiper-button-prev" data-id="cert"></div> | ||
| 150 | <div class="swiper-button-next" data-id="cert"></div> | ||
| 151 | </div> | ||
| 152 | </div> | ||
| 153 | |||
| 154 | <?php endif; | ||
| 155 | wp_reset_query(); | ||
| 156 | $output = ob_get_clean(); | ||
| 157 | return $output; | ||
| 158 | }catch(Throwable $e) { | ||
| 159 | error_log("certs()". $e->getMessage()) ; | ||
| 160 | } | ||
| 110 | } | 161 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -32984,18 +32984,26 @@ | ... | @@ -32984,18 +32984,26 @@ |
| 32984 | _id = jQuery(this).attr('id'); | 32984 | _id = jQuery(this).attr('id'); |
| 32985 | } | 32985 | } |
| 32986 | if (jQuery(this).hasClass('course-carousel')) { | 32986 | if (jQuery(this).hasClass('course-carousel')) { |
| 32987 | offset = (window.innerWidth - $('.entry-content').width()) / 2 - 28; | 32987 | offset = 0; |
| 32988 | PerView = 3; | 32988 | PerView = 3; |
| 32989 | space = 0; | 32989 | space = 45; |
| 32990 | SlidesPerGroup = 3; | 32990 | SlidesPerGroup = 1; |
| 32991 | offsetAfter = (window.innerWidth - $('.entry-content').width()) / 2 - 28; | 32991 | offsetAfter = 0; |
| 32992 | _id = jQuery(this).attr('id'); | ||
| 32993 | } | ||
| 32994 | if (jQuery(this).hasClass('cert-carousel')) { | ||
| 32995 | offset = 0; | ||
| 32996 | PerView = 3; | ||
| 32997 | space = 40; | ||
| 32998 | SlidesPerGroup = 1; | ||
| 32999 | offsetAfter = 0; | ||
| 32992 | _id = jQuery(this).attr('id'); | 33000 | _id = jQuery(this).attr('id'); |
| 32993 | } | 33001 | } |
| 32994 | if ($(window).width() < 600) { | 33002 | if ($(window).width() < 600) { |
| 32995 | offset = 0; | 33003 | offset = 0; |
| 32996 | PerView = 1; | 33004 | PerView = 1; |
| 32997 | SlidesPerGroup = 1; | 33005 | SlidesPerGroup = 0; |
| 32998 | space = 0; | 33006 | space = 40; |
| 32999 | offsetAfter = 0; | 33007 | offsetAfter = 0; |
| 33000 | } | 33008 | } |
| 33001 | var swiper_params = { | 33009 | var swiper_params = { |
| ... | @@ -33632,6 +33640,8 @@ | ... | @@ -33632,6 +33640,8 @@ |
| 33632 | document.getElementById('main-nav').classList.add('fixed-top'); | 33640 | document.getElementById('main-nav').classList.add('fixed-top'); |
| 33633 | } else { | 33641 | } else { |
| 33634 | document.getElementById('main-nav').classList.remove('fixed-top'); | 33642 | document.getElementById('main-nav').classList.remove('fixed-top'); |
| 33643 | document.getElementById('search').classList.remove('open'); | ||
| 33644 | document.getElementById('search-button').classList.remove('open'); | ||
| 33635 | } | 33645 | } |
| 33636 | }); | 33646 | }); |
| 33637 | }); | 33647 | }); |
| ... | @@ -33659,9 +33669,12 @@ | ... | @@ -33659,9 +33669,12 @@ |
| 33659 | $__default["default"](document).ready(function ($) { | 33669 | $__default["default"](document).ready(function ($) { |
| 33660 | var $search = $('.search').clone(); | 33670 | var $search = $('.search').clone(); |
| 33661 | $search.addClass('mobile'); | 33671 | $search.addClass('mobile'); |
| 33672 | $('.search').attr('id', 'search'); | ||
| 33673 | $('.search-button').attr('id', 'search-button'); | ||
| 33662 | $('#navbarNavDropdown').prepend($search); | 33674 | $('#navbarNavDropdown').prepend($search); |
| 33663 | $(document).on("click", ".search-button a, .close", function (e) { | 33675 | $(document).on("click", ".search-button a, .close", function (e) { |
| 33664 | e.preventDefault(); | 33676 | e.preventDefault(); |
| 33677 | $('.search-button').toggleClass('open'); | ||
| 33665 | $('.search').toggleClass('open'); | 33678 | $('.search').toggleClass('open'); |
| 33666 | }); | 33679 | }); |
| 33667 | }); | 33680 | }); | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
| ... | @@ -33,20 +33,33 @@ jQuery(document).ready(function($) { | ... | @@ -33,20 +33,33 @@ jQuery(document).ready(function($) { |
| 33 | _id = jQuery(this).attr('id'); | 33 | _id = jQuery(this).attr('id'); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | |||
| 37 | |||
| 38 | |||
| 36 | if (jQuery(this).hasClass('course-carousel')) { | 39 | if (jQuery(this).hasClass('course-carousel')) { |
| 37 | offset = ((window.innerWidth - $('.entry-content').width()) / 2) - 28; | 40 | offset =0; |
| 41 | PerView = 3; | ||
| 42 | space = 45; | ||
| 43 | SlidesPerGroup = 1; | ||
| 44 | offsetAfter = 0; | ||
| 45 | _id = jQuery(this).attr('id'); | ||
| 46 | } | ||
| 47 | |||
| 48 | if (jQuery(this).hasClass('cert-carousel')) { | ||
| 49 | offset = 0; | ||
| 38 | PerView = 3; | 50 | PerView = 3; |
| 39 | space = 0; | 51 | space = 40; |
| 40 | SlidesPerGroup = 3; | 52 | SlidesPerGroup = 1; |
| 41 | offsetAfter = ((window.innerWidth - $('.entry-content').width()) / 2) - 28; | 53 | offsetAfter = 0; |
| 42 | _id = jQuery(this).attr('id'); | 54 | _id = jQuery(this).attr('id'); |
| 43 | } | 55 | } |
| 56 | |||
| 44 | 57 | ||
| 45 | if ($(window).width() < 600) { | 58 | if ($(window).width() < 600) { |
| 46 | offset = 0; | 59 | offset = 0; |
| 47 | PerView = 1; | 60 | PerView = 1; |
| 48 | SlidesPerGroup = 1; | 61 | SlidesPerGroup = 0; |
| 49 | space = 0; | 62 | space = 40; |
| 50 | offsetAfter = 0; | 63 | offsetAfter = 0; |
| 51 | 64 | ||
| 52 | } | 65 | } | ... | ... |
| ... | @@ -35,8 +35,11 @@ document.addEventListener("DOMContentLoaded", function() { | ... | @@ -35,8 +35,11 @@ document.addEventListener("DOMContentLoaded", function() { |
| 35 | window.addEventListener('scroll', function() { | 35 | window.addEventListener('scroll', function() { |
| 36 | if (window.scrollY > 57) { | 36 | if (window.scrollY > 57) { |
| 37 | document.getElementById('main-nav').classList.add('fixed-top'); | 37 | document.getElementById('main-nav').classList.add('fixed-top'); |
| 38 | |||
| 38 | } else { | 39 | } else { |
| 39 | document.getElementById('main-nav').classList.remove('fixed-top'); | 40 | document.getElementById('main-nav').classList.remove('fixed-top'); |
| 41 | document.getElementById('search').classList.remove('open'); | ||
| 42 | document.getElementById('search-button').classList.remove('open'); | ||
| 40 | } | 43 | } |
| 41 | }); | 44 | }); |
| 42 | }); | 45 | }); |
| ... | @@ -72,10 +75,14 @@ function backToTop() { | ... | @@ -72,10 +75,14 @@ function backToTop() { |
| 72 | jQuery(document).ready(function($) { | 75 | jQuery(document).ready(function($) { |
| 73 | var $search = $('.search').clone(); | 76 | var $search = $('.search').clone(); |
| 74 | $search.addClass('mobile'); | 77 | $search.addClass('mobile'); |
| 78 | $('.search').attr('id','search'); | ||
| 79 | $('.search-button').attr('id','search-button'); | ||
| 75 | $('#navbarNavDropdown').prepend($search); | 80 | $('#navbarNavDropdown').prepend($search); |
| 76 | 81 | ||
| 82 | |||
| 77 | $(document).on("click", ".search-button a, .close", function(e) { | 83 | $(document).on("click", ".search-button a, .close", function(e) { |
| 78 | e.preventDefault(); | 84 | e.preventDefault(); |
| 85 | $('.search-button').toggleClass('open'); | ||
| 79 | $('.search').toggleClass('open'); | 86 | $('.search').toggleClass('open'); |
| 80 | 87 | ||
| 81 | 88 | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -156,4 +156,4 @@ max-width: 100% !important; | ... | @@ -156,4 +156,4 @@ max-width: 100% !important; |
| 156 | 156 | ||
| 157 | .wp-block-image.is-style-rounded img{ | 157 | .wp-block-image.is-style-rounded img{ |
| 158 | border-radius: 25px; | 158 | border-radius: 25px; |
| 159 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 159 | } | ... | ... |
| ... | @@ -113,7 +113,11 @@ | ... | @@ -113,7 +113,11 @@ |
| 113 | 113 | ||
| 114 | .admin-bar .fixed-top { | 114 | .admin-bar .fixed-top { |
| 115 | top: 32px; | 115 | top: 32px; |
| 116 | @media only screen and (max-width: 768px) { | ||
| 117 | top: 0px; | ||
| 118 | } | ||
| 116 | } | 119 | } |
| 120 | |||
| 117 | 121 | ||
| 118 | #main-nav.fixed-top { | 122 | #main-nav.fixed-top { |
| 119 | height: 80px !important; | 123 | height: 80px !important; |
| ... | @@ -160,6 +164,11 @@ | ... | @@ -160,6 +164,11 @@ |
| 160 | right: 0px; | 164 | right: 0px; |
| 161 | width: 200px; | 165 | width: 200px; |
| 162 | height: 200px; | 166 | height: 200px; |
| 167 | @media only screen and (max-width: 900px) { | ||
| 168 | width: 140px; | ||
| 169 | height: 140px; | ||
| 170 | } | ||
| 171 | |||
| 163 | background-image: url("../images/logo-border.png"); | 172 | background-image: url("../images/logo-border.png"); |
| 164 | } | 173 | } |
| 165 | 174 | ||
| ... | @@ -218,20 +227,32 @@ | ... | @@ -218,20 +227,32 @@ |
| 218 | 227 | ||
| 219 | .search-button a { | 228 | .search-button a { |
| 220 | text-indent: 99999px; | 229 | text-indent: 99999px; |
| 230 | position: relative; | ||
| 221 | background-repeat: no-repeat; | 231 | background-repeat: no-repeat; |
| 222 | width: 35px; | 232 | width: 35px; |
| 223 | height: 35px; | 233 | height: 35px; |
| 224 | background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%230484b8'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E"); | 234 | background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%230484b8'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E"); |
| 225 | } | 235 | } |
| 226 | .search{ | ||
| 227 | display: none; | ||
| 228 | |||
| 229 | 236 | ||
| 237 | .search-button.open{ | ||
| 238 | display:none; | ||
| 239 | } | ||
| 240 | |||
| 241 | .search{ | ||
| 242 | top:57px; | ||
| 243 | height: 128px; | ||
| 244 | background-color:rgba(255,255,255,0.9); | ||
| 245 | position: fixed; | ||
| 246 | right:0px; | ||
| 247 | visibility: hidden; | ||
| 248 | transition: 0.4s; | ||
| 249 | width: 100%; | ||
| 250 | right: -100%; | ||
| 230 | 251 | ||
| 231 | .search-form{ | 252 | .search-form{ |
| 232 | width: 60%; | 253 | width: 60%; |
| 233 | margin: auto; | 254 | margin: auto; |
| 234 | margin-top: 40px; | 255 | margin-top: 20px; |
| 235 | @media only screen and (max-width: 768px) { | 256 | @media only screen and (max-width: 768px) { |
| 236 | width: 99%; | 257 | width: 99%; |
| 237 | margin-top: 0px; | 258 | margin-top: 0px; |
| ... | @@ -245,13 +266,15 @@ | ... | @@ -245,13 +266,15 @@ |
| 245 | @media only screen and (max-width: 768px) { | 266 | @media only screen and (max-width: 768px) { |
| 246 | width: 98%; | 267 | width: 98%; |
| 247 | } | 268 | } |
| 269 | |||
| 248 | } | 270 | } |
| 249 | 271 | ||
| 250 | .search-field{ | 272 | .search-field{ |
| 251 | all: unset; | 273 | all: unset; |
| 252 | width: 100%; | 274 | width: 100%; |
| 253 | margin: auto; | 275 | margin: auto; |
| 254 | border-bottom:1px solid #2c2c2c; | 276 | border-bottom:1px solid #2c2c2c; |
| 277 | |||
| 255 | } | 278 | } |
| 256 | 279 | ||
| 257 | .search-submit{ | 280 | .search-submit{ |
| ... | @@ -274,6 +297,7 @@ | ... | @@ -274,6 +297,7 @@ |
| 274 | background-color: #2c2c2c; | 297 | background-color: #2c2c2c; |
| 275 | } | 298 | } |
| 276 | } | 299 | } |
| 300 | |||
| 277 | .close{ | 301 | .close{ |
| 278 | all: unset; | 302 | all: unset; |
| 279 | position: relative; | 303 | position: relative; |
| ... | @@ -293,13 +317,29 @@ | ... | @@ -293,13 +317,29 @@ |
| 293 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33.996' height='33.996' viewBox='0 0 33.996 33.996'%3E%3Cg id='Group_1499' data-name='Group 1499' transform='translate(2.121 2.121)' opacity='0.997'%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M0 0 29.754 29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3Cline id='Line_4' data-name='Line 4' x1='29.754' y2='29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E"); | 317 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33.996' height='33.996' viewBox='0 0 33.996 33.996'%3E%3Cg id='Group_1499' data-name='Group 1499' transform='translate(2.121 2.121)' opacity='0.997'%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M0 0 29.754 29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3Cline id='Line_4' data-name='Line 4' x1='29.754' y2='29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E"); |
| 294 | } | 318 | } |
| 295 | } | 319 | } |
| 320 | .search .search-form label::before{ | ||
| 321 | content: ""; | ||
| 322 | opacity: 0; | ||
| 323 | transition: 0.8s; | ||
| 324 | position: absolute; | ||
| 325 | width: 35px; | ||
| 326 | height: 35px; | ||
| 327 | margin-left: -65px; | ||
| 328 | margin-top: -5px; | ||
| 329 | background-image: url("data:image/svg+xml,%3Csvg id='Component_33_1' data-name='Component 33 %E2%80%93 1' xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'%3E%3Ccircle id='Ellipse_8' data-name='Ellipse 8' cx='17.5' cy='17.5' r='17.5' fill='%230484b8'/%3E%3Cg id='Group_1454' data-name='Group 1454' transform='translate(-1077.417 -15.667)'%3E%3Ccircle id='Ellipse_7' data-name='Ellipse 7' cx='6.701' cy='6.701' r='6.701' transform='translate(1086.75 25)' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cline id='Line_39' data-name='Line 39' x2='4.188' y2='4.188' transform='translate(1098.896 37.146)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E"); | ||
| 330 | |||
| 331 | } | ||
| 332 | |||
| 333 | .search.open .search-form label::before{ | ||
| 334 | opacity: 1; | ||
| 335 | } | ||
| 336 | |||
| 296 | .search.open:not(.mobile-search){ | 337 | .search.open:not(.mobile-search){ |
| 297 | display: block; | 338 | right:0px; |
| 298 | top:57px; | ||
| 299 | width: 100%; | 339 | width: 100%; |
| 300 | height: 128px; | 340 | visibility: visible; |
| 301 | background-color:rgba(255,255,255,0.9); | 341 | transition: 0.4s; |
| 302 | position: fixed; | 342 | |
| 303 | @media only screen and (max-width: 768px) { | 343 | @media only screen and (max-width: 768px) { |
| 304 | display: none; | 344 | display: none; |
| 305 | visibility: hidden; | 345 | visibility: hidden; |
| ... | @@ -307,12 +347,13 @@ | ... | @@ -307,12 +347,13 @@ |
| 307 | z-index: 999; | 347 | z-index: 999; |
| 308 | } | 348 | } |
| 309 | 349 | ||
| 310 | .search.open.mobile{ | 350 | .search.mobile{ |
| 311 | display: none; | 351 | display: none; |
| 312 | visibility: hidden; | 352 | visibility: hidden; |
| 313 | 353 | position: revert; | |
| 354 | height: 40px; | ||
| 355 | top:0px; | ||
| 314 | @media only screen and (max-width: 768px) { | 356 | @media only screen and (max-width: 768px) { |
| 315 | position: absolute; | ||
| 316 | display: block; | 357 | display: block; |
| 317 | visibility: visible; | 358 | visibility: visible; |
| 318 | } | 359 | } |
| ... | @@ -324,6 +365,7 @@ | ... | @@ -324,6 +365,7 @@ |
| 324 | right: 20px; | 365 | right: 20px; |
| 325 | border-color:transparent !important ; | 366 | border-color:transparent !important ; |
| 326 | } | 367 | } |
| 368 | |||
| 327 | .fixed-top{ | 369 | .fixed-top{ |
| 328 | .navbar-toggler{ | 370 | .navbar-toggler{ |
| 329 | top: 20px; | 371 | top: 20px; | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment