blastula icon indicating copy to clipboard operation
blastula copied to clipboard

How can you change the background color of the mail?

Open algo-se opened this issue 3 years ago • 1 comments

How could the background color be changed?

I´m trying this with no succeess:

---
output: blastula::blastula_email
---

```{css, echo=FALSE}
body {
  background-color: #99ff66;
}
body .content {
  background-color: #ff0066;
}

```

HELLO

I know it can be done because I´ve seen it in other issues: #93, #81.

algo-se avatar Apr 21 '21 06:04 algo-se

From what I understand, blastula adds the style info directly to the relevant html tags, which takes precedence over css defined elsewhere. To over-ride this, I found that using the !Important modifier after the colors solved the problem:

---
output: blastula::blastula_email
---

```{css, echo=FALSE}
body {
  background-color: #99ff66 !Important;
}
body .content {
  background-color: #ff0066 !Improtant;
}

ekatko1 avatar Nov 21 '22 21:11 ekatko1