@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins';
@import 'bootstrap/scss/buttons';
@import 'bootstrap/scss/grid';
@import './consts';

.Calendar {
  @include make-container();
}

/* Calendar head */
.Calendar-head {
  display: flex;
  justify-content: center;
  font-size: 2em;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  margin-top: -$spacer * 4;
  padding-top: $spacer * 4;

  .btn {
    margin: 0 1px;
  }
}

.Calendar-prev, .Calendar-next {
  flex: 0 2.5em;
}

.Calendar-prev {
  text-align: right;
}

.Calendar-month-name {
  flex: 1;
  max-width: 30rem;
  text-align: center;
}

.Calendar-month-name.input-group {
  justify-content: center;
  font-size: 0.75em;
}

.Calendar-month-input {
  max-width: 12.5em;
}

.Calendar-year-input {
  max-width: 6em;
}

.Calendar-today-button {
  max-width: 5em;
}

/* Days */
.Month {
  margin-left: -$calendar-gutter;
  margin-right: -$calendar-gutter;
}

.Month-days {
  @include make-row($gutter: 0);

  > * {
    @include make-col-ready();
  }
}

.DayOuter {
  padding: $calendar-gutter;
}

.DayFiller {
  display: none;
}

.DayOuter {
  display: flex;
  @include make-col($size: 1, $columns: 2);
}

.Day, .DayFiller {
  padding: 0.5em;
  border-radius: $border-radius;
}

.Day {
  flex: 1;
  border: 1px solid black;
}

.DayFiller {
  border: 1px solid transparent;
}

.Day-name {
  font-size: 2em;
  font-weight: 600;
}

.Day-weekday {
  font-weight: 600;
}

.Day-today {
  background: $gray-300;
}

/* Weekdays */
.Month-weekdayHead {
  display: none;
}

.WeekdayName {
  text-align: center;
  font-weight: 600;
  font-size: 1.2em;
}
