Skip to content
Snippets Groups Projects
SimpleEditor.scss 6.56 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 './miniEditor/miniEditor';
john's avatar
john committed
// grays
$border: #ccc;
$dark-gray: #999;
$light-gray: #ddd;
$primary: #eee;
$ultra-light-gray: #fafafa;
john's avatar
john committed

$black: #000;
$shadow: rgba(0, 0, 0, .05);
$teal: #46b9ba;
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;
$active-blue: #4a90e2;

.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;
  }
chris's avatar
chris committed
    div.se-content {

    .sc-prose-editor-overlay-tools .se-active-tools .sc-comment-icon {
      top: 0;
    }

    .sc-comment-pane-list li .comment-list .single-comment-row {
      padding: 3px 12px;
    }
    .sc-overlay .se-active-tools .sc-overlay-bubble .sc-comment-icon {
      top: 0;
    }
}

.sc-prose-editor {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  .se-toolbar-wrapper .sc-toolbar {
    background-color: $primary;
    border: 1px solid $border;
    border-right: 0;
    float: left;
    max-width: 1920px;
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;
      }
john's avatar
john committed
    }
    .sm-target-text {
chris's avatar
chris committed
      // bottom: 5px;
chris's avatar
chris committed
      height: 100%;
chris's avatar
chris committed
      position: relative;
chris's avatar
chris committed
      .sc-switch-text-type {
        bottom: 5px;
chris's avatar
chris committed
        margin-left: 1px;
        width: 150px;
chris's avatar
chris committed
        button {
          color: $transparent-black;
          height: inherit;
          position: relative;
          top: 5px;
        }
chris's avatar
chris committed
        .se-toggle {
          background: transparent;
          border: 0;
          font-family: 'Fira Sans';
          font-size: 14px;
          outline: none;
        }

        .se-options {
chris's avatar
chris committed
          background: transparent;
          border: 0;
          box-shadow: none;
          top: 27px;
chris's avatar
chris committed
        }

        .se-option {
chris's avatar
chris committed
          background-color: #E8E8E8;
chris's avatar
chris committed
          border: 0;
          font-family: 'Fira Sans';
        }
      }
    } // end dropdown
        background-color: $inactive-grey;
        border-radius: 0;
chris's avatar
chris committed
        color: $white;
        line-height: 0;
        // cursor: pointer;
chris's avatar
chris committed
        padding: 0 19px;
chris's avatar
chris committed
        content: 'Record Changes';
      .track-changes-active {
        background-color: $active-blue;
        color: $white;
chris's avatar
chris committed
        padding: 0 10px;
chris's avatar
chris committed
           content: 'Recording Changes';
    }

    .sm-target-track-change-toggle-view {
      cursor: pointer;
chris's avatar
chris committed
      button {
        background-color: $inactive-grey;
        border-radius: 0;
        color: $white;
        cursor: pointer;
        padding: 0 19px;
        position: relative;
        line-height: 0;
chris's avatar
chris committed
      button::after {
        content: 'Changes View Off';
      }
chris's avatar
chris committed
      .track-changes-view-active {
        background-color: #228b46;
        color: $white;
        padding: 0 19px
      }
      .track-changes-view-active::after {
chris's avatar
chris committed
        content: 'Changes View On';
    .sm-target-document {
      border-left: 1px solid $border;
    }

    .sm-target-track-change-enable {
chris's avatar
chris committed
      padding: 0 9px;
    }

    .sm-target-document,
    .sm-target-annotations,
      border-right: 1px solid $border;
chris's avatar
chris committed
      padding: 0px 9px;
john's avatar
john committed
      .sc-button {
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 14px;
        outline: none;
        padding: 0 12px;

        &:hover {
          background: $toolbar-active-bg;

          &:disabled {
            background: transparent;
          }
        }
chris's avatar
chris committed
     }
chris's avatar
chris committed
    .sm-active {
      background: $toolbar-active-bg;
      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

  .se-scrollable {
    background-color: $primary;
    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: 0 0 12px $dark-gray;
      box-shadow: 2px 0px 1px -1px #ccc;
chris's avatar
chris committed
      height: 100%;
      left: 0;
chris's avatar
chris committed
      overflow-x: hidden;
      position: fixed;
      top: 0;
      width: 128px;
chris's avatar
chris committed
      z-index: 1;

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

         ul {
          margin: 0;
          padding: 0;

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

        .sc-switch-text-type {
          bottom: 0px;
          margin: 0;
          padding: 0;
          width: 140px;
chris's avatar
chris committed
        }
      }
    }
  div.se-content {
    background-color: $white;
    box-shadow: 0 0 8px $dark-gray;
    color: $transparent-black;
    font-family: 'Fira Sans';
Alexandros Georgantas's avatar
Alexandros Georgantas committed
    margin: 1.5% 17.8% 7%;
    min-height: 100vh;
    padding: 3% 4% 1%;
    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

  .sc-has-comments {
    div.se-content {
    }
  }

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

  .sc-comments-pane {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin-left: 8%;
  }
}