/* 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/font';
@import '../../App/theme';
@import '../../App/responsive';
@import '../../App/rem';

$border-radius: rem(4px);

.content-wrapper {
  display: flex;
  position: relative;
  border-top: none;
  padding: rem(16px);
  flex-grow: 1;

  @include breakpoint(lg) {
    flex-grow: initial;
  }
}

.wrapper {
  border-bottom-left-radius: $border-radius;
  border-bottom-right-radius: $border-radius;

  display: flex;
  flex-direction: column;
  flex-grow: 1;

  @include breakpoint(lg) {
    display: block;
  }
}

.actions {
  text-align: right;
  padding: 0 rem(16px) rem(16px) 0;
}

.row {
  border-style: solid;
  border-color: $border-color;
  border-top-width: 0px;
  border-bottom-width: 1px;
  border-left-width: 0;
  border-right-width: 0;
}

.editor-header {
  padding: rem(8px) rem(16px) 0;
}

.tabs {
  margin-bottom: -1px;
  margin-top: rem(16px);
}

button.tab {
  padding: rem(8px) rem(20px);
  color: $gray;
  @include font-size('small');

  & ~ & {
    margin-left: 0;
  }

  &:focus {
    outline: none;
  }
  &:hover {
    color: $black;
  }

  &.tab-active {
    background: white;
    color: $black;
    border: 1px solid $border-color;
    border-bottom: 0;
    border-radius: rem(4px) rem(4px) 0 0;
  }
}
