/**
 * 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 '../../../stylesheets/less/variables.less';

.dashboard-filter-indicators-container {
  position: absolute;
  right: -20px;
  top: 40px;
  width: 20px;
  height: 125px;

  .indicator-container {
    position: relative;
    margin-bottom: 4px;
  }

  .filter-indicator,
  .filter-indicator-group {
    width: 3px;
    height: 20px;
    overflow: hidden;
    display: flex;
    background-color: @gray-light;
    transition: width @timing-normal;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;

    .color-bar {
      width: 0px;
      height: 20px;
      position: absolute;
      right: 100%;
      transition: width @timing-normal;
    }

    .filter-badge {
      width: 20px;
      height: 20px;
    }
  }

  .filter-indicator-group {
    box-shadow: @lightest -2px 0 0 0, @gray-light -4px 0 0 0;
  }
}

.show-outline .filter-indicator-group {
  box-shadow: @shadow-highlight -2px 0 0 0, @lightest -4px 0 0 0,
    @gray-light -6px 0 0 0;
}

.dashboard-component-chart-holder,
.dashboard-filter-indicators-container {
  .active.filter-indicator,
  .active.filter-indicator-group,
  &:hover .filter-indicator,
  &:hover .filter-indicator-group {
    width: 20px;
    background-color: transparent;

    .color-bar {
      width: 2px;
    }

    .filter-badge {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }
  }

  .filter-indicator-group {
    box-shadow: @lightest -4px 0 0 0, @gray-light -6px 0 0 0;
  }
}
