blastula
blastula copied to clipboard
How can you change the background color of the mail?
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.
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;
}