From 16d3199ffe0b5da4192909d8066e472affd40285 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Fri, 22 May 2026 15:41:47 +0200 Subject: [PATCH] Save --- .../hello-elementor/assets/css/custom.css | 24 +++++++++++++++ .../hello-elementor/assets/css/custom.css.map | 1 + .../hello-elementor/assets/css/custom.scss | 30 +++++++++++++++++++ .../hello-elementor/assets/js/custom.js | 0 .../themes/hello-elementor/functions.php | 22 ++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 wp-content/themes/hello-elementor/assets/css/custom.css create mode 100644 wp-content/themes/hello-elementor/assets/css/custom.css.map create mode 100644 wp-content/themes/hello-elementor/assets/css/custom.scss create mode 100644 wp-content/themes/hello-elementor/assets/js/custom.js diff --git a/wp-content/themes/hello-elementor/assets/css/custom.css b/wp-content/themes/hello-elementor/assets/css/custom.css new file mode 100644 index 0000000..57eef8a --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/custom.css @@ -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 */ \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/css/custom.css.map b/wp-content/themes/hello-elementor/assets/css/custom.css.map new file mode 100644 index 0000000..8e3972b --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/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"} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/css/custom.scss b/wp-content/themes/hello-elementor/assets/css/custom.scss new file mode 100644 index 0000000..e5c796a --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/custom.scss @@ -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; + } + } +} diff --git a/wp-content/themes/hello-elementor/assets/js/custom.js b/wp-content/themes/hello-elementor/assets/js/custom.js new file mode 100644 index 0000000..e69de29 diff --git a/wp-content/themes/hello-elementor/functions.php b/wp-content/themes/hello-elementor/functions.php index 7c418ed..ea104c8 100644 --- a/wp-content/themes/hello-elementor/functions.php +++ b/wp-content/themes/hello-elementor/functions.php @@ -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); \ No newline at end of file