﻿/*
    ====================================================
    Article: CSS Right-Side Sliding Panel
    ====================================================
    https://codepen.io/jasesmith/pen/raqBpm?editors=1100
*/

.wcpanel-right,
.wcpanel-left {
    font-size: 16px;
    position: fixed;
    top: 40px;
    bottom: 0;
    min-width: 15rem;
    display: none;
    
    /*
    transform: translateX(100%);
    transition: 1000ms ease-out;*/
}

.wcpanel-left {
    left: 0;
    border-right: 1px solid var(--light-panel-brush);
}

.wcpanel-right {
    right: 0;
    border-left: 1px solid var(--light-panel-brush);
}

    /* Use this to display the panel */
    .wcpanel-left.show,
    .wcpanel-right.show {
        display: block;
        z-index: 99;
        /*
        transform: translateX(0%);*/
    }

.panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: whitesmoke;
    /*overflow: auto;*/
    padding: 0;
}

.wcpanel-titlebar {
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid var(--light-panel-brush);
    padding: .5rem 0;
}

.wcpanel-titlecaption {
    font-size: 1.1rem;
    font-weight: 300;
    padding-left: 1rem;
}

.wcpanel-titlecaption .oi,
.wcpanel-titlecaption .fas {
    padding-right: 0.5rem;
}

.wcpanel-titlebtn {
    border: 0;
    margin: 0;
    color: var(--header-font-brush);
    background-color: transparent;
    padding: 0 5px;
}

.wcpanel-content {
    position: absolute;
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
    padding: 1rem;
}