From 0cfb6ba674ff97949221913223af710a9bdb1002 Mon Sep 17 00:00:00 2001 From: Roman Pyrih Date: Thu, 19 Mar 2026 15:56:54 +0100 Subject: [PATCH] Save --- .../hello-elementor/assets/css/custom.css | 2 +- .../hello-elementor/assets/css/custom.css.map | 2 +- .../hello-elementor/assets/css/custom.scss | 17 +++++++++++++++-- .../themes/hello-elementor/assets/js/custom.js | 7 +++++++ wp-content/themes/hello-elementor/functions.php | 17 +++++++++++++++++ 5 files changed, 41 insertions(+), 4 deletions(-) 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 index 43627ae..583b182 100644 --- a/wp-content/themes/hello-elementor/assets/css/custom.css +++ b/wp-content/themes/hello-elementor/assets/css/custom.css @@ -1 +1 @@ -body .header-logo{min-width:-moz-fit-content !important;min-width:fit-content !important}@media(min-width: 1025px){body .header-nav{width:100%}}@media(min-width: 1025px){body .header-box{max-width:-moz-fit-content;max-width:fit-content}}body p:last-child{margin-bottom:0}body .hp-box-1 .hp-box-1-tile{width:317px}body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button{border:2px solid color-mix(in srgb, var(--e-global-color-primary) 40%, transparent)}body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button .e-hotspot__outer-circle,body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button .e-hotspot__inner-circle{background-color:var(--e-global-color-primary)}body .hotspot-mapa .e-hotspot .e-hotspot__button{border:2px solid color-mix(in srgb, var(--hotspot-color) 40%, transparent);border-radius:100%;transition:all .3s ease-in-out}body .hotspot-mapa .e-hotspot .e-hotspot__button .e-hotspot__outer-circle,body .hotspot-mapa .e-hotspot .e-hotspot__button .e-hotspot__inner-circle{transition:all .3s ease-in-out}body .hotspot-mapa .e-hotspot .e-hotspot__tooltip::before{content:"";position:absolute;bottom:1px;left:50%;background:var(--e-global-color-primary);transform:translate(-50%, 100%);width:20px;height:18px;--r: 3px;-webkit-mask:linear-gradient(0deg, rgba(0, 0, 0, 0) calc(3 * var(--r) / 2), #000 0),radial-gradient(var(--r) at 50% calc(100% - 2 * var(--r)), #000 98%, rgba(0, 0, 0, 0) 101%);clip-path:polygon(50% 100%, 100% 0, 0 0)}body .hotspot-mapa .e-hotspot .e-hotspot__tooltip.e-hotspot--tooltip-position{bottom:calc(100% + 18px)}body .hotspot-mapa-citys-list table{border:none;width:auto;margin:0;border-collapse:separate;border-spacing:0 13px}body .hotspot-mapa-citys-list table tr{border:none}body .hotspot-mapa-citys-list table tr td{padding:0;background:rgba(0,0,0,0) !important;border:none;color:color-mix(in srgb, var(--e-global-color-primary) 80%, transparent);font-weight:400;font-size:16px;line-height:1.16}body .hotspot-mapa-citys-list table tr td:not(:last-child){border-right:1px solid var(--e-global-color-primary);padding-right:16px}body .hotspot-mapa-citys-list table tr td:not(:first-child){padding-left:16px}body .hp-slider-cars.elementor-element.elementor-arrows-position-outside .swiper{width:calc(100% - 288px)}body .hp-slider-cars .elementor-swiper-button{opacity:1 !important;top:50% !important;width:40px;height:40px;background:hsla(0,0%,100%,.2);border-radius:100%;display:flex;align-items:center;justify-content:center}body .hp-slider-cars .elementor-swiper-button.elementor-swiper-button-prev{left:80px !important}body .hp-slider-cars .elementor-swiper-button.elementor-swiper-button-next{right:80px !important}.hp-number-box .elementor-number-box-number{position:relative}.hp-number-box .elementor-number-box-number::before{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);width:1px;height:100svh;background:rgba(0,0,0,.1)}@media(min-width: 1025px){.contact-tiles>.elementor-element:not(:nth-child(5n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+6):nth-child(5n+1)::before{content:"";position:absolute;top:0;left:0;width:500%;border-top:1px solid hsla(0,0%,100%,.3)}}@media((min-width: 768px) and (max-width: 1024px)){.contact-tiles>.elementor-element:not(:nth-child(3n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+4):nth-child(3n+1)::before{content:"";position:absolute;top:0;left:0;width:300%;border-top:1px solid hsla(0,0%,100%,.3)}}@media(max-width: 767px){.contact-tiles>.elementor-element:not(:nth-child(2n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+3):nth-child(2n+1)::before{content:"";position:absolute;top:0;left:0;width:200%;border-top:1px solid hsla(0,0%,100%,.3)}}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file +body .header-logo{min-width:-moz-fit-content !important;min-width:fit-content !important}body .header-nav .elementor-nav-menu--dropdown{background:rgba(0,0,0,0)}body .header-nav .elementor-nav-menu--dropdown ul.elementor-nav-menu{width:100%;max-width:315px;margin-left:auto;background:#fff;border-bottom-left-radius:12px;overflow:hidden}body .header-nav .elementor-nav-menu--dropdown ul.elementor-nav-menu li.menu-item{border-bottom:1px solid #ededf3}@media(min-width: 1025px){body .header-box{max-width:-moz-fit-content;max-width:fit-content}}body p:last-child{margin-bottom:0}body .hp-box-1 .hp-box-1-tile{width:317px}body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button{border:2px solid color-mix(in srgb, var(--e-global-color-primary) 40%, transparent)}body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button .e-hotspot__outer-circle,body .hotspot-mapa .e-hotspot.e-hotspot--active .e-hotspot__button .e-hotspot__inner-circle{background-color:var(--e-global-color-primary)}body .hotspot-mapa .e-hotspot .e-hotspot__button{border:2px solid color-mix(in srgb, var(--hotspot-color) 40%, transparent);border-radius:100%;transition:all .3s ease-in-out}body .hotspot-mapa .e-hotspot .e-hotspot__button .e-hotspot__outer-circle,body .hotspot-mapa .e-hotspot .e-hotspot__button .e-hotspot__inner-circle{transition:all .3s ease-in-out}body .hotspot-mapa .e-hotspot .e-hotspot__tooltip::before{content:"";position:absolute;bottom:1px;left:50%;background:var(--e-global-color-primary);transform:translate(-50%, 100%);width:20px;height:18px;--r: 3px;-webkit-mask:linear-gradient(0deg, rgba(0, 0, 0, 0) calc(3 * var(--r) / 2), #000 0),radial-gradient(var(--r) at 50% calc(100% - 2 * var(--r)), #000 98%, rgba(0, 0, 0, 0) 101%);clip-path:polygon(50% 100%, 100% 0, 0 0)}body .hotspot-mapa .e-hotspot .e-hotspot__tooltip.e-hotspot--tooltip-position{bottom:calc(100% + 18px)}body .hotspot-mapa-citys-list table{border:none;width:auto;margin:0;border-collapse:separate;border-spacing:0 13px}body .hotspot-mapa-citys-list table tr{border:none}body .hotspot-mapa-citys-list table tr td{padding:0;background:rgba(0,0,0,0) !important;border:none;color:color-mix(in srgb, var(--e-global-color-primary) 80%, transparent);font-weight:400;font-size:16px;line-height:1.16}body .hotspot-mapa-citys-list table tr td:not(:last-child){border-right:1px solid var(--e-global-color-primary);padding-right:16px}body .hotspot-mapa-citys-list table tr td:not(:first-child){padding-left:16px}body .hp-slider-cars.elementor-element.elementor-arrows-position-outside .swiper{width:calc(100% - 288px)}body .hp-slider-cars .elementor-swiper-button{opacity:1 !important;top:50% !important;width:40px;height:40px;background:hsla(0,0%,100%,.2);border-radius:100%;display:flex;align-items:center;justify-content:center}body .hp-slider-cars .elementor-swiper-button.elementor-swiper-button-prev{left:80px !important}body .hp-slider-cars .elementor-swiper-button.elementor-swiper-button-next{right:80px !important}.hp-number-box .elementor-number-box-number{position:relative}.hp-number-box .elementor-number-box-number::before{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);width:1px;height:100svh;background:rgba(0,0,0,.1)}@media(min-width: 1025px){.contact-tiles>.elementor-element:not(:nth-child(5n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+6):nth-child(5n+1)::before{content:"";position:absolute;top:0;left:0;width:500%;border-top:1px solid hsla(0,0%,100%,.3)}}@media((min-width: 768px) and (max-width: 1024px)){.contact-tiles>.elementor-element:not(:nth-child(3n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+4):nth-child(3n+1)::before{content:"";position:absolute;top:0;left:0;width:300%;border-top:1px solid hsla(0,0%,100%,.3)}}@media(max-width: 767px){.contact-tiles>.elementor-element:not(:nth-child(2n)){border-right:1px solid hsla(0,0%,100%,.3)}.contact-tiles>.elementor-element:nth-child(n+3):nth-child(2n+1)::before{content:"";position:absolute;top:0;left:0;width:200%;border-top:1px solid hsla(0,0%,100%,.3)}}/*# 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 index 1c45777..18f6144 100644 --- a/wp-content/themes/hello-elementor/assets/css/custom.css.map +++ b/wp-content/themes/hello-elementor/assets/css/custom.css.map @@ -1 +1 @@ -{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,kBACC,qCAAA,CAAA,gCAAA,CAIA,0BADD,iBAEE,UAAA,CAAA,CAKD,0BADD,iBAEE,0BAAA,CAAA,qBAAA,CAAA,CAKD,kBACC,eAAA,CAMD,8BACC,WAAA,CAOC,mEACC,mFAAA,CAGA,wLAEC,8CAAA,CAIH,iDACC,0EAAA,CAEA,kBAAA,CACA,8BAAA,CAEA,oJAEC,8BAAA,CAKD,0DACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,QAAA,CACA,wCAAA,CACA,+BAAA,CAEA,UAAA,CACA,WAAA,CAEA,QAAA,CACA,+KACC,CAMD,wCAAA,CAED,8EACC,wBAAA,CAOH,oCACC,WAAA,CACA,UAAA,CACA,QAAA,CACA,wBAAA,CACA,qBAAA,CAEA,uCACC,WAAA,CAEA,0CACC,SAAA,CACA,mCAAA,CACA,WAAA,CAEA,wEAAA,CAKA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,2DACC,oDAAA,CACA,kBAAA,CAED,4DACC,iBAAA,CAQJ,iFACC,wBAAA,CAED,8CACC,oBAAA,CACA,kBAAA,CAEA,UAAA,CACA,WAAA,CACA,6BAAA,CACA,kBAAA,CAEA,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,2EACC,oBAAA,CAED,2EACC,qBAAA,CAMF,4CACC,iBAAA,CAEA,oDACC,UAAA,CACA,iBAAA,CACA,QAAA,CACA,QAAA,CACA,0BAAA,CAEA,SAAA,CACA,aAAA,CACA,yBAAA,CAOD,0BACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA,CAIF,mDACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA,CAGF,yBACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA","file":"custom.css"} \ No newline at end of file +{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,kBACC,qCAAA,CAAA,gCAAA,CAIA,+CACC,wBAAA,CAEA,qEACC,UAAA,CACA,eAAA,CACA,gBAAA,CACA,eAAA,CACA,8BAAA,CACA,eAAA,CAEA,kFACC,+BAAA,CAOH,0BADD,iBAEE,0BAAA,CAAA,qBAAA,CAAA,CAKD,kBACC,eAAA,CAMD,8BACC,WAAA,CAOC,mEACC,mFAAA,CAGA,wLAEC,8CAAA,CAIH,iDACC,0EAAA,CAEA,kBAAA,CACA,8BAAA,CAEA,oJAEC,8BAAA,CAKD,0DACC,UAAA,CACA,iBAAA,CACA,UAAA,CACA,QAAA,CACA,wCAAA,CACA,+BAAA,CAEA,UAAA,CACA,WAAA,CAEA,QAAA,CACA,+KACC,CAMD,wCAAA,CAED,8EACC,wBAAA,CAOH,oCACC,WAAA,CACA,UAAA,CACA,QAAA,CACA,wBAAA,CACA,qBAAA,CAEA,uCACC,WAAA,CAEA,0CACC,SAAA,CACA,mCAAA,CACA,WAAA,CAEA,wEAAA,CAKA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,2DACC,oDAAA,CACA,kBAAA,CAED,4DACC,iBAAA,CAQJ,iFACC,wBAAA,CAED,8CACC,oBAAA,CACA,kBAAA,CAEA,UAAA,CACA,WAAA,CACA,6BAAA,CACA,kBAAA,CAEA,YAAA,CACA,kBAAA,CACA,sBAAA,CAEA,2EACC,oBAAA,CAED,2EACC,qBAAA,CAMF,4CACC,iBAAA,CAEA,oDACC,UAAA,CACA,iBAAA,CACA,QAAA,CACA,QAAA,CACA,0BAAA,CAEA,SAAA,CACA,aAAA,CACA,yBAAA,CAOD,0BACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA,CAIF,mDACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA,CAGF,yBACC,sDACC,yCAAA,CAGD,yEACC,UAAA,CACA,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,uCAAA,CAAA","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 index 00f46b6..1dc333c 100644 --- a/wp-content/themes/hello-elementor/assets/css/custom.scss +++ b/wp-content/themes/hello-elementor/assets/css/custom.scss @@ -3,8 +3,21 @@ body .header-logo { } body .header-nav { - @media (min-width: 1025px) { - width: 100%; + .elementor-nav-menu--dropdown { + background: transparent; + + ul.elementor-nav-menu { + width: 100%; + max-width: 315px; + margin-left: auto; + background: #fff; + border-bottom-left-radius: 12px; + overflow: hidden; + + li.menu-item { + border-bottom: 1px solid #ededf3; + } + } } } 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..632477a --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/custom.js @@ -0,0 +1,7 @@ +jQuery(function($){ + let mapBox = $('.hotspot-mapa') + + mapBox.css({ + 'min-height': $('img.attachment-full', mapBox).height() + }) +}) \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/functions.php b/wp-content/themes/hello-elementor/functions.php index 35ce886..4f51063 100644 --- a/wp-content/themes/hello-elementor/functions.php +++ b/wp-content/themes/hello-elementor/functions.php @@ -286,4 +286,21 @@ add_action( 'wp_enqueue_scripts', function() { ); } +}, PHP_INT_MAX ); + +add_action( 'wp_enqueue_scripts', function() { + + $file_path = get_stylesheet_directory() . '/assets/js/custom.js'; + $file_url = get_stylesheet_directory_uri() . '/assets/js/custom.js'; + + if ( file_exists( $file_path ) ) { + wp_enqueue_script( + 'hello-custom-js', + $file_url, + array('jquery'), + filemtime( $file_path ), + true + ); + } + }, PHP_INT_MAX ); \ No newline at end of file