/*--------------------------------------------------------------------*/ /*-------------Week 26 - Ken Burns Sticky Menu Hero Section-----------*/ /*--------------------------------------------------------------------*/ /*Hide the default header*/ #main-header { display: none; } /*Fullwidth Slider*/ /*Add the ken burns effect*/ .ds-fullwidth-slider .et_pb_slide:nth-child(odd) .et_parallax_bg, .ds-fullwidth-slider .et_parallax_bg:nth-child(odd) { -webkit-animation: zoomin-right 12s forwards; animation: zoomin-right 12s forwards; left: 0; right: auto; } .ds-fullwidth-slider .et_pb_slide:nth-child(even) .et_parallax_bg, .ds-fullwidth-slider .et_parallax_bg:nth-child(even) { -webkit-animation: zoomin-left 12s forwards; animation: zoomin-left 12s forwards; left: auto; right: 0; } @media only screen and (max-width: 479px) { .ds-fullwidth-slider .et_pb_slide .et_parallax_bg, .ds-fullwidth-slider .et_parallax_bg { min-width: calc(100vw + 150px) !important; } } .ds-fullwidth-slider .et_pb_parallax_css, .ds-fullwidth-slider .et_pb_slides .et_parallax_bg.et_pb_parallax_css { background-attachment: inherit; } @-webkit-keyframes zoomin-right { 0% { -webkit-transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px); -webkit-animation-timing-function: linear; } 100% { -webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(-150px, -20px, 0px); } } @keyframes zoomin-right { 0% { transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px); animation-timing-function: linear; } 100% { transform: scale3d(1.5, 1.5, 1.5) translate3d(-150px, -20px, 0px); } } @-webkit-keyframes zoomin-left { 0% { -webkit-transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px); -webkit-animation-timing-function: linear; } 100% { -webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(150px, 20px, 0px); } } @keyframes zoomin-left { 0% { transform: scale3d(1.1, 1.1, 1.1) translate3d(0px, 0px, 0px); animation-timing-function: linear; } 100% { transform: scale3d(1.5, 1.5, 1.5) translate3d(150px, 20px, 0px); } } /*Style the slider controllers*/ .ds-fullwidth-slider .et-pb-controllers { opacity: 0; bottom: 100px; -webkit-animation: fadeBottom .7s ease-in-out .9s 1 forwards; animation: fadeBottom .7s ease-in-out .9s 1 forwards; } @media only screen and (max-width: 479px) { .ds-fullwidth-slider .et-pb-controllers { bottom: 8vh !important; } } .ds-fullwidth-slider .et-pb-controllers a { width: 80px; height: 5px; border: 1px solid #FFFC00; background: transparent; border-radius: 3px; } .ds-fullwidth-slider .et-pb-controllers .et-pb-active-control { background-color: #FFFC00 !important; } /*Set position and size for the logo section*/ .ds-logo-section { position: absolute; height: 80vh; top: -100px; left: 0; right: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; z-index: 2; } @media only screen and (max-device-width: 479px) and (orientation: landscape) { .ds-logo-section { top: 10vh; } } /*Style the header blurbs*/ .ds-blurb-menu-section { bottom: 15vh; width: 70%; } @media only screen and (max-width: 980px) { .ds-blurb-menu-section { bottom: 10vh; width: 50%; } } @media only screen and (max-width: 479px) { .ds-blurb-menu-section { bottom: 0; width: 70%; } } @media only screen and (max-device-width: 479px) and (orientation: landscape) { .ds-blurb-menu-section { display: none !important; } } .ds-blurb-menu { cursor: pointer; -webkit-transition: all 0.3s; transition: all 0.3s; } .ds-blurb-menu:hover { background: #77b5d4 !important; -webkit-transform: scale(1.1); transform: scale(1.1); } /*Fullwidth Menu*/ /*Make the fullwidth menu stick to top on scroll*/ .ds-fw-menu.et_pb_fullwidth_section { position: -webkit-sticky; position: sticky; top: -1px; margin-top: -52px; z-index: 100000; -webkit-box-shadow: 0px 2px 15px 0px rgba(171, 171, 171, 1); box-shadow: 0px 2px 15px 0px rgba(171, 171, 171, 1); } /*Set the menu item padding*/ .ds-fw-menu .fullwidth-menu li > a { padding-bottom: 18px; font-weight: 500; } .ds-fw-menu .fullwidth-menu-nav > ul { padding: 18px 0 0 !important; } .ds-fw-menu .fullwidth-menu .menu-item-has-children { padding-right: 0; } /*Side the arrow when item has sub items*/ .ds-fw-menu .fullwidth-menu .menu-item-has-children > a:after { display: none; } .ds-fw-menu .nav li li { border-bottom: 1px solid #fff; -webkit-transition: all 0.3s; transition: all 0.3s; } /*Hide the bottom border on the last item*/ .ds-fw-menu .nav li li:last-of-type { border-bottom: none; } .ds-fw-menu .nav li li:hover { background: #FF6D02; } .ds-fw-menu .nav ul li a:hover, .ds-fw-menu .et_mobile_menu li a:hover { opacity: 1; } .ds-fw-menu .nav li ul a { padding-top: 18px; } /*Set the submenu position*/ .ds-fw-menu .nav li ul { padding: 0; border-top: 1px solid #fff; } .ds-fw-menu .nav ul li a:hover { background: transparent; } .ds-fw-menu .nav li ul:after { bottom: 100%; left: 50%; border: solid transparent; content: ''; height: 0; width: 0; position: absolute; pointer-events: none; border-color: rgba(136, 183, 213, 0); border-bottom-color: #77b5d4; border-width: 15px; margin-left: -15px; } /*Align toggle icon on mobile*/ .mobile_menu_bar { text-align: right; } /*--------------------------------------------------------------------*/ /*-----------Week 26 - End Ken Burns Sticky Menu Hero Section---------*/ /*--------------------------------------------------------------------*/
jQuery(document).ready(function($) { $(".ds-blurb-menu").click(function() { window.location = $(this).find("a").attr("href"); return false; }); });

