base.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. word-wrap: break-word;
  6. -webkit-tap-highlight-color: transparent;
  7. font-family: qfk;
  8. }
  9. /* 全局css变量 */
  10. :root {
  11. --themeColor: #cc1424;
  12. --themeColor2: #272727;
  13. --fontNum: 16px;
  14. }
  15. html {
  16. height: 100%;
  17. user-select: none;
  18. }
  19. body {
  20. font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
  21. font-size: var(--fontNum);
  22. height: 100%;
  23. color: black;
  24. overflow: hidden;
  25. }
  26. #root {
  27. overflow: hidden;
  28. margin: auto;
  29. position: relative;
  30. }
  31. #root > div {
  32. width: 100%;
  33. height: 100%;
  34. }
  35. i {
  36. font-style: normal;
  37. }
  38. img {
  39. max-width: 100%;
  40. max-height: 100%;
  41. vertical-align: middle;
  42. object-fit: cover;
  43. }
  44. ul {
  45. list-style: none;
  46. }
  47. /* 文本域取消下拉 */
  48. textarea {
  49. resize: none !important;
  50. min-height: 100px !important;
  51. }
  52. /* 找不到页面 */
  53. .noFindPage {
  54. opacity: 0;
  55. transition: opacity 0.5s;
  56. text-align: center;
  57. }
  58. .noFindPage .ant-result {
  59. padding: 20px !important;
  60. transform: scale(0.8);
  61. }
  62. .noFindPage .ant-result .ant-result-subtitle {
  63. font-size: 20px;
  64. }
  65. [hidden] {
  66. display: none !important;
  67. }
  68. /* antd图片预览组件 */
  69. .ant-image {
  70. display: none !important;
  71. }
  72. .mySorrl::-webkit-scrollbar {
  73. /*滚动条整体样式*/
  74. width: 5px;
  75. /*高宽分别对应横竖滚动条的尺寸*/
  76. height: 1px;
  77. }
  78. .mySorrl::-webkit-scrollbar-thumb {
  79. /*滚动条里面小方块*/
  80. border-radius: 10px;
  81. -webkit-box-shadow: inset 0 0 5px transparent;
  82. background: var(--themeColor);
  83. }
  84. .mySorrl::-webkit-scrollbar-track {
  85. /*滚动条里面轨道*/
  86. -webkit-box-shadow: inset 0 0 5px transparent;
  87. border-radius: 10px;
  88. background: transparent;
  89. }
  90. .ant-image-preview-operations {
  91. background-color: rgba(0, 0, 0, 0.8) !important;
  92. }
  93. .sizeNo {
  94. font-family: 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif !important;
  95. }
  96. .hoverD {
  97. transition: all 0.3s;
  98. }
  99. .hoverD:hover {
  100. transform: scale(1.1);
  101. }