Save
This commit is contained in:
24
wp-content/themes/hello-elementor/assets/css/custom.css
Normal file
24
wp-content/themes/hello-elementor/assets/css/custom.css
Normal file
@@ -0,0 +1,24 @@
|
||||
header {
|
||||
position: fixed;
|
||||
inset: 0 0 auto;
|
||||
z-index: 100;
|
||||
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-bottom: 1px solid rgb(228, 222, 228);
|
||||
background-color: rgba(253, 252, 250, 0.75) !important;
|
||||
backdrop-filter: blur(24px);
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.btn-1 {
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
}
|
||||
.btn-1 .elementor-button-icon {
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
.btn-1:hover .elementor-button-icon {
|
||||
margin-left: 5px;
|
||||
}/*# sourceMappingURL=custom.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["custom.scss","custom.css"],"names":[],"mappings":"AAAA;EACC,eAAA;EACA,eAAA;EACA,YAAA;EACA,iDAAA;EACA,2CAAA;EAEA,sDAAA;EACA,2BAAA;ACAD;;ADIC;EACC,gBAAA;ACDF;;ADKA;EACC,uBAAA;EAAA,kBAAA;ACFD;ADIC;EACC,iCAAA;ACFF;ADME;EACC,gBAAA;ACJH","file":"custom.css"}
|
||||
30
wp-content/themes/hello-elementor/assets/css/custom.scss
Normal file
30
wp-content/themes/hello-elementor/assets/css/custom.scss
Normal file
@@ -0,0 +1,30 @@
|
||||
header {
|
||||
position: fixed;
|
||||
inset: 0 0 auto;
|
||||
z-index: 100;
|
||||
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-bottom: 1px solid rgb(228, 222, 228);
|
||||
|
||||
background-color: rgb(253, 252, 250, 0.75) !important;
|
||||
backdrop-filter: blur(24px);
|
||||
}
|
||||
|
||||
p {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-1 {
|
||||
width: fit-content;
|
||||
|
||||
.elementor-button-icon {
|
||||
transition: all 250ms ease-in-out;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.elementor-button-icon {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -271,3 +271,25 @@ if ( ! function_exists( 'hello_elementor_body_open' ) ) {
|
||||
require HELLO_THEME_PATH . '/theme.php';
|
||||
|
||||
HelloTheme\Theme::instance();
|
||||
|
||||
|
||||
function hello_custom_styles() {
|
||||
wp_enqueue_style(
|
||||
'hello-custom-style',
|
||||
get_stylesheet_directory_uri() . '/assets/css/custom.css',
|
||||
array(),
|
||||
filemtime(get_stylesheet_directory() . '/assets/css/custom.css')
|
||||
);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'hello_custom_styles', 9999);
|
||||
|
||||
function hello_custom_scripts() {
|
||||
wp_enqueue_script(
|
||||
'hello-custom-script',
|
||||
get_stylesheet_directory_uri() . '/assets/js/custom.js',
|
||||
array('jquery'),
|
||||
filemtime(get_stylesheet_directory() . '/assets/js/custom.js'),
|
||||
true
|
||||
);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'hello_custom_scripts', 9999);
|
||||
Reference in New Issue
Block a user