/**
 * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *
 * WSO2 Inc. 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.
 */

/* Styles for operator finder */
.operator-finder > .content {
    height: 100%;
}

/* Operator search results */
.operator-finder .results {
    height: calc(100% - 77px);
}

.operator-finder .result {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #373737;
}

.operator-finder .result .heading {
    overflow: hidden;
}

.operator-finder .result .heading h4 {
    float: left;
    font: 14px Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace;
    width: calc(100% - 25px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-finder .result .heading .more-info {
    display: inline-block;
    padding-top: 12px;
}

.operator-finder .result .description {
    color: #c8c7c7;
}

.operator-finder .result.less .description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-finder .icon-bar a.expand-description {
    display: inline-block;
    padding-top: 3px;
}

.operator-finder .icon-bar a.add-to-source.disabled {
    cursor: pointer;
    pointer-events: none;
    color: #6b6969;
}

.operator-finder .icon-bar ul {
    float: right;
    padding-right: 10px;
}

.operator-finder .icon-bar li {
    display: inline-block;
    margin-left: 10px;
}

.operator-finder a.namespace-entry {
    display: block;
    background-color: #373737;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.operator-finder .alert-danger {
    background-color: #d9534f !important;
}

.operator-finder mark {
    background-color: yellow;
}

/* More operator details modal dialog */
.modal-operator-details .modal-header h3 {
    padding: 0 0 10px 20px;
}

.modal-operator-details .modal-header hr {
    border-top: 1px solid #2c2c2c;
    width: 100%;
    padding: 0 0 5px;
}

.modal-operator-details .modal-body thead td:nth-child(1) {
    width: 20%;
}

.modal-operator-details .modal-body thead td:nth-child(2) {
    width: 15%;
}

.modal-operator-details .modal-body tbody td:nth-child(1),
.modal-operator-details .modal-body tbody td:nth-child(2) {
    font: 14px Monaco, Menlo, 'Ubuntu Mono', Consolas, source-code-pro, monospace;
}

.modal-operator-details .operator-details-content {
    max-height: 400px;
}

/* Copy to clipboard */
.copyable-text {
    width: 1px;
    height: 1px;
    opacity: 0;
    border: none;
    padding: 0;
}

.copy-status-msg {
    display: inline-block;
    color: #06c706;
    padding-right: 10px;
}

.info-text {
    color: #009DA7;
    font-weight: bold;
    padding: 5px 0;
    margin-bottom: 15px;
}
