/* Copyright (C) 2019 Monomax Software Pty Ltd
 *
 * This file is part of Dnote.
 *
 * Dnote is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dnote 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 Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Dnote.  If not, see <https://www.gnu.org/licenses/>.
 */

@import '../../App/responsive';
@import '../../App/rem';
@import '../../App/font';

.content {
  overflow: auto;
  background-color: white;
  margin-left: rem(16px);
  margin-right: rem(16px);
  margin-top: rem(52px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  border-radius: 2px;

  @include breakpoint(md) {
    margin-left: auto;
    margin-right: auto;
  }

  &.small {
    max-width: 100%;

    @include breakpoint(md) {
      max-width: rem(480px);
    }
  }
  &.regular {
    max-width: 100%;

    @include breakpoint(md) {
      max-width: rem(580px);
    }

    @include breakpoint(lg) {
      max-width: rem(682px);
    }
  }
}

.overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background-color: rgba(0, 0, 0, 0.52);
  z-index: 4;

  max-height: 100%;
  overflow-y: scroll;
}

.header {
  background-color: #f6f8fa;
  border-bottom: 1px solid #e7e9ec;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;

  display: flex;
  justify-content: space-between;
  padding: 9px 4px 9px 16px;

  .header-text {
    @include font-size('small');
    font-weight: 600;
  }
}

.body {
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: rem(16px);
}

.input-row {
  & ~ .input-row,
  .input-row {
    margin-top: rem(12px);
  }
}
