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

.ignite-form-field {
    font-style: normal;

    ul.dropdown-menu {
        z-index: 1;

        min-width: calc(100% + 2px);
        margin-top: 2px;
        padding: 0;

        border-color: #c5c5c5;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);

        li {
            a {
                padding-left: 15px;
                padding-right: 15px;

                color: $text-color;
                line-height: 26px;

                &:hover {
                    color: #a8110f;
                }

                &.active {
                    background-color: #fff;
                    font-weight: normal;
                }
            }
        }

        li:not(:last-child) {
            border-bottom: 1px solid $table-border-color;
        }
    }
}

.dropdown--ignite {
    .btn-ignite {
        position: relative;

        &::after {
            content: '';

            position: absolute;
            bottom: -4px;

            display: block;
            height: 4px;
            width: 100%;
        }

        &[disabled='disabled'] {
            ul.dropdown-menu {
                display: none !important;
            }
        }
    }
}
