desktop.js
5 years ago
main.js
3 years ago
mobile.js
3 years ago
tablet-only.js
5 years ago
tablet.js
3 years ago
desktop.js
22 lines
| 1 | import buildCSS from '../../../utils/build-css'; |
| 2 | |
| 3 | import { |
| 4 | Component, |
| 5 | } from '@wordpress/element'; |
| 6 | |
| 7 | import { |
| 8 | applyFilters, |
| 9 | } from '@wordpress/hooks'; |
| 10 | |
| 11 | export default class DesktopCSS extends Component { |
| 12 | render() { |
| 13 | let cssObj = []; |
| 14 | |
| 15 | cssObj = applyFilters( 'generateblocks.editor.desktopCSS', cssObj, this.props, 'grid' ); |
| 16 | |
| 17 | return ( |
| 18 | <style>{ buildCSS( cssObj ) }</style> |
| 19 | ); |
| 20 | } |
| 21 | } |
| 22 |