// 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.

.category {
  padding: 2px 4px;
  font-size: 12px;
  border-radius: 4px;
  background-color: #999;
  text-transform: uppercase;
  color: white;
  opacity: .5;

  a {
    color: white;
  }

  h1 & {
    vertical-align: middle;
  }

  &.linked {
    font-weight: bold;
    opacity: 1;
  }

  /* Colors for category based on categoryOrder in dartdoc_options.config. */
  &.cp-0 {
    background-color: #54b7c4
  }

  &.cp-1 {
    background-color: #54c47f
  }

  &.cp-2 {
    background-color: #c4c254
  }

  &.cp-3 {
    background-color: #c49f54
  }

  &.cp-4 {
    background-color: #c45465
  }

  &.cp-5 {
    background-color: #c454c4
  }
}
