grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[QUESTIONS] How to set different styles on one element for each device. (responsive)

Open abozhinov opened this issue 7 years ago • 5 comments

@arthuralmeidap can you tell guide me how to set style different style for each device. I use the mobile-first strategy.

For example to set a different background on mobile and desktop devices.

mediaCondition: 'min-width',

var deviceManagerConfig = { devices: [ { name: 'Desktop', width: '', widthMedia:'768px' }, { name: 'Tablet', width: '768px', widthMedia:'320px' }, { name: 'Mobile', width: '320px', widthMedia:'0px' } ] };

abozhinov avatar Feb 21 '19 20:02 abozhinov

@abozhinov I'm facing the same issue. If you solved the issue? Can you share it here. Thanks

umerrinayat avatar Dec 06 '19 08:12 umerrinayat

@abozhinov @umerrinayat I am facing the same issue. If you have solved it, can you please share it here?

theSC0RP avatar Oct 21 '20 08:10 theSC0RP

No I didn’t. Still search for solution.

abozhinov avatar Oct 21 '20 20:10 abozhinov

Alright. Thank you.

theSC0RP avatar Oct 22 '20 05:10 theSC0RP

It's May 2023 - @abozhinov Did you find a solution for that?

padcom avatar May 29 '23 12:05 padcom