/**
 * Copyright (c) 2012-2018 Red Hat, Inc.
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
@def menuListBorderPx 1px;
@def listItemTopPadding 2px;
@def listItemBottomPadding 2px;
@def listItemLeftPadding 16px;
@def listItemRightPadding 44px;

.listBase {
    background: textFieldBackgroundColor;
    border: 1px solid textFieldBorderColor;
    outline: none;
    white-space: nowrap;
}

.listContainer {
    overflow-y: auto;
    overflow-x: hidden;
}

.listItem {
    padding: listItemTopPadding listItemRightPadding listItemBottomPadding listItemLeftPadding;
    color: textFieldColor;
    font-size: textFieldFontSize;
    font-family: textFieldFontFamily;
    cursor: default;
    margin: 0;
}

    /* For tables, the <tr> (which would be the listItem) cannot have padding */
.listItem>td {
    padding-top: listItemTopPadding;
    padding-bottom: listItemBottomPadding;
}

.listItem>td:first-child {
}

.listItem>td:last-child {
    padding-right: listItemLeftPadding;
}

.listItem[selected], .listItem:hover {
    color: mainMenuFontColor;

    -moz-transition: background 0s;
    -webkit-transition: background 0s;
    transition: background 0s;
}

.listItem[selected] {
    background-color: selectionBackground;
}

.listItem:hover {
    filter: brightness(130%);
    -webkit-filter: brightness(130%);
    cursor: pointer;
}
