File "tablet-only.js"
Full path: /home/webcknlt/admissiontell.com/wp-content/plugins/generateblocks/src/blocks/container/css/tablet-only.js
File
size: 770 B (770 B bytes)
MIME-type: text/html
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
/* eslint-disable quotes */
import buildCSS from '../../../utils/build-css';
import {
Component,
} from '@wordpress/element';
import {
applyFilters,
} from '@wordpress/hooks';
export default class TabletOnlyCSS extends Component {
render() {
const attributes = applyFilters( 'generateblocks.editor.cssAttrs', this.props.attributes, this.props );
const {
uniqueId,
removeVerticalGapTablet,
} = attributes;
let cssObj = [];
if ( removeVerticalGapTablet ) {
cssObj[ '.gb-grid-column-' + uniqueId ] = [ {
'margin-bottom': '0px !important',
} ];
}
cssObj = applyFilters( 'generateblocks.editor.tabletOnlyCSS', cssObj, this.props, 'container' );
return (
<style>{ buildCSS( cssObj ) }</style>
);
}
}
/* eslint-enable quotes */