@use "../base/color";
@use "../base/var";

// presence indicator
[part~=wy-presence] {
  //background-color: var(--wy-component-background-color, transparent);
  width: var.wy-rem(.75);
  height: var.wy-rem(.75);
  border-radius: 50%;
  //outline: var.wy-rem(.125) solid ;
  position: absolute;
  bottom: 0;
  right: -5%;
  box-sizing: border-box;

  &:not([part~=wy-presence-active]) {
    display: none; // initially hidden
  }

  &::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    background-color: #{color.token(--wy-presence-active)};
    background-clip: content-box;
    padding: var.wy-rem(.125);
    box-sizing: border-box;
  }
}

[part~=wy-presence-mask] {
  -webkit-mask-image: radial-gradient(circle var.wy-rem(.75) at bottom var.wy-rem(.75 * .5) right calc(var.wy-rem(.75 *.5) - 5%), rgba(0, 0, 0, 0) var.wy-rem(.75 * .5) , rgb(0, 0, 0) calc(var.wy-rem(.75 *.5) + 1px));
  mask-image: radial-gradient(circle var.wy-rem(.75) at bottom var.wy-rem(.75 * .5) right calc(var.wy-rem(.75 *.5) - 5%), rgba(0, 0, 0, 0) var.wy-rem(.75 * .5) , rgb(0, 0, 0) calc(var.wy-rem(.75 *.5) + 1px));
}

[part~=wy-presence-in-text] {
    position: absolute;
    bottom: unset;
    right: unset;
    &::after {
      left: var.wy-rem(-.5);
    }
}
