diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json new file mode 100644 index 0000000..19efa28 --- /dev/null +++ b/.vscode/ftp-kr.json @@ -0,0 +1,17 @@ +{ + "host": "host117523.hostido.net.pl", + "username": "www@wyszynskiego12.pagedev.pl", + "password": "WkTzavmNP8ffYAXatMYb", + "remotePath": "/public_html", + "protocol": "ftp", + "port": 0, + "fileNameEncoding": "utf8", + "autoUpload": true, + "autoDelete": false, + "autoDownload": false, + "ignoreRemoteModification": true, + "ignore": [ + ".git", + "/.vscode" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..47512ae --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,17 @@ +{ + "liveSassCompile.settings.formats": [ + { + "format": "compressed", + "extensionName": ".css", + "savePath": "", + "savePathSegmentKeys": null, + "savePathReplaceSegmentsWith": null + } + ], + "liveSassCompile.settings.generateMap": true, + "liveSassCompile.settings.autoprefix": "defaults", + "liveSassCompile.settings.watchOnLaunch": true, + "liveSassCompile.settings.includeItems": [ + "wp-content/themes/hello-elementor/assets/css/custom.scss", + ] +} 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..32f7a25 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/custom.css @@ -0,0 +1 @@ +.elementor-element.elementor-arrows-position-outside .swiper,.elementor-lightbox.elementor-arrows-position-outside .swiper{width:calc(100% - 160px)}#header-nav ul.elementor-nav-menu li.menu-item a::after{bottom:-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..165e665 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/custom.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,2HAEC,wBAAA,CAQG,wDACC,WAAA","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..08e34bb --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/css/custom.scss @@ -0,0 +1,18 @@ +.elementor-element.elementor-arrows-position-outside .swiper, +.elementor-lightbox.elementor-arrows-position-outside .swiper { + width: calc(100% - 160px); +} + +#header-nav { + ul.elementor-nav-menu { + li.menu-item { + // &.current_page_item { + a { + &::after { + bottom: -5px; + } + } + // } + } + } +} diff --git a/wp-content/themes/hello-elementor/functions.php b/wp-content/themes/hello-elementor/functions.php index ba14b6b..35ce886 100644 --- a/wp-content/themes/hello-elementor/functions.php +++ b/wp-content/themes/hello-elementor/functions.php @@ -271,3 +271,19 @@ if ( ! function_exists( 'hello_elementor_body_open' ) ) { require HELLO_THEME_PATH . '/theme.php'; HelloTheme\Theme::instance(); + +add_action( 'wp_enqueue_scripts', function() { + + $file_path = get_stylesheet_directory() . '/assets/css/custom.css'; + $file_url = get_stylesheet_directory_uri() . '/assets/css/custom.css'; + + if ( file_exists( $file_path ) ) { + wp_enqueue_style( + 'hello-custom-css', + $file_url, + array(), + filemtime( $file_path ) + ); + } + +}, PHP_INT_MAX ); \ No newline at end of file