STOCK ARCHIVE

/*---------------------------------------*/ /*------Week 123 - Blog Post Layout------*/ /*---------------------------------------*/ /*Set posts to flex*/ .ds-blog .et_pb_post { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; padding-bottom: 0; } /*Featured image order*/ .ds-blog .et_pb_image_container { margin-bottom: 0; -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; } .ds-blog .entry-featured-image-url { margin-bottom: 0; } /*Set post content to flex*/ .ds-blog-content { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; padding-bottom: 20px; padding-top: 60px; } /*Post title order*/ .ds-blog .entry-title { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; } /*Post content order*/ .ds-blog .post-content { -webkit-box-ordinal-group: 3; -ms-flex-order: 2; order: 2; } /*Post meta order*/ .ds-blog .post-meta { -webkit-box-ordinal-group: 4; -ms-flex-order: 3; order: 3; } .ds-blog .post-content p { margin-bottom: 20px; } /*Read more style & position*/ .ds-blog a.more-link { position: absolute; left: -20px; right: 50%; top: 0; padding: 10px; background: #e8ad2d; border: 1px solid transparent; -webkit-transition: all .3s ease; transition: all .3s ease; } .ds-blog a.more-link:hover { background: #3e4d60; border-right-color: #ffffff; } /*Category style & position*/ .ds-blog .et_pb_post .ds-blog-content [rel~="category"] { position: absolute; right: -20px; left: 50%; top: 0; padding: 10px; background: #3e4d60; border: 1px solid transparent; font-weight: 600; text-transform: uppercase; color: #ffffff !important; -webkit-transition: all .3s ease; transition: all .3s ease; } .ds-blog .et_pb_post [rel~="category"]:hover { background: #e8ad2d; border-left-color: #ffffff; } /*Meta data*/ .ds-blog .author, .ds-blog .published, .ds-blog .ds-comments { padding: 5px; } /*Stop comments breaking*/ .ds-blog .ds-comments { display: inline-block; } /*Meta icons*/ .ds-blog .author:before, .ds-blog .published:before, .ds-blog .ds-comments:before { font-family: 'ETModules'; } .ds-blog .author:before { content: '\e08a'; } .ds-blog .published:before { content: '\e023'; margin-right: 5px; } .ds-blog .ds-comments:before { content: '\e065'; } /*---------------------------------------*/ /*----End Week 123 - Blog Post Layout----*/ /*---------------------------------------*/
//Week 123 - Blog Post Layout jQuery(document).ready(function ($) { jQuery(document).on('ready ajaxComplete', function () { //Wrap the post content in a container $(".ds-blog .et_pb_post").each(function () { $(this).find('.entry-title, .post-meta, .post-content, a.more-link').wrapAll('
'); }); //Remove pipes, commas and 'by' from the meta $(".ds-blog .post-meta").html(function () { return $(this).html().replace(/\|/g, '').replace('by', '').replace(/,/g, ''); }); //Wrap comments in a container $(".ds-blog .post-meta").contents().filter(function () { return this.nodeType === 3; }).wrap('').end(); $('.ds-blog .post-meta span.ds-comments:not(:last-child)').remove(); }); });

[wpdatatable id=15]