Issue #2451💬 AnsweredOpened December 10, 2019by adityaMurarka0 reactions

Understanding of how style manager implements and handle CSS

快速解答by artf

Issue 1 & Issue 2 Please provide the exact steps on how you export and import the templateIssue 3 Sorry but "in some cases" doesn't help here. You have to explain exactly what you're doing and what you expect

Read full answer below ↓

Question

Issue 1

I made a page using grapesJS and then I exported the page and then imported it back. On importing whatever styles I had applied I am not able to see the styles in the style manager.

Issue 2

Due to issue 1 on applying new styles since I do not see what earlier styles I applied, in some cases, I can see them in the view but on deploying the page I am not seeing the changes done. (p.s. I think probably it's due to CSS conflicts. 2 or more classes are being applied and both of them are trying to change the same attribute, thus choosing one). So on what basis is class is being chosen and is there any way to resolve it.

Issue 3

So by default grapes supports 3 views. Desktop, tablet, and mobile. So on changing views I believe I can different CSS for all different views. So I tried implementing some CSS on different views. In some cases, the changes could be seen as expected on changing views, but in some cases, it is changing the complete CSS irrespective of the view. So is there any logic to it? On what things different stylings can be applied and can be maintained differently for other views and what are attributes can be changed like this?

Any help or clarity will be appreciated.

Thank You in advance.

Answers (2)

artfDecember 11, 2019

Issue 1 & Issue 2

Please provide the exact steps on how you export and import the template

Issue 3

Sorry but "in some cases" doesn't help here. You have to explain exactly what you're doing and what you expect

adityaMurarkaDecember 11, 2019

Issue 1 & Issue 2 Please provide the exact steps on how you export and import the template

By using the default option provided in grapesJS to export the HTML and CSS and importing using the import button on the grapesJS toolbar.

Issue 3 Sorry but "in some cases" doesn't help here. You have to explain exactly what you're doing and what you expect

Is there any documentation about how to apply different CSS for the different views. Does it works completely like how media query works? @artf

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.