@use "./global";
@use "./theme";
@use "./markdown";
@use "nprogress/nprogress.css";

body {
  width: 100vw;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --at-apply: c-#303133;
  --at-apply: bg-#fff;
}

#app {
  max-width: 750px;
  margin: 0 auto;
}

html {
  font-size: 14px;
  box-sizing: border-box;
  overflow-y: scroll;
  -webkit-tap-highlight-color: rgb(255 255 255 / 0%);
}

:root {
  overflow: hidden auto;
}

:root body {
  margin: 0;
  padding: 0;
  height: 100%;
  position: absolute;
}

#app,
html {
  height: 100%;
}

dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  background-color: transparent;
  outline: none;
}

svg {
  box-sizing: content-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

// 滚动条样式

// ::-webkit-scrollbar {
//   width: 6px;
//   height: 6px;
// }

// ::-webkit-scrollbar-thumb {
//   background: rgba(#000, 0.2);
//   border-radius: 3px;
// }

// ::-webkit-scrollbar-track {
//   background: rgba(#000, 0.06);
//   border-radius: 3px;
// }

// https://stackoverflow.com/questions/43778196/input-background-removed-by-chrome-autofill

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -moz-box-shadow: 0 0 0 100px #fff inset;
  box-shadow: 0 0 0 100px #fff inset;
}
