@import url("theme.css");

html[data-theme="dark"] img {
    filter: none;
}
html[data-theme="dark"] .bd-content img:not(.only-dark):not(.dark-light) {
    background: unset;
}

dl.c.function > dd > em:first-of-type {
    background-color: #ededee;
    padding: 2px;
}

dl.c.type > dd > em:first-of-type {
    background-color: #ededee;
    padding: 2px;
}

dl.c.macro > dd > em:first-of-type {
    background-color: #ededee;
    padding: 2px;
}

dl.c.struct > dd > div > em:first-of-type {
    background-color: #ededee;
    padding: 2px;
}

dl.c.function > dd > p:first-of-type {
    font-weight: 600;
    font-size: 105%;
}

dl.c.type > dd > p:first-of-type {
    font-weight: 600;
    font-size: 105%;
}

dl.c.macro > dd > p:first-of-type {
    font-weight: 600;
    font-size: 105%;
}

dl.c.struct > dd > p:first-of-type {
    font-weight: 600;
    font-size: 105%;
}

/* add a space to fix Breathe+Sphinx rtd_theme with 
breathe_show_define_initializer  */ 
dt.sig.sig-object.c > span.pre::before { 
   content: "\00a0";
}

/* Newlines (\a) and spaces (\20) before each parameter */
.sig-param::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}

/* Newline after the last parameter (so the closing bracket is on a new line) */
dt em.sig-param:last-of-type::after {
    content: "\a";
    white-space: pre;
}

/* To have blue background of width of the block (instead of width of content) */
dl.class > dt:first-of-type {
    display: block !important;
}

.rst-content .figure .caption {
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    padding: 0 10px 5px;
}

.rst-content .align-center {
    margin: 0 auto;
    text-align: center;
}

.rst-content .rubric {
    font-weight: bold;
}

div[class^=highlight] {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    border-radius: 5px;
}

/* Hide "On GitHub" section from versions menu */
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(4) {
    display: none;
}

.sd-tab-set .sd-tab-content {
  padding: 0.5rem 0 0 0 !important;
  background-color: transparent !important;
  border: none !important;
}

.sd-tab-set > label.sd-tab-label {
  flex: 1 1 0;
  text-align: center;
  margin: 0 3px;
  border-radius: 5px !important;
}

.sd-tab-set > input:checked + label.sd-tab-label {
  transform: unset;
  border: 2px solid var(--pst-color-primary);
  color: var(--sd-color-primary-text) !important;
  background-color: var(--pst-color-primary);
}

.sd-tab-set > input:not(:checked, :focus-visible) + label:hover.sd-tab-label {
  color: var(--pst-color-primary);
  border-color: var(--pst-color-primary) !important;
  text-decoration: none;
}


.sd-card .sd-card-img-top {
  height: 60px;
  width: 60px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
}

.sphinx-contributors img {
    border-radius: 50% !important;
}

/* stack footer items horizontally */
.footer-items__start, .footer-items__end {
  flex-direction: row !important;
}

/* Main index page overview images */

html[data-theme=dark] .sd-card img[src*='.svg'] {
  filter: invert(0.82) brightness(0.8) contrast(1.2);
}
