// This file stylizes the API documentation (stuff generated by autodoc). It's
// deeply nested due to how autodoc structures the HTML without enough classes
// to select the relevant items.

// API docs!
dl.py, dl.cpp, dl.c, dl.js
  // Tweak the spacing of all the things!
  dd
    margin-left: 2rem
    > :first-child
      margin-top: 0.125rem
    > :last-child
      margin-bottom: 0.75rem

  .field-list
    margin-bottom: 0.75rem
    dt
      text-transform: uppercase
      font-size: var(--font-size--small)

    dd:empty
      margin-bottom: 0.5rem
    dd > ul
      margin-left: -1.2rem
      > li
        > p:nth-child(2)
          margin-top: 0
        // When the last-empty-paragraph follows a paragraph, it doesn't need
        // to augument the existing spacing.
        > p + p:last-child:empty
          margin-top: 0
          margin-bottom: 0

  // Colorize the elements
  > dt
    color: var(--color-api-overall)

dl.class, dl.function, dl.method, dl.enum, dl.enum-class, dl.enum-struct, dl.type
  > dt .property
    color: var(--color-api-keyword)

.sig-name
  font-weight: bold
  color: var(--color-api-name)
.sig-prename
  color: var(--color-api-pre-name)
.sig-paren
  color: var(--color-api-paren)
.sig-param
  font-style: normal

.versionmodified
  font-style: italic
div.versionadded, div.versionchanged, div.deprecated
  p
    margin-top: 0.125rem
    margin-bottom: 0.125rem

.viewcode-link, .viewcode-back
  float: right
  font-size: var(--font-size--small)
