$time: 0.3s;

.circular-menu {
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "STHeitiSC-Light", "Microsoft YaHei", Arial, sans-serif;
  z-index: 1040;//more than bootstrap fixed top
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  position: fixed;
  display: none;
  transition: opacity .3s ease, transform .3s ease;
  cursor: default;
  transform: scale(0.1);
  pointer-events: none;
  overflow: hidden;

  &.circular-sub-menu{
    transition: all 0s ease 0s;
    &:after{
      display: none;
    }
  }

  /*cover to prevent extra space of anchors from being clickable*/
  &:after {
    content: ".";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    z-index: 10;
    color: transparent;
    box-sizing: border-box;
  }

  &.opened-nav {
    opacity: 1;
    //display: block;
    transition: opacity .3s ease, transform .3s ease;
    transform: scale(1);
    pointer-events: auto;
    li {
      transition: all .3s ease .3s;
      pointer-events: none;
      a{
        pointer-events: auto;
        .horizontal{
          pointer-events: none;
        }
      }
    }
  }

  ul{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    li {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      position: absolute;
      overflow: hidden;
      transition: all .3s ease;
      border: 1px solid transparent;
      transform-origin: 100% 100%;
      a {
        box-sizing: border-box;
        position: absolute;
        display: block;
        border-radius: 50%;
        cursor: pointer;
        color: #fff;
        padding-top: 10px;
        text-align: center;
        text-decoration: none;
        backface-visibility: hidden;
        span.cm-icon{
          display: inline-block;
          background-size: cover;
        }

        span.text {
          //position: relative;
          display: block;
          font-size: 13px;
          line-height: 1;
          position: relative;
          font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "STHeitiSC-Light", "Microsoft YaHei", Arial, sans-serif;
        }

        //disable margin-collapsing
        .cn-icon:before{
          display: table;
        }

        &.disabled {
          -webkit-filter: grayscale(100%);
          pointer-events: none !important;
          cursor: default;
        }

        &:focus {
          position: fixed; /* fix the displacement bug in webkit browsers when using tab key */
        }
      }

    }
  }
}


//.cn-wrapper li a:hover,
//.cn-wrapper li a:active,
//.cn-wrapper li a:focus {
//    background: radial-gradient(transparent $percent * 100%, #449e6a $percent * 100%);
//}
