/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * 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.
 */

:global {
  // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .rows-dropdown {
    width: 160px;
    padding-left: 0px;
    justify-content: space-between;
    display: flex;
    color: gray;
    cursor: pointer;
    border: 1px solid var(--color--neutral--200);
    border-radius: 5px;
    height: 26px;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: var(--fill--primary);
    position: relative;
    color: #000;

    .items-container {
      position: absolute;
      left: 0;
      width: 160px;
      border: 1px solid var(--color--neutral--200);
      top: 30px;
      z-index: 3;
      background-color: var(--fill--primary);
      border-radius: 5px;
      box-shadow: var(--dremio--shadow--layer-1);

      .row-item {
        text-align: left;
        padding: 5px;

        &:hover {
          background-color: gray;
          opacity: 0.5;
          color: #fff;
        }
      }
    }

    .text {
      margin-left: 10px;
    }

    .fa-angle-down {
      margin-right: 10px;
    }
  }
}
