/*!
 * 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/_variables";
@import "../../../style/_util";


.waltz-page-header {
    background-color: $waltz-section-background-color;
    @include waltz-box-shadow();
}


.waltz-page-header.wph-free {
    padding: 6px 6px 6px 16px;
    margin-left: $waltz-section-margin;
    margin-right: $waltz-section-margin;
    margin-bottom: 12px;
    border-radius: 3px;
    height: 64px;
    border: 1px solid $waltz-border-color-lighter;

    h2 {
        margin-top: 6px;
        font-size: 22px;
        margin-bottom: 4px;
    }
}


.waltz-page-header.wph-sticky {
    width: 100%;
    height: 30px;
    overflow: hidden;
    position: fixed;
    top: 50px;
    left: auto;
    padding-left: -10px;
    z-index: 999;
    border-bottom: 2px solid $waltz-border-color-lighter;
    opacity: 0;
    pointer-events: none;

    h2 {
        margin: 4px;
        padding-top: 2px;
        padding-left: 36px;
        font-size: medium;
        display: inline-block;
    }

    ul {
        float: right;
        display: inline-block;
    }


    @include transition(opacity 0.2s);
}

.waltz-page-header.wph-sticky.wph-sticky-visible {
    opacity: 1;

    cursor: pointer;
    pointer-events: all;
    @include transition(opacity 0.2s);
}