
.editor {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.editor_top {
  position: relative;
}

.editor_title {
  width: 100%;
  border: none;
  outline: none;
  box-sizing: border-box;
  padding: 10px 25px;
  font-size: 34px;
  font-weight: bold;

  .editor--draft & {
    font-style: italic;
    color: #aaa;
  }
}

.pb-button {
  outline: none;
  border: transparent;
  background-color: transparent;
  position: absolute;
  right: 14px;
  top: 15px;
  font-size: 18px;
  cursor: pointer;
  padding: 7px 20px;
  border-radius: 5px;
  font-weight: bold;
  opacity: .5;
  transition: opacity .3s ease;

  &:hover {
    opacity: 1;
  }
}

.editor_publish {
  .pb-button;

  color: rgb(255, 213, 213);
  background-color: rgb(218, 18, 18);
  text-shadow: 1px 1px rgb(124, 49, 49);
}

.editor_unpublish {
  .pb-button;

  padding: 7px 5px 7px 0;
  color: gray;
}


.editor_updated {
  //position: absolute;
  //right: 25px;
  //top: 15px;
  float: right;
  font-size: 14px;
  font-family: Inconsolata;
  color: #aaa;
}

.editor_word-count {
  float: right;
  font-size: 14px;
  font-family: Inconsolata;
  color: #aaa;
}

.editor_perma-link {
  text-decoration: none;
  position: relative;
  top: 1px;
  left: 5px;
  color: #aaa;
  transition: color .3s ease;

  &:hover {
    color: black;
  }
}

@edit-back: @accent2light; //rgb(219, 213, 197);

.editor_main {
  flex: 1;
  display: flex;
  padding: 5px 0 0;
  background-color: @edit-back;

  > div {
    background-color: white;
  }
}

.editor_no-content {
  margin-top: 30px;
  font-size: 30px;
  color: #ddd;
  font-style: italic;
}

.code-mirror_wrappper {
  flex: 1;
}

@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: local('Inconsolata'), local('Inconsolata'), url('Inconsolata-Regular.ttf');
}
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 700;
  src: local('Inconsolata Bold'), local('Inconsolata-Bold'), url('Inconsolata-Bold.ttf');
}

.editor_edit {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: Inconsolata;
  padding: 0 20px;
  font-size: 18px;
  position: relative;
  min-width: 0;

  > div {
    flex: 1
  }
}

.h-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: @accent2transparent;
  z-index: 10;
  padding: 0 25px;
  font-size: 14px;
  font-family: Inconsolata, monospace;
}

.editor_md-header {
  .h-head;
}

.editor_display-header {
  .h-head;
}

.editor_display {
  flex: 1;
  display: flex;
  border-left: 5px solid @edit-back;
  font-size: 18px;
  position: relative;
  min-width: 0;
}

.editor_rendered {
  flex: 1;
  overflow: auto;
  padding: 40px 20px 20px;

  > :first-child {
    margin-top: 0;
  }
}

.CodeMirror-lines {
  padding: 36px 0 40px 0;
}


.CodeMirror, .CodeMirror pre {
  // font-family: Inconsolata!important;
  line-height: 1.3em;
}

.cm-header-1 {
  font-size: 2em;
}

.cm-header-2 {
  font-size: 1.7em;
}

.cm-header-3 {
  font-size: 1.5em;
}

.cm-header-4 {
  font-size: 1.3em;
}

