base.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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-y: overlay;
  35. }
  36. /* 文本域取消下拉 */
  37. textarea {
  38. resize: none !important;
  39. }
  40. /* 主题色 */
  41. :root {
  42. --themeColor: #9f1927;
  43. }
  44. a {
  45. color: var(--themeColor);
  46. }
  47. [hidden] {
  48. display: none !important;
  49. }
  50. /* 兼容360浏览器的下拉框 */
  51. .ant-select-selector {
  52. position: relative;
  53. background-color: #ffffff;
  54. border: 1px solid #d9d9d9;
  55. transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  56. }
  57. #root {
  58. width: 100vw;
  59. height: 100vh;
  60. min-width: 1600px;
  61. min-height: 900px;
  62. overflow-y: auto;
  63. /* 按钮的危险颜色 */
  64. /* antd分页器样式 */
  65. /* antd图片预览组件 */
  66. }
  67. #root .ant-btn-text.ant-btn-dangerous {
  68. color: var(--themeColor);
  69. }
  70. #root .ant-image {
  71. display: none !important;
  72. }
  73. /* 找不到页面 */
  74. .noFindPage {
  75. opacity: 0;
  76. transition: opacity 0.5s;
  77. }