@import '~ng-devui/styles-var/devui-var.scss';

/* 序号 */
.step-nav {
  padding-top: 8px;
  width: 240px;
}

.step-nav > li {
  list-style: none;
  padding: 0;
  cursor: pointer;
  height: 30px;
  line-height: 1.5;
  font-size: $devui-font-size;
  color: $devui-text-weak;
  position: relative;
  display: flex;
  align-items: center;
}

.step-nav > li:hover {
  color: $devui-brand-active;
}

.step-nav > li.active {
  color: $devui-brand-active;
}

.step-nav > li.active::before {
  border-color: $devui-brand-active;
}

.step-nav > li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  text-align: center;
  line-height: 26px;
  border-radius: 50%;
  background-color: $devui-base-bg;
  margin-right: 20px;
  border: 2px solid $devui-dividing-line;
}

/* 左侧线 */
.step-nav > li:not(:first-of-type) {
  margin-top: 32px;
}

.step-nav > li:not(:first-of-type)::after {
  content: '';
  display: block;
  position: absolute;
  top: -32px;
  left: 5px;
  width: 1px;
  height: 32px;
  border-left: 2px solid $devui-dividing-line;
}

.mymain {
  position: relative;
}

.mysidebar {
  width: 240px;
  border-right: 1px solid $devui-line;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

.mycontent {
  padding: 8px;
  margin-left: 240px;
}

.section-block {
  min-height: 200px;
  border-bottom: 1px dashed $devui-line;
}

.section-block.active.anchor-active-by-fragment,
.section-block.active.anchor-active-by-anchor-link {
  animation: hightlight-and-disapear 1 3s linear;
}

@keyframes hightlight-and-disapear {
  0% {
    outline: invert none medium;
  }

  2% {
    outline: 0 none rgba(255, 255, 255, 0);
  }

  10% {
    outline: 1px solid $devui-brand;
  }

  50% {
    outline: 1px solid $devui-brand;
  }

  90% {
    outline: 1px solid rgba(255, 255, 255, 0);
  }

  99% {
    outline: 0 none rgba(255, 255, 255, 0);
  }

  100% {
    outline: invert none medium;
  }
}

.option {
  height: 40px;
}

.option > d-toggle {
  display: inline-block;
  vertical-align: middle;
}
