/*!
 * Waltz - Enterprise Architecture
 * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
 * See README.md for more information
 *
 * 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
 *
 */

@import "../../style/animations";

.waltz-sub-section {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 4px;

    &.show-border {
        box-shadow: 0 1px 2px 0 hsla(0, 0%, 0%, 0.2);
        border-radius: 1px;
        border-top: 1px solid #f9f9f4;
        transition: box-shadow ease-in-out $animation-speed;
        &:hover {
            box-shadow: 0 2px 4px 0 hsla(0, 0%, 0%, 0.2);
        }
    }

    .wss-name {
        padding-top: 2px;
        padding-left: 8px;
        padding-bottom: 2px;
        font-size: 12px;
        font-weight: 700;
        color: #959595;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid #f9f9f4;
        background: linear-gradient(270deg, rgb(254, 254, 254) 50%, #f9f9f4 100%);
        transition: font-weight ease-in $animation-speed;
    }

    .wss-small-name {
        @extend .wss-name;
        font-size: 9px;
    }

    &:hover .wss-name {
        font-weight: bolder;
    }

}


.waltz-sub-section-content {
    margin: 6px 16px;
}

.waltz-sub-section-controls {
    font-size: smaller;
    height: 1.8em;
    margin: 0;
    display: block;
    width: 100%;
    border-top: 1px solid #f9f9f4;
    background: linear-gradient(90deg, rgb(254, 254, 254) 50%, #f9f9f4 100%);
    transition: font-weight ease-in-out $animation-speed;
    > * {
        padding-top: 4px;
        padding-right: 4px;
        float: right;
    }
}