Issue #900✓ SolvedOpened February 26, 2018by chthomos3 reactions

Apply styles to all media queries

Quick answerby chthomos3

I figured out how to make it mobile first and it solves my issue for now: Set the editor config.mediaCondition: 'min-width' and on deviceManager: [ {name: 'Mobile portrait', width:'320px',widthMedia:'0px'} {name: 'Tablet', width:'568px',widthMedia:'320px'}, {name: 'Desktop', width:'568px',widthMedia:'768px'}, ]

Read full answer below ↓

Question

Again, congratulations on the great job. We have heavily extended Grapes and we managed to add almost all the functionality we need. We plan to use it for mobile first pages. So we have set up the Device manager to default to "Mobile Portrait". Styling is done through classes, and we have extended all components to create a new class when being added on the canvas. This suits us and so far it works great. Yet, when a style is changed on a class, only the media query for @media (max-width:480px) is changed. Thus, the user may have to repeat the same changes for other media queries (or the main...

Answers (2)

👍 Most helpfulchthomosMarch 1, 2018

I figured out how to make it mobile first and it solves my issue for now: Set the editor config.mediaCondition: 'min-width' and on deviceManager: [ {name: 'Mobile portrait', width:'320px',widthMedia:'0px'} {name: 'Tablet', width:'568px',widthMedia:'320px'}, {name: 'Desktop', width:'568px',widthMedi...

lock[bot]September 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.