Мой курсор не выровнен после того, как я изменил его размер в Большом картеле - PullRequest
0 голосов
/ 13 ноября 2018

Я уменьшил курсор в CSS, и после того, как я заметил, когда пытался щелкнуть мои объекты, мне пришлось поместить курсор как минимум на 2 см выше, чтобы можно было щелкнуть объект. Я не могу понять, что я сделал неправильно, чтобы это неправильно выровнялось. вот мой код для моего курсора.

    .cursor {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-transform: translateZ(0) scale(0.11);
  transform: translateZ(0) scale(0.11);
  -webkit-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
  transform-origin: center;
  opacity: 0;
  height: 50px;
  width: 50px;
}

.show-cursor .cursor {
  background-color: {{ theme.button_background_color }};
  border-radius: 50%;
  color: {{ theme.button_text_color }};
  font-family: {{ theme.secondary_font | font_family }};
  font-size: 12px;
  line-height: 50px;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  text-align: center;
  z-index: 1000;
}
.show-cursor .cursor .cursor-text {
  font-size: 0px;
  line-height: 20px;
  opacity: 0;
}
.show-cursor .cursor.expanded {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: height 0.2s ease-in-out width 0.2s ease-in-out;
  transition: height 0.2s ease-in-out width 0.2s ease-in-out;
}
.show-cursor .cursor.expanded .cursor-text {
  font-size: 12px;
  opacity: 1;
}
.show-cursor .cursor.small-expanded {
  -webkit-transform: scale(0.15);
  transform: scale(0.15);
  -webkit-transition: height 0.2s ease-in-out width 0.2s ease-in-out;
  transition: height 0.2s ease-in-out width 0.2s ease-in-out;
}
...