pkgdown icon indicating copy to clipboard operation
pkgdown copied to clipboard

Test white background for plots in dark mode

Open jayhesselberth opened this issue 1 year ago • 2 comments

Closes #2729

jayhesselberth avatar Jul 24 '24 12:07 jayhesselberth

🚀 Deployed on https://66a1407f56955010de4e0180--pkgdown-dev.netlify.app

github-actions[bot] avatar Jul 24 '24 12:07 github-actions[bot]

Hmmmm, is this a vignette specific problem? I re-looked at the scss and discovered that I added this for plots in examples:

pre .img, pre .r-plt {
  img {
    margin: 5px 0;
    background-color: #fff;
  }
}
// low-tech plot softening in dark mode
[data-bs-theme="dark"] pre img {
  opacity: 0.66;
  transition: opacity 250ms ease-in-out;

  &:hover, &:focus, &:active {opacity: 1;}
}

hadley avatar Jul 25 '24 12:07 hadley