.__dumi-default-layout {
  padding-right: 0 !important;
}
.__dumi-default-layout-toc {
  display: none;
}

.g-rt {
  display: flex;
  width: 100%;
  height: 300;
  max-height: 100vh;
  & > div {
    flex: 1;
  }

  .m-bar {
    z-index: 99;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    max-height: 100vh;
    margin-right: 5px;
    overflow: visible;
    overflow-y: scroll;

    .m-menu {
      display: flex;
      height: 32px;
      .m-item {
        position: relative;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 30px;
        padding: 10px 0;
        color: #333;
        font-size: 14px;
        background: #fff;
        border-bottom: 2px solid #fff;
        cursor: pointer;
        transition: 0.3s;

        &.sel {
          border-bottom: 2px solid #ff6600;
        }

        &:hover > .m-sub_menu {
          display: block;
        }

        .m-sub_menu {
          position: absolute;
          bottom: 0;
          left: 0;
          z-index: 99999;
          display: none;
          // width: 150%;
          width: 100px;
          color: #fff;
          background: rgba(0, 0, 0, 0.7);
          border-radius: 5px;
          box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
          transform: translate(0, 100%);
          transition: 0.2s;

          &:before {
            position: absolute;
            top: -10px;
            left: calc(25% + 10px);
            display: block;
            width: 0;
            height: 0;
            background: transparent;
            border: 5px solid transparent;
            border-bottom: 5px solid rgba(0, 0, 0, 0.7);
            content: '';
          }

          .m-sub {
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            padding: 5px 15px;

            transition: 0.2s;
            &:hover {
              color: #333;
              background: #fff;
            }
          }
        }
      }
    }

    .m-wrap {
      display: flex;
      flex: 1;
      flex-wrap: wrap;
      align-content: flex-start;
      justify-content: center;
      margin-top: 5px;
      padding: 10px;
      overflow-y: scroll;
      background: #eee;

      .m-sect {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: #fff;
        // padding: 0 10px;
        transition: 0.5s;

        & > div {
          margin: 10px !important;
        }

        &.m-emo {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 32px;
          height: 32px;
          margin: unset !important;
          margin: 2px !important;
          padding: 0 !important;
        }

        &:hover {
          box-shadow: 0 0 8px #ff6600;
        }

        & + .m-sect {
          margin-top: 10px;
        }
      }
    }
  }

  .m-richtext {
    // min-width: 500px;
    display: flex;
    flex: 1;
    flex-direction: column;

    .fn-emoji {
      vertical-align: text-bottom !important;
    }

    & > .w-e-text-container {
      flex: 1;
    }

    > div:first-child {
      z-index: 2 !important;
    }

    > div:nth-child(2) {
      z-index: 1 !important;
    }
  }
}

.fn-emoji {
  width: 24px !important;
  height: 24px !important;
}
