@import "flive-vars";

:global {
  .rich-text-editor {
    border: 1px solid $form-control-border-color;
  }
  .rich-text-editor--controls {
    padding: 6px 0 12px;
    display: flex;
    flex-wrap: wrap;
    background: rgba(250,250,250, 0.7);
    & > * {
      display: inline-block;
      padding: 0 0.4em;
      border-right: 1px solid gray;
    }
    & > *:last-child {
      border-right: none;
    }
  }

  .rich-text-editor--style-button {
    border: none;
    height: 25px;
    min-width: 25px;
    border-radius: 3px;
    text-align: center;
    margin-right: 2px;
    background: {
      color: transparent;
      position: 3px 50%;
      repeat: no-repeat;
      size: 18px 18px;
    }
  }
  .rich-text-editor--style-button--active, .rich-text-editor--style-button:hover {
    background-color: rgba(200,200,200, 0.7);
  }
  .rich-text-editor--style-button-bold {
    font-weight: bold;
    padding-top: 5px;
  }
  .rich-text-editor--style-button-underline {
    text-decoration: underline;
    padding-top: 5px;
  }
  .rich-text-editor--style-button-italic {
    font-style: italic;
    padding-top: 5px;
  }
  .rich-text-editor--style-button-ordered-list {
    background: {
      image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAMAAABhEH5lAAAAS1BMVEUAAABCQkJFRUVGRkZFRUVCQkJFRUVDQ0NFRUVFRUVFRUVERERERERERERERERFRUVERERERERERERERERERERERERERERERERERET32eciAAAAGHRSTlMAMjRCQ0lOfYKQlJmaocTFxuHi5OXm9falfyKhAAAATElEQVR42mMgFnCKYIpJMDDwSUABP1yIHyYkABYRlBAmwngucV50IXZGIXTjmQTZ0I0XIcp4DjEedCFWFlF041mZRdCN5xDjZiAdAACXwgbrzvG+ZgAAAABJRU5ErkJggg==")
    };
  }
  .rich-text-editor--style-button-unordered-list {
    background: {
      image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAAD1BMVEUAAABERERFRUVERERERETRGyWnAAAABHRSTlMAxMXG4b8ciAAAABxJREFUCNdjYMAPhBhdgMAJyFJmArGcGRgGXAcA/t0ImAOSO9kAAAAASUVORK5CYII=")
    }
  }

  .rich-text-editor--style-button-align-left {
    background: {
      image: url("img/align-left.png");
    }
  }

  .rich-text-editor--style-button-align-right {
    background: {
      image: url("img/align-right.png");
    }
  }

  .rich-text-editor--style-button-align-center {
    background: {
      image: url("img/align-center.png");
    }
  }

  .rich-text-editor--style-button-align-justify {
    background: {
      image: url("img/align-justify.png");
    }
  }

  div[data-block] > .public-DraftStyleDefault-block {
    margin: 14px 0;
    line-height: 24px;
  }

  .text-align-left {

  }

  .text-align-left {
    text-align: left;
  }

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

  .text-align-center {
    text-align: center;
  }

  .text-align-justify {
    text-align: justify;
  }

  .editor-wrapper {
    padding: 0 .5rem;
  }
}
