/*
 *
 *   Copyright 2016 RIFT.IO 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.
 *
 */
@import "style/_colors.scss";

.sshKeyCards {
    display:-ms-flexbox;
    display:flex;
    -ms-flex-direction:column;
        flex-direction:column;
}

.sshKeyCard {
    display:-ms-flexbox;
    display:flex;
    -ms-flex-align: start;
        align-items: flex-start;
    -ms-flex: 1 0 auto;
        flex: 1 0 auto;
    border-top: 1px solid $neutral-white;
    &:nth-child(odd) {
        background:$gray-lighter;
    }
    &-thumbnail.sqTextInput {
        -ms-flex:1 1;
            flex:1 1;
        width:auto;
        margin:1rem;
        > .readonly {
            background:none !important;
        }
    }
    &-button {
        font-size:1.25rem;
        cursor:pointer;
    }
    &-body {
        -ms-flex:1;
            flex:1;
        display:-ms-flexbox;
        display:flex;
        -ms-flex-direction:column;
            flex-direction:column;
        -ms-flex-pack:justify;
            justify-content:space-between;
            flex:1;
        padding: 1rem;
        margin-left:0;
        height:-webkit-fit-content;
        height:-moz-fit-content;
        height:fit-content;
    }
    &-key.sqTextInput {
        font-size:1rem;

        > textarea {
            padding:0.5rem;
            min-height:190px;
        }
        > .readonly {
            background: none !important;
            word-break: break-all;
            height:auto;
        }
    }
    &-name {
        font-weight:bold;
    }
    &-subtitle {
        margin-top:0.25rem;
    }
    &-key {
        width:100%;
    }
    &-controls {
        -ms-flex:0 1 15%;
            flex:0 1 15%;
        display:-ms-flexbox;
        display:flex;
        -ms-flex-direction:column;
            flex-direction:column;
        -ms-flex-pack:center;
            justify-content:center;
        -ms-flex-align: center;
        -ms-grid-row-align: center;
    align-items: center;
        -ms-flex-item-align: center;
            align-self: center;
        >div {
            display:-ms-flexbox;
            display:flex;
            -ms-flex-pack:justify;
                justify-content:space-between;
                >span {
                    margin:0 1rem;
                }
        }
    }
}
