grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

apply css property for mobile/tablet view

Open kuldeepcis opened this issue 8 years ago • 2 comments

Hello @artf ,

https://jsfiddle.net/66cnd2t4/3/ This is the fiddle for the map issue when you drag a map and add it then in dimensions you will see width auto and its label is in pink which shows it user defined means i have passed it in components style block as such , _("map") && i.add("map", { label: n.labelMap, category: n.category, attributes: { class: "fa fa-map-o" }, content: { type: "map", style: { height: "350px", width: "auto" } } }) but when you change it to mobile view the label is not in pink ,means the user defined property is not being applied.We wants it to be applied for mobile and tablet view as well

kuldeepcis avatar May 10 '18 10:05 kuldeepcis

First of all, next time use this https://jsfiddle.net/szLp8h4n as a starting point for your fiddles, without all the stuff not regarding the issue. To make properties defined on other devices you have to set the CSS on that media query:

@media (max-width: 992px){
  .your-map-class{
    ...
  }
}
@media (max-width: 480px){
  .your-map-class{
    ...
  }
}

artf avatar May 13 '18 10:05 artf

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.

lock[bot] avatar Sep 17 '19 16:09 lock[bot]