base.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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: black;
  15. }
  16. a {
  17. text-decoration: none;
  18. color: black;
  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. min-height: 100px !important;
  41. }
  42. /* 主题色 */
  43. :root {
  44. --themeColor: #caab7a;
  45. --themeColor2: #f4945a;
  46. }
  47. /* 找不到页面 */
  48. .noFindPage {
  49. padding-top: 100px;
  50. opacity: 0;
  51. transition: opacity 0.5s;
  52. }
  53. #root {
  54. width: 100vw;
  55. height: 100vh;
  56. min-width: 1600px;
  57. min-height: 900px;
  58. overflow: auto;
  59. overflow-y: overlay;
  60. /* antd图片预览组件 */
  61. }
  62. #root #App {
  63. width: 100%;
  64. height: 100%;
  65. position: relative;
  66. }
  67. #root #AppM {
  68. overflow: hidden;
  69. max-width: 500px;
  70. margin: 0 auto;
  71. }
  72. #root #AppM .noFindPage {
  73. padding-top: 0;
  74. }
  75. #root .ant-image {
  76. display: none;
  77. }
  78. [hidden] {
  79. display: none !important;
  80. }
  81. .mySorrl::-webkit-scrollbar {
  82. /*滚动条整体样式*/
  83. width: 3px;
  84. /*高宽分别对应横竖滚动条的尺寸*/
  85. height: 1px;
  86. }
  87. .mySorrl::-webkit-scrollbar-thumb {
  88. /*滚动条里面小方块*/
  89. border-radius: 10px;
  90. -webkit-box-shadow: inset 0 0 5px transparent;
  91. background: var(--themeColor2);
  92. }
  93. .mySorrl::-webkit-scrollbar-track {
  94. /*滚动条里面轨道*/
  95. -webkit-box-shadow: inset 0 0 5px transparent;
  96. border-radius: 10px;
  97. background: transparent;
  98. }
  99. #root {
  100. /*横屏*/
  101. }
  102. #root #ScreenChange {
  103. position: fixed;
  104. top: 0;
  105. left: 0;
  106. width: 100%;
  107. height: 100%;
  108. z-index: 10000;
  109. background-color: rgba(0, 0, 0, 0.8);
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: center;
  113. align-items: center;
  114. opacity: 0;
  115. pointer-events: none;
  116. transition: all 0.5s;
  117. }
  118. #root #ScreenChange > img {
  119. width: 200px;
  120. }
  121. #root #ScreenChange > p {
  122. margin-top: 20px;
  123. color: #fff;
  124. font-size: 18px;
  125. height: 40px;
  126. }
  127. @media screen and (orientation: landscape) {
  128. #root #ScreenChange {
  129. opacity: 1;
  130. pointer-events: auto;
  131. }
  132. }
  133. .A1locBoxLoc {
  134. animation: moveDian 1s linear infinite alternate;
  135. }
  136. @keyframes moveDian {
  137. 0% {
  138. transform: translateY(-6px);
  139. }
  140. 100% {
  141. transform: translateY(6px);
  142. }
  143. }