File "css.php"
Full Path: /home/aiclgcwq/photonindustriespvt.com/wp-content/themes/woodmart/inc/integrations/gutenberg/src/blocks/off-sidebar/css.php
File size: 2.44 KB
MIME-type: text/x-php
Charset: utf-8
<?php
use XTS\Gutenberg\Block_CSS;
$block_css = new Block_CSS( $attrs );
$block_css->add_css_rules(
$block_selector,
array(
array(
'attr_name' => 'sidebarWidth',
'template' => '--wd-offcanvas-sidebar-w: {{value}}%;',
),
)
);
$block_css->add_css_rules(
$block_selector . '> .wd-content',
array(
array(
'attr_name' => 'blocksGap',
'template' => '--wd-row-gap: {{value}}px;',
),
array(
'attr_name' => 'alignItems',
'template' => 'align-items: {{value}};',
),
array(
'attr_name' => 'alignItems',
'template' => 'align-content: {{value}};',
),
array(
'attr_name' => 'justifyContent',
'template' => 'justify-content: {{value}};',
),
)
);
$block_css->add_css_rules(
$block_selector,
array(
array(
'attr_name' => 'sidebarWidthTablet',
'template' => '--wd-offcanvas-sidebar-w: {{value}}%;',
),
),
'tablet'
);
$block_css->add_css_rules(
$block_selector . '> .wd-content',
array(
array(
'attr_name' => 'blocksGapTablet',
'template' => '--wd-row-gap: {{value}}px;',
),
array(
'attr_name' => 'alignItemsTablet',
'template' => 'align-items: {{value}};',
),
array(
'attr_name' => 'alignItemsTablet',
'template' => 'align-content: {{value}};',
),
array(
'attr_name' => 'justifyContentTablet',
'template' => 'justify-content: {{value}};',
),
),
'tablet'
);
$block_css->add_css_rules(
$block_selector,
array(
array(
'attr_name' => 'sidebarWidthMobile',
'template' => '--wd-offcanvas-sidebar-w: {{value}}%;',
),
),
'mobile'
);
$block_css->add_css_rules(
$block_selector . '> .wd-content',
array(
array(
'attr_name' => 'blocksGapMobile',
'template' => '--wd-row-gap: {{value}}px;',
),
array(
'attr_name' => 'alignItemsMobile',
'template' => 'align-items: {{value}};',
),
array(
'attr_name' => 'alignItemsMobile',
'template' => 'align-content: {{value}};',
),
array(
'attr_name' => 'justifyContentMobile',
'template' => 'justify-content: {{value}};',
),
),
'mobile'
);
$block_css->merge_with(
wd_get_block_advanced_css(
array(
'selector' => $block_selector,
'selector_hover' => $block_selector_hover,
'selector_padding' => $block_selector . ':not(.wd-side-hidden),' . $block_selector . '.wd-side-hidden .wd-content',
'selector_margin' => $block_selector . ':not(.wd-side-hidden),' . $block_selector . '.wd-side-hidden .wd-content',
),
$attrs
)
);
return $block_css->get_css_for_devices();