Issue #1134Opened May 25, 2018by kuldeepcis0 reactions

Add custom style in the style-sheet for a new class of existing block.

Question

Code SnippetTEXT
Hello @artf 

_("map") && i.add("map", {
                        label: n.labelMap,
                        category: n.category,
                        attributes: {
                            class: "fa fa-map-o"
                        },
                        content: {
                            type: "map",
                            classes:['map-width'],
                            // unstylable:['width'],
                            style: {
                                // height: "350px",
                                // width: "auto",
                            }
                        }
                    });

add a new class 'map-width' on map element, now I want to add new css for that class.
can you please guide me how to add custom style in the style-sheet for that class. so it'll display in the css section when click on export. and also reflect in pink with x sign like it's added externally.
please guide me 
Thanks in advance. :)

Answers (2)

artfMay 26, 20180 reactions

You can add it in template or inside blocks. BTW check other issues before opening a new one, there are plenty of questions like this

lock[bot]September 17, 20190 reactions

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.