04. Adding Devices to Stylesheet Object
private function init_stylesheet() {
$this->stylesheet_obj = new Stylesheet();
$breakpoints = Responsive::get_breakpoints();
$this->stylesheet_obj
->add_device( 'mobile', 0 )
->add_device( 'tablet', $breakpoints['md'] )
->add_device( 'desktop', $breakpoints['lg'] );
}private function init_stylesheet() {
$this->stylesheet_obj = new Stylesheet();
$breakpoints = Responsive::get_breakpoints();
$this->stylesheet_obj
->add_device( 'mobile', 0 )
->add_device( 'tablet', $breakpoints['md'] )
->add_device( 'desktop', $breakpoints['lg'] )
->add_device( 'width480', $breakpoints['width480'] )
->add_device( 'width540', $breakpoints['width540'] )
->add_device( 'width640', $breakpoints['width640'] )
->add_device( 'width700', $breakpoints['width700'] )
->add_device( 'width750', $breakpoints['width750'] )
->add_device( 'width800', $breakpoints['width800'] )
->add_device( 'width840', $breakpoints['width840'] )
->add_device( 'width900', $breakpoints['width900'] )
->add_device( 'width940', $breakpoints['width940'] );
}Files Attachment
Last updated