Save
This commit is contained in:
1
wp-content/themes/hello-elementor/assets/css/custom.css
Normal file
1
wp-content/themes/hello-elementor/assets/css/custom.css
Normal file
@@ -0,0 +1 @@
|
||||
body .header-logo{min-width:-moz-fit-content !important;min-width:fit-content !important}body .header-nav{width:100%}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}/*# sourceMappingURL=custom.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["custom.scss"],"names":[],"mappings":"AAAA,kBACC,qCAAA,CAAA,gCAAA,CAGD,iBACC,UAAA,CAGD,iBACC,0BAAA,CAAA,qBAAA,CAIA,kBACC,eAAA,CAMD,8BACC,WAAA","file":"custom.css"}
|
||||
27
wp-content/themes/hello-elementor/assets/css/custom.scss
Normal file
27
wp-content/themes/hello-elementor/assets/css/custom.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
body .header-logo {
|
||||
min-width: fit-content !important;
|
||||
}
|
||||
|
||||
body .header-nav {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
body .header-box {
|
||||
max-width: fit-content;
|
||||
}
|
||||
|
||||
body p {
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// home
|
||||
body .hp-box-1 {
|
||||
.hp-box-1-tile {
|
||||
width: 317px;
|
||||
|
||||
&-1 {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 );
|
||||
Reference in New Issue
Block a user