globalStyle.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. * {
  2. box-sizing: border-box;
  3. // user-select: none;
  4. }
  5. /* 去除标签自带的margin和padding */
  6. body,
  7. ol,
  8. ul,
  9. h1,
  10. h2,
  11. h3,
  12. h4,
  13. h5,
  14. h6,
  15. p,
  16. th,
  17. td,
  18. dl,
  19. dd,
  20. form,
  21. fieldset,
  22. legend,
  23. input,
  24. textarea,
  25. select,
  26. td {
  27. margin: 0;
  28. padding: 0;
  29. }
  30. /* 设置页面的统一的样式 */
  31. body {
  32. word-wrap: break-word;
  33. }
  34. /* 去除a标签默认样式 */
  35. a {
  36. text-decoration: none;
  37. }
  38. /* i使斜体的文字正常 em使强调的内容正常 */
  39. em,
  40. i {
  41. font-style: normal;
  42. }
  43. strong,
  44. b {
  45. font-weight: 100;
  46. }
  47. /* 去除li元素默认的小圆点 */
  48. li {
  49. list-style: none;
  50. }
  51. /* 去除图片的margin和padding */
  52. img {
  53. display: block;
  54. }
  55. /* 设置单元格为单线样式 */
  56. table {
  57. border-collapse: collapse;
  58. border-spacing: 0;
  59. }
  60. /* 首行缩进连两个单位 */
  61. .indent {
  62. text-indent: 2em;
  63. }
  64. .noborder {
  65. border: 0;
  66. }
  67. /* 省略号 */
  68. .ellipsis {
  69. white-space: nowrap;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. }
  73. *:focus-visible {
  74. outline: none !important;
  75. }
  76. *:focus-visible {
  77. outline: none !important;
  78. }
  79. /* 设置滚动条的宽度和背景色 */
  80. ::-webkit-scrollbar {
  81. width: 0;
  82. height: 0;
  83. background-color: transparent;
  84. }
  85. /* 设置滚动条轨道的样式 */
  86. ::-webkit-scrollbar-track {
  87. border-radius: 10px;
  88. }
  89. /* 设置滚动条滑块的样式 */
  90. ::-webkit-scrollbar-thumb {
  91. background-color: #57a3f3;
  92. border-radius: 10px;
  93. }
  94. /* 设置滚动条角落的样式 */
  95. ::-webkit-scrollbar-corner {
  96. background-color: transparent;
  97. }
  98. tbody::-webkit-scrollbar {
  99. width:0;
  100. height: 0;
  101. }