/*
 * Copyright 2018 Secure Decisions, a division of Applied Visions, Inc.
 *
 * 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.
 *
 * This material is based on research sponsored by the Department of Homeland
 * Security (DHS) Science and Technology Directorate, Cyber Security Division
 * (DHS S&T/CSD) via contract number HHSP233201600058C.
 */


#source-popout {
    /* transition styles */
    position: absolute;
    transition: top .3s ease, left .3s ease, height .3s ease, width .3s ease, opacity .3s ease;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    pointer-events: none;
    opacity: 0;

    /* actual style */
    box-sizing: border-box;
    padding: .5em;
    background: #eee;
    display: flex;
    flex-direction: column;
}
#source-popout.resetting {
    transition: none;
}
#source-popout.active {
    pointer-events: auto;
    opacity: 1;
}

#source-popout header {
    padding-bottom: 5px;
    border-bottom: 1px solid silver;
    margin-bottom: 5px;
}
#source-popout article {
    flex-grow: 1;
    background: #ddd;
    position: relative;
}
#source-popout article .codemirror-parent {
    /* see http://stackoverflow.com/a/15389545/574815
     * about making the child of a flex element take the whole space
     */
    position: absolute;
    height: 100%;
    width: 100%;
}
#source-popout article .CodeMirror {
    height: 100%;
}
#source-popout article .CodeMirror-scroll {
    /* override our global codemirror style from codemirror-extra.css */
    max-height: none;
}

#source-popout .CodeMirror-selectedtext {
    background-color: red
}

.line-level-coverage {
    background-color: #e6ffed
}

.code-coverage {
    background-color: #acf2bd
}

.is-surface-method {
    cursor: pointer;
    font-size: .9em;
    vertical-align: middle;
}

.is-surface-method:hover {
    color: #7E7E7E;
}

.is-surface-method-label {
    font-size: small
}