Skip to content
Snippets Groups Projects
rich-text-editor.component.scss 1.61 KiB
Newer Older
  • Learn to ignore specific revisions
  • :host {
      display: flex;
      flex-direction: column;
    }
    
    tiptap-editor {
      flex-grow: 1;
      display: flex;
      overflow: scroll;
    
    :host ::ng-deep div.ProseMirror {
      width: 100%;
      margin: 10px;
      overflow: scroll;
    
    .editor-control-panel {
    
    rhenck's avatar
    rhenck committed
      margin-bottom: 15px;
    
    rhenck's avatar
    rhenck committed
      max-width: 1000px;
    
      margin-left: auto;
      margin-right: auto;
    
    rhenck's avatar
    rhenck committed
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    
    rhenck's avatar
    rhenck committed
    .editor-control-panel button.active {
      background-color: lightgrey;
    }
    
    :host ::ng-deep .editor-control-panel .dropdown .mat-mdc-form-field-infix {
    
      min-height: unset;
      padding-top: 10px;
      padding-bottom: 10px;
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .editor-control-panel .dropdown .mdc-notched-outline__notch {
    
      max-width: unset !important;
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .editor-control-panel .indent-size-input .mat-mdc-form-field-flex {
    
      height: 45px;
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .editor-control-panel .indent-size-input .mat-mdc-form-field-infix {
    
      padding-top: 10px;
      padding-bottom: 10px;
    
    :host fieldset {
    
      height: 55px;
    
      box-sizing: content-box !important;
      border-radius: 3px;
    
      padding: 2px 5px 15px 5px;
    
    rhenck's avatar
    rhenck committed
    // ### Override TipTap text styling ###
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .ProseMirror p strong {
      letter-spacing: 0.02em !important;
      font-weight: 750 !important;
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .ProseMirror h1 {
      font-weight: bold;
      font-size: 20px;
    
    rhenck's avatar
    rhenck committed
    :host ::ng-deep .ProseMirror h2 {
      font-weight: bold;
      font-size: 18px;
    }
    :host ::ng-deep .ProseMirror h3 {
      font-weight: bold;
      font-size: 16px;
    }
    :host ::ng-deep .ProseMirror h4 {
      font-weight: normal;
      font-size: 16px;
    }
    ::ng-deep mark {
      color: inherit;
    }
    :host ::ng-deep .ProseMirror tooltip {
      background-color: #eee;