Initial commit: Atomaste website
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
.astra-sites-custom-cta-wrap {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 8px;
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient( 342deg, #4a00e0 0%, #8e2de2 100% );
|
||||
transition: all 0.4s ease-in-out;
|
||||
text-align: center;
|
||||
margin-top: 0;
|
||||
clear: both;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
margin-left: 160px;
|
||||
z-index: 10;
|
||||
}
|
||||
.astra-sites-custom-cta-wrap.show {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.astra-sites-cta-title {
|
||||
color: #ffffff;
|
||||
font-size: 17px;
|
||||
line-height: 1.4em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.astra-sites-cta-btn {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.astra-sites-cta-btn a {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #181723;
|
||||
background-color: #ffc300;
|
||||
border-radius: 4px;
|
||||
padding: 09px 30px;
|
||||
line-height: 1.5em;
|
||||
transition: none;
|
||||
display: inline-block;
|
||||
margin-left: 4rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
.astra-sites-cta-btn a:hover {
|
||||
background-color: #ffb000;
|
||||
}
|
||||
.astra-previewing-single-pages .astra-sites-custom-cta-wrap {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
@media screen and ( max-width: 768px ) {
|
||||
.astra-sites-custom-cta-wrap {
|
||||
margin-left: 0;
|
||||
}
|
||||
.astra-sites-cta-title {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.astra-sites-cta-btn a {
|
||||
font-size: 14px;
|
||||
padding: 8px 28px;
|
||||
margin-left: unset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#astra-sites-5-start-notice .notice-container {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .notice-content {
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .notice-image img {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container .dashicons {
|
||||
font-size: 1.4em;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container a {
|
||||
padding-right: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#astra-sites-5-start-notice .notice-container {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .notice-content {
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .notice-image img {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container .dashicons {
|
||||
font-size: 1.4em;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
#astra-sites-5-start-notice .astra-review-notice-container a {
|
||||
padding-left: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
( function ( $ ) {
|
||||
/**
|
||||
* Admin
|
||||
*
|
||||
* @since x.x.x
|
||||
*/
|
||||
StarterTemplatesAdmin = {
|
||||
/**
|
||||
* Initializes Events.
|
||||
*
|
||||
* @since x.x.x
|
||||
* @method init
|
||||
*/
|
||||
init: function () {
|
||||
this._bind();
|
||||
},
|
||||
|
||||
/**
|
||||
* Binds events for the BSF Quick Links
|
||||
*
|
||||
* @since x.x.x
|
||||
* @access private
|
||||
* @method _bind
|
||||
*/
|
||||
_bind: function () {
|
||||
$( window ).on(
|
||||
'scroll',
|
||||
StarterTemplatesAdmin._addCustomCTAInfobar
|
||||
);
|
||||
$( document ).on(
|
||||
'astra-sites-change-page-builder',
|
||||
StarterTemplatesAdmin._changeCTALink
|
||||
);
|
||||
},
|
||||
|
||||
_changeCTALink: function ( event ) {
|
||||
if ( AstraSitesAdmin.default_cta_link ) {
|
||||
$( '.astra-sites-cta-link' ).attr(
|
||||
'href',
|
||||
AstraSitesAdmin.default_cta_link
|
||||
);
|
||||
}
|
||||
|
||||
if ( AstraSitesAdmin.quick_corner_cta_link ) {
|
||||
$( '.bsf-quick-link-item-upgrade' ).attr(
|
||||
'href',
|
||||
AstraSitesAdmin.quick_corner_cta_link
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Show Custom CTA on scroll.
|
||||
*/
|
||||
_addCustomCTAInfobar: function () {
|
||||
var scroll = $( window ).scrollTop();
|
||||
|
||||
if ( scroll > 70 ) {
|
||||
$( '.astra-sites-custom-cta-wrap' ).addClass( 'show' );
|
||||
} else {
|
||||
$( '.astra-sites-custom-cta-wrap' ).removeClass( 'show' );
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
$( function () {
|
||||
StarterTemplatesAdmin.init();
|
||||
} );
|
||||
} )( jQuery );
|
||||
Reference in New Issue
Block a user