This commit is contained in:
2026-03-24 10:32:26 +01:00
parent ad9465151f
commit fb3264d38e
16 changed files with 163 additions and 0 deletions

18
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,18 @@
{
"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",
"wp-content/plugins/elementor-addon/assets/css/main.scss"
]
}

View File

@@ -0,0 +1,15 @@
.site-editor__preview-iframe {
height: 50vh;
position: relative;
}
.site-editor__preview-iframe__iframe {
top: 0;
left: 0;
position: absolute;
border: none;
transform-origin: 0 0;
height: 100%;
}
.site-editor__preview-iframe--header, .site-editor__preview-iframe--footer {
height: 15vh;
}/*# sourceMappingURL=preview-iframe.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["preview-iframe.scss","preview-iframe.css"],"names":[],"mappings":"AAAA;EACC,YAAA;EACA,kBAAA;ACCD;ADCC;EACC,MAAA;EACA,OAAA;EACA,kBAAA;EACA,YAAA;EACA,qBAAA;EACA,YAAA;ACCF;ADEC;EACC,YAAA;ACAF","file":"preview-iframe.css"}

View File

@@ -0,0 +1,7 @@
.eps-add-new__overlay {
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
--card-image-overlay-background-color: transparent;
}/*# sourceMappingURL=add-new.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["add-new.scss","add-new.css"],"names":[],"mappings":"AAAA;EACC,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,UAAA;EACA,kDAAA;ACCD","file":"add-new.css"}

View File

@@ -0,0 +1,9 @@
.e-site-editor__templates .page-header {
margin-block-end: spacing(10);
}
.e-site-editor__templates .page-header > a {
align-self: baseline;
}
.e-site-editor__templates .eps-separator {
margin-block-end: spacing(44);
}/*# sourceMappingURL=template-type.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["template-type.scss","template-type.css"],"names":[],"mappings":"AACC;EACC,6BAAA;ACAF;ADEE;EACC,oBAAA;ACAH;ADIC;EACC,6BAAA;ACFF","file":"template-type.css"}

View File

@@ -0,0 +1,22 @@
.e-site-editor__content_container {
flex-direction: column;
min-height: 100%;
flex-wrap: nowrap;
}
.e-site-editor__content_container_main {
flex: 1;
padding: spacing(30);
}
.e-site-editor__content_container_secondary {
margin: 0 auto;
align-items: center;
border-block-start: 1px solid var(--hr-color);
padding-block: spacing(16);
padding-inline: spacing(30);
}
.eps-app__content:has(.e-site-editor__content_container_main) {
padding: 0;
}/*# sourceMappingURL=site-editor.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["site-editor.scss","site-editor.css"],"names":[],"mappings":"AAAA;EACC,sBAAA;EACA,gBAAA;EACA,iBAAA;ACCD;;ADEA;EACC,OAAA;EACA,oBAAA;ACCD;;ADEA;EACC,cAAA;EACA,mBAAA;EACA,6CAAA;EACA,0BAAA;EACA,2BAAA;ACCD;;ADEA;EACC,UAAA;ACCD","file":"site-editor.css"}

View File

@@ -0,0 +1,44 @@
/**
* Here should be only styles that related to the Editor v1, and should be overridden when using the Editor v2.
*/
body {
--editor-v2-top-bar-height: 48px;
}
#elementor-editor-wrapper {
height: calc(100vh - var(--editor-v2-top-bar-height));
}
body.elementor-navigator-docked #elementor-navigator {
height: calc(100% - var(--editor-v2-top-bar-height));
top: var(--editor-v2-top-bar-height);
}
.elementor-panel #elementor-panel-header-menu-button,
.elementor-panel #elementor-panel-header-add-button,
.elementor-panel #elementor-panel-footer {
display: none;
}
.elementor-panel #elementor-panel-header {
font-weight: 700;
background-color: var(--e-a-bg-default);
color: var(--e-a-color-txt-accent);
border-block-end: var(--e-a-border);
height: 48px;
}
.elementor-control-type-wysiwyg .mce-fullscreen {
inset: var(--editor-v2-top-bar-height) 0 0 0;
}
.elementor-control-type-wysiwyg .mce-fullscreen > .mce-container-body {
display: flex;
flex-direction: column;
height: 100%;
}
.elementor-control-type-wysiwyg .mce-fullscreen > .mce-container-body > .mce-edit-area {
flex-grow: 1;
}
.elementor-control-type-wysiwyg .mce-fullscreen > .mce-container-body > .mce-edit-area > iframe {
height: 100% !important;
}/*# sourceMappingURL=editor-v2-app-bar-overrides.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["editor-v2-app-bar-overrides.scss","editor-v2-app-bar-overrides.css"],"names":[],"mappings":"AAAA;;EAAA;AAIA;EACC,gCAAA;ACAD;;ADGA;EACC,qDAAA;ACAD;;ADGA;EACC,oDAAA;EACA,oCAAA;ACAD;;ADGA;;;EAGC,aAAA;ACAD;;ADGA;EACC,gBAAA;EACA,uCAAA;EACA,kCAAA;EACA,mCAAA;EACA,YAAA;ACAD;;ADIA;EACC,4CAAA;ACDD;ADGC;EACC,aAAA;EACA,sBAAA;EACA,YAAA;ACDF;ADGE;EACC,YAAA;ACDH;ADGG;EACC,uBAAA;ACDJ","file":"editor-v2-app-bar-overrides.css"}

View File

@@ -0,0 +1 @@
p:last-child{margin-bottom:0}/*# sourceMappingURL=custom.css.map */

View File

@@ -0,0 +1 @@
{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AACC,aACC,eAAA","file":"custom.css"}

View File

@@ -0,0 +1,5 @@
p {
&:last-child {
margin-bottom: 0;
}
}

View File

@@ -0,0 +1,3 @@
jQuery(function($) {
})

View File

@@ -271,3 +271,36 @@ if ( ! function_exists( 'hello_elementor_body_open' ) ) {
require HELLO_THEME_PATH . '/theme.php'; require HELLO_THEME_PATH . '/theme.php';
HelloTheme\Theme::instance(); 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 );
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 );