global.css 1.8 KB
/**
  * @file 公共样式
  */
html,body{
/* we don't want to allow users to select text everywhere,
  you can enable it on the places you think appropriate */
  user-select: none;
  -webkit-overflow-scrolling: touch;
  font-family:  -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Source Han Sans", "Microsoft YaHei", sans-serif;
  height: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  /* suppressing the tap highlight */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  box-sizing: border-box;
  vertical-align: top;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

*:focus {
  /* the default outline doesn't play well with a mobile application,
    I usually start without it,
    but don't forget to research further to make your mobile app accessible. */
  outline: 0;
}

a {
  background: transparent;
  text-decoration: none;
  outline: none;
  transition: all .1s linear;
}

a:active {
  filter: brightness(1.1);
}

.clickBtn:active {
  filter: brightness(1.1);
  transform: scale(0.98);
}


*[contenteditable] {
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
/**
* 有强迫症的同学总会觉得输入框文本位置整体偏上,感觉未居中心里就痒痒的。桌面端浏览器里声明line-height等于height就能解决,但移动端浏览器里还是未能解决,需将line-height声明为normal才行。
*/
input {
  line-height: normal;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: #5d5d5d;
}

.van-popup {
  background: transparent!important;
  overflow-x: hidden;
}
.van-toast {
  background: rgba(0,0,0,.7)!important;
}