base.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. html {
  7. height: 100%;
  8. font-size: 14px;
  9. user-select: none;
  10. }
  11. body {
  12. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  13. height: 100%;
  14. color: #333;
  15. }
  16. a {
  17. text-decoration: none;
  18. color: #333;
  19. outline: none;
  20. }
  21. i {
  22. font-style: normal;
  23. }
  24. img {
  25. max-width: 100%;
  26. max-height: 100%;
  27. vertical-align: middle;
  28. object-fit: cover;
  29. }
  30. ul {
  31. list-style: none;
  32. }
  33. body {
  34. overflow: auto;
  35. overflow-y: overlay;
  36. }
  37. /* 文本域取消下拉 */
  38. textarea {
  39. resize: none !important;
  40. }
  41. /* 主题色 */
  42. :root {
  43. --themeColor: #c8b992;
  44. }
  45. [hidden] {
  46. display: none !important;
  47. }
  48. /* 找不到页面 */
  49. .noFindPage {
  50. opacity: 0;
  51. transition: opacity .5s;
  52. .noFindBtn{
  53. text-align: center;
  54. }
  55. }
  56. /* 兼容360浏览器的下拉框 */
  57. .ant-select-selector {
  58. position: relative;
  59. background-color: #ffffff;
  60. border: 1px solid #d9d9d9;
  61. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  62. }
  63. // 重置antd样式
  64. #root {
  65. width: 100vw;
  66. height: 100vh;
  67. min-width: 1600px;
  68. min-height: 900px;
  69. overflow: auto;
  70. overflow-y: overlay;
  71. a {
  72. color: var(--themeColor);
  73. }
  74. #app {
  75. width: 100%;
  76. height: 100%;
  77. overflow: hidden;
  78. &>div {
  79. width: 100%;
  80. height: 100%;
  81. }
  82. }
  83. .myscroll::-webkit-scrollbar {
  84. /*滚动条整体样式*/
  85. width: 3px;
  86. /*高宽分别对应横竖滚动条的尺寸*/
  87. height: 1px;
  88. }
  89. .myscroll::-webkit-scrollbar-thumb {
  90. /*滚动条里面小方块*/
  91. border-radius: 10px;
  92. -webkit-box-shadow: inset 0 0 5px transparent;
  93. background: #8a7351;
  94. }
  95. .myscroll::-webkit-scrollbar-track {
  96. /*滚动条里面轨道*/
  97. -webkit-box-shadow: inset 0 0 5px transparent;
  98. border-radius: 10px;
  99. background: transparent;
  100. }
  101. }
  102. .moveImg {
  103. animation: moveRight 3.5s linear;
  104. }
  105. // 动画帧
  106. @keyframes moveRight {
  107. 0% {
  108. opacity: 1;
  109. transform: scale(1);
  110. bottom: 0px;
  111. }
  112. 100% {
  113. opacity: 0;
  114. transform: scale(1.5);
  115. bottom: 100px;
  116. }
  117. }
  118. // .barrMove {
  119. // animation: barrMove 3.5s linear infinite;
  120. // }
  121. // // 弹幕动画帧
  122. // // 动画帧
  123. // @keyframes barrMove {
  124. // 0% {
  125. // right: -100px;
  126. // }
  127. // 100% {
  128. // right: 1000px;
  129. // }
  130. // }