// Copyright (c) 2024, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

.type-parameter {
  white-space: nowrap;
}

.parameter-list {
  display: table-cell;
  margin-left: 10px;
  list-style-type: none;
  padding-inline-start: unset;

  &.single-line {
    display: inline;
    margin-left: 0;

    > li {
      display: inline;

      > .parameter {
        display: inline;
        margin-left: 0;
        text-indent: 0;
      }
    }
  }
}

.signature {
  color: var(--main-text-color);

  a {
    color: var(--main-hyperlinks-color);
  }
}

.deprecated {
  text-decoration: line-through;
}

.multi-line-signature {
  font-size: 17px;
  color: #727272;

  .type-parameter .parameter {
    margin-left: 0;
    display: unset;
  }

  .parameter {
    margin-left: 60px;
    display: block;
    text-indent: -36px;
  }
}

.annotation-list {
  list-style: none;
  padding: 0;
  display: inline;
}

.comma-separated {
  list-style: none;
  padding: 0;
  display: inline;

  li {
    display: inline;

    &:not(:last-child):after {
      content: ", ";
    }
  }
}

.container > section:first-child {
  border: 0;
}

.constructor-modifier {
  font-style: italic;
}

/* Note that the generated HTML for pub packages may have `section` tags
   transformed into `div` tags, so we have two selectors here. */
section, div {
  .multi-line-signature div.parameters {
    margin-left: 24px;
  }
}

#instance-methods, #instance-properties, #operators {
  dt.inherited {
    .name {
      font-weight: 400;
      font-style: italic;
    }

    .signature {
      font-weight: 400;
    }
  }
}
