
@import '~@/assets/iconfont/iconfont.less';
@import './_variable.less';

:global {
  html{
    // ios webview 进入后高度不正确的问题
    background-color: white;   
    width:100vw;
    height: 100%;
    // height:100vh;
    padding:var(--safeTop) var(--safeRight) var(--safeBottom) var(--safeLeft);
  }

  body,#main-view{
    background-color: #f2f2f2;    
    width:100%;
    height:100%;
  }

  body,html{
    overflow:hidden;
  }
  #main-view {
    overflow: auto;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    // font-size: 0;
  }


  u {
    font-weight: inherit;
  }
  u,
  b,
  strong {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  *[data-inherit] {
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  a{
    color: var(--color-primary);
  }


a,div,p,span,section,hgroup{
    // -webkit-touch-callout:none;
    // -webkit-user-drag:none;
    // -webkit-user-select:none;
    // -moz-user-select:none;
    // -ms-user-select:none;
    // user-select:none;
}


  * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;

    margin: 0;
    padding: 0;
    border: 0;
    border-spacing: 0;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    // font-size:1px;
    font-weight:var(--weight-Regular);
    font-size:var(--font-Regular);
  }

  html{
    font-size: 100PX;
  }
  
  *[data-weight-thin]{font-weight: var(--weight-Thin);}//极细体
  *[data-weight-ultraLight]{font-weight: var(--weight-Ultralight);}//纤细体
  *[data-weight-light]{font-weight: var(--weight-Light);}//细体
  *[data-weight-regular]{font-weight: var(--weight-Regular);}//常规
  *[data-weight-medium]{font-weight: var(--weight-Medium);}//中黑、中粗
  *[data-weight-semibold]{font-weight: var(--weight-Semibold);}//中黑、中粗


  #__vconsole *{
    font-size:14PX;
  }

  body[data-debug-layout]{
    border:4px solid #d64f68;
  }

  #main-view{
    background-color: white;
  }

  body[scroll]{
    overflow:visible;
  }
  .touch-scroll {
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
  }

}

p,div,section,hgroup
{
  &[data-text-break]{
    white-space: pre-wrap;
    word-break:break-all;
  }
}