/**

  This file is part of the Meeds project (https://meeds.io/).

  Copyright (C) 2020 - 2023 Meeds Association contact@meeds.io

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 3 of the License, or (at your option) any later version.
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.
  You should have received a copy of the GNU Lesser General Public License
  along with this program; if not, write to the Free Software Foundation,
  Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

*/

.richEditor, .activityRichEditor {
  position: relative;
  textarea {
    width: 100%;
    border-radius: 10px;
    min-height: 142px;
    resize: none !important;
  }
  .cke_toolgroup {
    a:nth-child(2), a:nth-child(3), a:nth-child(4), a:nth-child(5), a:nth-child(6) {
      display: none!important;
    }
  }
  .cke_toolgroup.fullToolbar {
    a:nth-child(2), a:nth-child(3), a:nth-child(4), a:nth-child(5), a:nth-child(6) {
      display: inline-block!important;
    }
    a:nth-child(n+7) {
      display: none!important;
    }
  }
  .cke_bottom, .cke_top {
    box-sizing: border-box;
    border-top: none;
    border-bottom: none;
    background: transparent;
    padding-left: 2px ~'; /** orientation=lt */ ';
    padding-right: 2px ~'; /** orientation=rt */ ';
    height: 30px;
    & > .cke_toolbox {
      background: transparent;
      border-top: none;
      border-bottom: none;
    }
    .cke_button_icon {
      filter: opacity(0.2);
    }
    .cke_button__attachfile_icon {
      background-position: 2px 2px!important;
      background-size: 11px!important;
    }
  }
  .cke_focus .cke_button_icon {
    filter: opacity(0.4);
  }
  .activityCharsCount {
    position: absolute;
    bottom: 8px;
    right: 10px ~'; /** orientation=lt */ ';
    left: 10px ~'; /** orientation=rt */ ';
    color: #adadad;
  }
  .uiIconMessageLength, .uiIconMessageLength:before {
    font-size: 12px;
    color: @successColor;
  }
  .tooManyChars {
    &, .uiIconMessageLength, .uiIconMessageLength:before {
      color: @errorColor;
    }
  }
  .loadingRing {
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50% ~'; /** orientation=lt */ ';
    right: 50% ~'; /** orientation=rt */ ';
    transform: translate(-50%, -50%);
    color: @primaryColor;
  }

  &.large-toolbar {
    .cke_bottom, .cke_top {
      > .cke_toolbox {
        padding-top: 10px;
        padding-bottom: 10px;
      }
    }
  }

}
