Skip to content
Snippets Groups Projects
SimpleEditor.scss 5.33 KiB
Newer Older
// Font Awesome
john's avatar
john committed
$fa-font-path: '~font-awesome/fonts';
@import '~font-awesome/scss/font-awesome';
john's avatar
john committed
@import '~substance/substance.css';
@import './elements/elements';
@import './panes/panes';
@import './notesEditor/notesEditor';
john's avatar
john committed
// grays
$light-gray: #ddd;
$ultra-light-gray: #fafafa;
john's avatar
john committed

$black: #000;
$shadow: rgba(0, 0, 0, .05);
john's avatar
john committed
$toolbar-active-bg: rgba(204, 204, 204, .75);
$transparent-black: rgba(0, 0, 0, .75);
$white: #fff;
// track changes
$inactive-grey: #404040;
chris's avatar
chris committed
$active-blue: #4990e2;

$scrollbar-bg: #f5f5f5;
$scrollbar-thumb: rgba(0, 0, 0, .2);
$scrollbar-track: rgba(0, 0, 0, .3);

::-webkit-scrollbar-track {
  background-color: $scrollbar-bg;
  border-radius: 10px;
  box-shadow: inset 0 0 6px $scrollbar-track;
  }

::-webkit-scrollbar {
  background-color: $scrollbar-bg;
  width: 4px;
}

::-webkit-scrollbar-thumb {
    background: $scrollbar-thumb;
}

.editor-wrapper {
  height: 90vh;
  position: relative;

  // move to a new file toolbar.scss ??
  .view-mode {
    font-size: 14px;
    position: absolute;
    text-align: center;
    top: 10px;
    z-index: 9999;
  }
}

.sc-prose-editor {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
chris's avatar
chris committed
  .sc-container-editor {
    max-width: 950px;
  }

chris's avatar
chris committed
  .se-toolbar-wrapper {
    border-bottom: 0;

  .sc-toolbar {
    background-color: $white;
    border-right: 0;
chris's avatar
chris committed
    max-width: 1200px;
john's avatar
john committed
    padding-left: 0;
chris's avatar
chris committed
    vertical-align: middle;
    width: 100%;
chris's avatar
chris committed
    @-moz-document url-prefix() {
      .sc-tool-group > .sc-switch-text-type {
        margin: 0;
        position: relative;
        top: 8px;
      }
chris's avatar
chris committed
        background-color: transparent;
        border: 0;
        color: $inactive-grey;
        line-height: 0;
chris's avatar
chris committed
        outline: none;
chris's avatar
chris committed
        padding: 0 19px;
chris's avatar
chris committed
        content: 'Record Changes';
      .track-changes-active {
chris's avatar
chris committed
        color: $active-blue;
chris's avatar
chris committed
        padding: 0 10px;
chris's avatar
chris committed
        text-decoration: underline;
chris's avatar
chris committed
           content: 'Recording Changes';
    }

    .sm-target-track-change-toggle-view {
      cursor: pointer;
chris's avatar
chris committed
      button {
chris's avatar
chris committed
        background-color: transparent;
        border: 0;
        color: $inactive-grey;
chris's avatar
chris committed
        cursor: pointer;
chris's avatar
chris committed
        line-height: 0;
        outline: none;
chris's avatar
chris committed
        padding: 0 19px;
        position: relative;
chris's avatar
chris committed
      button::after {
chris's avatar
chris committed
        content: 'show changes';
chris's avatar
chris committed
      }
chris's avatar
chris committed
      .track-changes-view-active {
chris's avatar
chris committed
        color: $active-blue;
        padding: 0 19px;
        text-decoration: underline;
chris's avatar
chris committed
      }
      .track-changes-view-active::after {
chris's avatar
chris committed
        content: 'Hide changes';
    .sm-target-document,
    .sm-target-annotations,
chris's avatar
chris committed
      padding: 0 9px;
john's avatar
john committed
      .sc-button {
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 14px;
        outline: none;
        padding: 0 12px;

        &:hover {
chris's avatar
chris committed
          background: transparent;
john's avatar
john committed

          &:disabled {
            background: transparent;
          }
        }
chris's avatar
chris committed
     }
chris's avatar
chris committed
    .sm-active {
chris's avatar
chris committed
      // background: $toolbar-active-bg;
chris's avatar
chris committed
      color: $black;
      margin: 0;
      outline: none;
      padding: 0;
chris's avatar
chris committed
      &:after {
chris's avatar
chris committed
        color: $black;
        content: 'x';
        font-size: 8px;
        left: 21px;
        position: absolute;
chris's avatar
chris committed
  } // End sc-toolbar
chris's avatar
chris committed
}

  .se-scrollable {
    background-color: $white;
    border-right: 1px solid $light-gray;
    margin-top: 1px;
chris's avatar
chris committed

    .sidenav .sc-toolbar ul li.se-option.active {
      background-color: #d8d8d8;
    }

chris's avatar
chris committed
    .sidenav {
chris's avatar
chris committed
      background-color: #e8e8e8;
      box-shadow: 2px 0px 1px -1px #ccc;
      height: 50%;
      left: 2%;
      margin-top: 189px;
chris's avatar
chris committed
      overflow-x: hidden;
      position: fixed;
      top: 0;
chris's avatar
chris committed
      width: 8%;

      .sc-toolbar {
        background: transparent;
        border: 0;

         ul {
          margin: 0;
          padding: 0;

          li.se-option  {
            padding: 3px;
          }
        }

        .sc-switch-text-type {
chris's avatar
chris committed
          bottom: 0;
          margin: 0;
          padding: 0;
          width: 140px;
chris's avatar
chris committed
        }
      }
    }
  div.se-content {
    background-color: $white;
    color: $transparent-black;
    font-family: 'Fira Sans';
    line-height: 38px;
chris's avatar
chris committed
    margin: 0% 0% 0% 15%;
    min-height: 100vh;
chris's avatar
chris committed
    padding: 1% 0%;
    transition: .3s;
    word-wrap: break-word;

    ::selection {
      background: $light-gray;
    }

    ::-moz-selection {
      background: $light-gray;
    }

john's avatar
john committed
    .se-selection-fragment {
chris's avatar
chris committed
      background: none;
    .sc-split-pane {
      position: relative;
    }

john's avatar
john committed
    .sc-surface {
      outline: none;
    }

chris's avatar
chris committed
    .sc-overlay {
john's avatar
john committed
      .se-active-tools {
        background: transparent;
        border: 0;
chris's avatar
chris committed
        border-radius: 0;
john's avatar
john committed
        padding: 0;
      }
    }

chris's avatar
chris committed
    .sc-overlay.sm-theme-dark::before {
john's avatar
john committed
      border-style: none;
      border-width: 0;
chris's avatar
chris committed
    }

    .sc-list-ul {
      list-style-type: disc;
      padding-left: 19px;
    }

    .sc-list-ol {
      list-style-type: decimal;
      padding-left: 19px;
    }
chris's avatar
chris committed
} // end sc-content

  .se-context-section {
    background-color: $ultra-light-gray;
    border-left: 1px solid $light-gray;
    box-shadow: inset 0 0 10px $shadow;