[Question] Can I disable media queries?
Question
Is it possible to disable media queries?
E.g. turn this:
`@media (max-width: 331px){
.image-block{
position:absolute;
top:0;
}
.c976{
width:331px;
height:526px;
position:absolute;
}
}`
Into this:
`.image-block{
position:absolute;
top:0;
}
.c976{
width:331px;
height:526px;
position:absolute;
}`Answers (3)
Yes, you can use this option: https://github.com/artf/grapesjs/blob/60c1755c57da02b57988fbe0e1a0321a5395728c/src/editor/config/config.js#L90-L93
I could remove these programmatically, but is it possible to tell grapes not to add media queries to CSS?
We're needing to allow selecting device sizes while editing, but need to remove media queries. As this is a bit of an edge case, I'm assuming I should expect media queries to always be applied if in device preview mode?
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3059
Header goes on a textbox
Hello, so first thanks to have create GrapesJs this very usefull. I have an issue i add an header on my page and that's the code i add for...
Issue #2810
[QUESTION]: Possible to make it for non-devs?
Hello! Is it possible to make a version for non-developers or people who don't know css basics. I am programming a CMS and most users don't...
Issue #2647
Drag placeholder does not calculate the correct width.
HI @artf, I hope you are having a nice day. There's a small issue with the drag placeholder when a block is being dragged into a possible c...
Issue #3258
QUESTION: Prevent/Disable Custom Blocks from being dropped inside other Custom Blocks
Hello, I have a custom component, let's call it a Section Block. I want to prevent the user from dropping Section Blocks inside other Secti...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.