12rambau/sepal_ui

View on GitHub
docs/source/_static/css/custom.css

Summary

Maintainability
Test Coverage
/*******************************************************************************
 *  add padding to the jupyter-sphinx widgets
 */
div.jupyter_container.docutils {
  padding: 0.4em;
}

/*******************************************************************************
 * overwrite image filter in dark theme
 * most of our images are from SEPAL which is already using a dark theme
 * there is no need for extra contrast and dimned brightness
 */
html[data-theme="dark"] img {
  filter: brightness(1) contrast(1);
}

/*******************************************************************************
 * Customize the colors of the website
 */
html[data-theme="light"] {
  --pst-color-primary: #196692;
}

html[data-theme="dark"] {
  --pst-color-primary: #196692;
}