//@import '../../../../../tpl/core/Variables.less';
// should use @builder-panel-width but less don't make it easy
//   to do so in calc experessions

.block::before, .block::after {
  position: absolute;
  top: 100%;
  display: block;
  width: 100%;
  text-align: center;
  font-family: fontawesome;
  cursor: pointer;
  transition: opacity 0.25s ease-in-out;
  -moz-transition: opacity 0.25s ease-in-out;
  -webkit-transition: opacity 0.25s ease-in-out;
  font-style: normal;
}

.block::before {
  content: '\f111';
  border-bottom: 1px solid #666;
  padding-top: 14px;
  line-height: 0;
  font-size: 24px;
  color: white;
  opacity: 0;
  text-shadow: none;
}

.block::after {
  content: '\f067';
  padding-top: 4px;
  line-height: 22px;
  font-size: 14px;
  color: #666;
  opacity: 0.5;
}

.medium-editor-element:focus {
  .block:empty::before {
    position: relative;
    display: none;
  }

  .block:empty::after {
    position: relative;
    display: none;
  }
}

.section-layout-sequence {
  .block::before {
      position: absolute;
      left: 50%;
      width: calc(~"(100vw / 3)");
      margin-left: calc(~"(100vw / 6 * -1)");
    }

  @media (min-width: 2560px) {
    .block::before {
      width: 768px;
      left: 50%;
      margin-left: -384px;
    }
  }

  p.block.block-placeholder:empty {
    min-height: 0 !important;

    &::after {
      height: 0;
    }
  }
}

.section-immersive {
  .block::before {
    padding-top: 8px;
  }

  .block::after {
    padding-top: 0;
    margin-top: -2px;
  }

  div.block {
    margin-top: 24px !important;
  }
}

.medium-editor-placeholder {
  .block::before,
  .block::after {
    opacity: 0;
  }
}

/*
p.block:empty::after {
  margin-top: 30px;
}
*/

h1.block:empty::after,
blockquote.block:empty::after {
  margin-top: 54px;
}

h2.block:empty::after {
  margin-top: 32px;
}

.show-add-invite::before,
.show-add-invite::after,
.add-menu-active::before,
.add-menu-active::after {
  opacity: 1;
}

.add-toolbar-menu-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;

  visibility: hidden;

  margin-top: -20px;

  opacity: 0;
  z-index: 999;

  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;

  &.active {
    visibility: visible;
    opacity: 1;
  }

  .add-toolbar-menu {
    display: inline-block;

    background-color: #FFF;

    text-align: center;
    font-size: 16px;

    -webkit-box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.75);

    ul {
      display: inline-flex;
      margin: 0;
      padding: 0;
      list-style: none;
      text-align: center;

      li {
        font-size: 18px;
        cursor: pointer;

        a {
          display: inline-block;
          text-decoration: none;
          padding: 5px 20px 0 20px;

          height: 71px;
          font-family: 'open_sans', sans-serif;
          font-size: 14px;

          color: #000;

          &:hover {
            background-color: #d3d3d3;
          }

          .add-button-icon {
            display: block;
            margin: auto;
          }
        }
      }
    }
  }

  .arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;

    border-right: 10px solid #FFF;
    position: absolute;
    top: 22px;
    left: -10px;
  }
}
