/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
//
// Drawer Component
// --------------------------------------------------
.drawer {
  position: fixed;
  width: 0;
  right: 0 ~'; /** orientation=lt */ ';
  left: 0 ~'; /** orientation=rt */ ';
  top: 0;
  bottom: 0;
  overflow: hidden;
  transition: .3s;
  background: #fff;
  z-index: 9999;
  &.open{
    width: 33%;
  }
  .header {
    height: 50px;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(13,13,13,0.05);
    box-sizing: border-box;
    padding: 15px;
    .closebtn {
      color: #DEE4F2;
      font-size: 32px;
      line-height: 20px;
      float: right ~'; /** orientation=lt */ ';
      float: left ~'; /** orientation=rt */ ';
    }
    span {
      color: #4D5466;
      font-size: 18px;
      font-weight: bold;
      line-height: 20px;
    }
  }
  .content {
    position: absolute;
    padding: 15px;
    top: 50px;
    bottom: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    right: 0;
    left: 0;
  }
  .footer {
    position: absolute;
    min-width: 100%;
    background-color: #FFFFFF;
    border-top: 1px solid rgba(13,13,13,0.05);
    padding: 15px;
    margin: 0;
    bottom: 0;
    box-sizing: border-box;
    button {
      margin: 0 5px;
      float: right ~'; /** orientation=lt */ ';
      float: left ~'; /** orientation=rt */ ';
    }
  }
}

.drawer-backdrop {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  opacity: 0.3;
  z-index: 998;
  background-color: #000;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .drawer.open {
    width: 50%;
  }
}
@media (min-width: 320px) and (max-width: 767px) {
  .drawer.open {
    width: 100%;
  }
  .drawer{
    .footer {
      height: 10%;
    }
    > div {
      min-width: auto;
    }
  }
}
