// Licensed under the Apache License, Version 2.0 (the “License”); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.

.source.css {
  // Attribute inside the attribute selector.
  .entity.other.attribute-name {
    foreground: $purple-a100;
  }

  .meta.attribute.builtin
  .entity.other.attribute-name {
    foreground: $purple-a100;
  }

  // Pseudo element.
  .entity.other.pseudo-element {
    foreground: $deep-purple-a100;
  }

  // Property.
  .support.type.property-name {
    foreground: $cyan-300;
  }

  .support.type.vendor-prefix {
    foreground: $cyan-300;
    fontStyle: italic
  }

  // Custom property & media.
  .support.type {
    &.custom-property {
      foreground: $gray-300;
    }

    &.custom-media {
      foreground: $yellow-300;
    }

    &.custom-selector {
      foreground: $teal-300;
      fontStyle: italic
    }
  }

  // Any other unrecognized property.
  .variable.other.type.property-name {
    foreground: $gray-100;
  }

  // Namespace prefix.
  .meta.namespace-prefix {
    .keyword.other.namespace-wildcard,
    .punctuation.separator.key-value,
    .variable.other {
      foreground: $deep-orange-a100;
    }
  }

  // !important
  .keyword.other.important {
    foreground: $deep-purple-a100;
  }

  // Media and feature query word operators.
  .keyword.operator.word {
    foreground: $green-a400;
    fontStyle: none;
  }

  // Units.
  .keyword.other.unit {
    foreground: $deep-orange-a200;
  }
}
