/********************************************************************************
 * Copyright (C) 2018 TypeFox and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the Eclipse
 * Public License v. 2.0 are satisfied: GNU General Public License, version 2
 * with the GNU Classpath Exception which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 ********************************************************************************/

.theia-search-box {
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: baseline;
    box-shadow: var(--g-border-width) var(--g-border-width) var(--g-widget-shadow);
    line-height: var(--g-private-horizontal-tab-height);
    background-color: var(--g-editor-background);
    z-index: calc(var(--g-tabbar-toolbar-z-index) + 1);
    border: var(--g-border-width) solid var(--g-editor-background);
}

.theia-search-input {
    flex-grow: 1;
    line-height: calc(var(--g-private-horizontal-tab-height) * 0.8);
    max-width: 6rem;
    background-color: var(--g-input-background);
}

.theia-search-button {
    min-width: 1rem;
    text-align: center;
    flex-grow: 0;
    font-family: FontAwesome;
    font-size: calc(var(--g-content-font-size) * 0.8);
    color: var(--g-editorWidget-foreground);
}

.theia-search-button-next:before {
    content: "\f107";
}

.theia-search-button-next:hover,
.theia-search-button-previous:hover,
.theia-search-button-close:hover {
    cursor: pointer;
    background-color: var(--g-editorHoverWidget-background);
}

.theia-search-button-next:hover:before {
    content: "\f107";
}

.theia-search-button-previous:before {
    content: "\f106";
}

.theia-search-button-previous:hover:before {
    content: "\f106";
}

.theia-search-button-close:before {
    content: "\f00d";
}

.theia-search-button-close:hover:before {
    content: "\f00d";
}

.theia-non-selectable {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    cursor: default;
}
