@import './draft';
.reframe-wysiwyg {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.reframe-wysiwyg-header {
  background-color: fadeout(@black, 97);
  border-bottom: 1px solid fadeout(@black, 90);
  height: 3.1em;
  width: 100vw;
  white-space: nowrap;
  .scrollable-x();
}
.reframe-wysiwyg-header-section {
  border-right: 1px solid fadeout(@black, 90);
  padding: 0.4em 0.6em;
  display: inline-block;
}
.reframe-wysiwyg-header-icon {
  display: inline-block;
  margin: 0.1em;
  border-radius: 0.2em;
  text-align: center;
  line-height: 2em;
  cursor: pointer;
  width: 2em;
  height: 2em;
  &.active {
    background-color: fadeout(@black, 90);
  }
  &:hover {
    background-color: fadeout(@black, 95);
  }
}

.reframe-wysiwyg-overlay {
  .opacity-transition(0, 0.7, .15s);
  .opacity(0.7);
  position: absolute;
  background: @black;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  z-index: 2;
}
.reframe-wysiwyg-input {
  .translate-y-transition(-100%, 0, .15s);
  position: absolute;
  background-color: @white;
  border-bottom: 1px solid fadeout(@black, 90);
  display: flex;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
}
.reframe-wysiwyg-input-element {
  flex: 1;
  padding: 0.2em;
  input {
    border: 1px solid fadeout(@black, 90);
    width: 100%;
    padding: 0.8em;
    display: block;
    outline: none;
  }
}
.reframe-wysiwyg-input-icon {
  padding: 0.8em;
  display: flex;
  cursor: pointer;
  color: fadeout(@black, 80);
  i {
    margin: auto;
  }
}
.reframe-wysiwyg-body {
  background-color: @white;
  flex: 1;
  .scrollable();
  .public-DraftStyleDefault-block {
    margin: 0 0 1em;
    line-height: 2em;
  }
}
.reframe-wysiwyg-page {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 800px;
  & > div {
    padding: 1.8em;
    width: 100%;
    display: flex;
    flex: 1;
    & > div {
      display: flex;
      flex: 1;
      & > div {
        flex: 1;
      }
    }
  }
}
