FEAT/ISSUE: CSS standards
Question
I'm going to say this is both a feature request as I get into some parts of it, but also a bit of an issue.
I would say it looks bad to have a project newer than 2015 that's using px for nearly everything. People are using screensizes that are only 768 pixels on the narrowest plane, whether mobile or desktop, to 2160p and beyond. "px" measurements are bad for this. A tool like this is made for non-technical people who aren't going to understand that something looking fine in px measurements on their screen will not look right on all screens. The most similar thing to GrapeJS is carrd.co right? There they actually just use arbitrary "size" measurements that they translate internally so the end user can't do dumb things.
My suggestion: Remove px in controls interface, and CSS for the styling of GrapeJS itself. Replace with vmax, rem and/or % where appropriate as the new defaults.
Yes there are drop downs for % and/or em and rem generally, but px is usually the default when it really shouldn't even be an option except for possibly being a configuration option that's disabled by default.
I'd also label this as a bug:
Default CSS for the editor panels is using z-index. This is something I also don't expect of something modern, as stacking order is a cleaner and more issue and edge-case free way of ordering what's on top. I found this out as I was working on custom controls and I'm having to overwrite CSS that shouldn't even exist.
The editor seems to display fine if you remove all the z-index css and place
<div class="gjs-pn-panel gjs-pn-views gjs-one-bg gjs-two-color"> as the bottom most element of those siblings
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3525
FEAT: In Style Manager, Allow Requiring the Default Setting
What are you trying to add to GrapesJS? The CSS property float only makes sense for position: static; elements, which happens to be the def...
Issue #2972
FEAT: Disable scripts on canvas
Hello, first of all thanks for a great tool. On my project i hit the problem where I need to disable scripts inside the editor. I found 2 s...
Issue #2337
[BUG / QUESTION] Deleting default styles does not work
Hello, i'm trying to delete some of the default styles of the blocks. I wrote everything I changed in a plugin. I used this function to upd...
Issue #2154
Custom Component Integration
Hello! I want to integrate a custom component with GrapesJS, using Angular CLI 7, but it doesn’t render. My component is built on top of an...
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.