Commit e457dc47 authored by jan.koester's avatar jan.koester
Browse files

fixed custom css

parent f1628b9c
Loading
Loading
Loading
Loading
+1 −2
Changes for src/webedit/article/article.cpp: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -532,8 +532,7 @@ extern "C" {

                if (!customCss.empty()) {
                    libhtmlpp::HtmlElement cssStyle("style");
                    std::string scopedCSS = "." + responsiveClass + " { " + customCss + " }";
                    cssStyle.appendChild(libhtmlpp::TextElement(scopedCSS.c_str()));
                    cssStyle.appendChild(libhtmlpp::TextElement(customCss.c_str()));
                    el.appendChild(cssStyle);
                }

+1 −2
Changes for src/webedit/button/button.cpp: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -540,8 +540,7 @@ extern "C" {

                if (!customCss.empty()) {
                    libhtmlpp::HtmlElement cssStyle("style");
                    std::string scopedCSS = "." + responsiveClass + " { " + customCss + " }";
                    cssStyle.appendChild(libhtmlpp::TextElement(scopedCSS.c_str()));
                    cssStyle.appendChild(libhtmlpp::TextElement(customCss.c_str()));
                    el.appendChild(cssStyle);
                }

+2 −2
Changes for src/webedit/container/container.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -680,8 +680,8 @@ extern "C" {

                if (!customCss.empty()) {
                    libhtmlpp::HtmlElement cssStyle("style");
                    std::string scopedCSS = "." + responsiveClass + " { " + customCss + " }";
                    cssStyle.appendChild(libhtmlpp::TextElement(scopedCSS.c_str()));
                    // Emit raw — user writes full selectors, e.g. .we-xxx { color: red; }
                    cssStyle.appendChild(libhtmlpp::TextElement(customCss.c_str()));
                    el.appendChild(cssStyle);
                }

+1 −2
Changes for src/webedit/grid/grid.cpp: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -570,8 +570,7 @@ extern "C" {

                if (!customCss.empty()) {
                    libhtmlpp::HtmlElement cssStyle("style");
                    std::string scopedCSS = "." + responsiveClass + " { " + customCss + " }";
                    cssStyle.appendChild(libhtmlpp::TextElement(scopedCSS.c_str()));
                    cssStyle.appendChild(libhtmlpp::TextElement(customCss.c_str()));
                    el.appendChild(cssStyle);
                }

+1 −2
Changes for src/webedit/image/image.cpp: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -478,8 +478,7 @@ extern "C" {

                if (!customCss.empty()) {
                    libhtmlpp::HtmlElement cssStyle("style");
                    std::string scopedCSS = "." + responsiveClass + " { " + customCss + " }";
                    cssStyle.appendChild(libhtmlpp::TextElement(scopedCSS.c_str()));
                    cssStyle.appendChild(libhtmlpp::TextElement(customCss.c_str()));
                    el.appendChild(cssStyle);
                }

Loading