canvas style css
Question
Hi guys instead of styling in the init in this way...
it's possibile to use a scss file in canvas? canvas { style:['__FILE__.SCSS'] }
or simple make it cleaner with a single init css?
Thank you!
` myComponent.append(<style>
body {
background: rgb(204,204,204);
}
.footer {
position: absolute;
bottom: 5mm;
width: auto;
left: 5mm;
right: 5mm;
}
.footer-container {
padding: 7px 88px 7px 96px;
}
.footer-text:nth-child(2) {
float:right;
}
.footer-text {
font-size: 11px;
}
.logo-noovle img{
height: 41px;
width: 211px;
}
.logo-placeholder img{
float: right;
height: 68px;
width: 191px;
}
.page {
background: white;
display: block;
margin: 0 auto;
margin-bottom: 0.5cm;
position: relative;
padding: 5mm;
overflow:hidden;
}
.page[size="A4"] {
width: 21cm;
height: 29.7cm;
}
@media print {
body, .page {
margin: 0;
box-shadow: 0;
}
}
.gjs-pn-buttons {
display: none;
}
.gjs-logo{
height:25px;
}
.gjs-cell {
min-height: 75px;
flex-grow: 1;
flex-basis: 100%;
}
.gjs-row {
display: flex;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
padding: 10px;
}
</style>);`Answers (2)
You can use canvasCSS option if you don't want to use files.
Thank you very much! This config file is gonna help me a lot!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #913
[Question] Using Style tag instead of css
Hi, I've been taking a look inside of the dom_components, but cant seem to figure out how to manually override the styling aspect. I need a...
Issue #2541
[Question] Assign style to class not ID
What I'm trying to achieve is whenever the "block" inside of the canvas is edited the style isn't added to an #id but instead added to a cl...
Issue #2849
[BUG] Using image url for background-image is not working properly
DescriptionOn our project for images assets we use url instead of base64 code .Expected behavior When setting a background-image to a contr...
Issue #471
Third-party library styles collision
Hi, I would like to include a third-party styles and javascript in the editor. They are being added like this: The issue I'm experiencing w...
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.