/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */
@import "theme";

:host {
  cursor: pointer;

  .node-label-wrapper {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    height: 100%;
    padding: 15px;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
    color: @text-color;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    word-break: break-all;
    cursor: pointer;
    pointer-events: all;

    .content-wrap {
      font-size: 12px;
    }

    .node-label {
      width: 100%;
      margin-bottom: 12px;
      font-weight: bold;
      text-align: center;

      &:first-child {
        margin-top: 24px;
      }

      &.metric {
        margin-bottom: 2px;
        color: @text-color-secondary;
        font-weight: normal;
        font-size: 12px;
      }
    }

    .detail {
      margin-bottom: 2px;
      color: @text-color;

      &.description {
        color: @heading-color;
      }

      &.last {
        margin-bottom: 0;
      }
    }

    &.pending {
      border: none;
      background: linear-gradient(to right, #000 50%, #fff 0%) top/20px 1px repeat-x,
        /* top */ linear-gradient(#000 50%, #fff 0%) right/1px 20px repeat-y,
        /* right */ linear-gradient(to right, #000 50%, #fff 0%) bottom/20px 1px repeat-x,
        /* bottom */ linear-gradient(#000 50%, #fff 0%) left/1px 20px repeat-y; /* left */
    }
  }
}
