public.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. html,
  2. body {
  3. width : 100%;
  4. height : 100%;
  5. margin : 0;
  6. overflow : hidden;
  7. --padding-top: 0px;
  8. }
  9. a {
  10. color: var(--color-main-normal);
  11. }
  12. #app {
  13. width : 100%;
  14. height : 100%;
  15. position: absolute;
  16. overflow: hidden;
  17. left : 0;
  18. top : 0;
  19. }
  20. .clear-float::after {
  21. content: "";
  22. display: block;
  23. clear : both;
  24. }
  25. .require {
  26. position: relative;
  27. &::before {
  28. content : "*";
  29. position : absolute;
  30. top : 50%;
  31. transform : translateY(-50%);
  32. right : 100%;
  33. margin-right: 4px;
  34. color : #fa3f48;
  35. line-height : 1.5em;
  36. }
  37. }
  38. .more-menu {
  39. position : relative;
  40. // &::after {
  41. // content: '';
  42. // box-sizing: content-box;
  43. // font-size: 5px;
  44. // position: absolute;
  45. // bottom: 0;
  46. // right: 0;
  47. // width: 0;
  48. // height: 0;
  49. // border-bottom: 1em solid var(--colors-normal-base);
  50. // border-left: 1em solid transparent;
  51. // }
  52. }
  53. canvas {
  54. outline: none;
  55. }
  56. .ui-editor-toolbox {
  57. top : calc(var(--editor-head-height) + var(--header-top));
  58. transition: inset ease 0.3s;
  59. }
  60. .ui-editor-menu .ui-editor-menu-item {
  61. width: auto;
  62. }
  63. input::-ms-clear,
  64. input::-ms-reveal {
  65. display: none;
  66. }
  67. /*定义滚动条高宽及背景
  68. 高宽分别对应横竖滚动条的尺寸*/
  69. ::-webkit-scrollbar {
  70. width : 6px;
  71. height : 6px;
  72. background-color: rgba(0, 0, 0, 0);
  73. }
  74. /*定义滚动条轨道
  75. 内阴影+圆角*/
  76. ::-webkit-scrollbar-track {
  77. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  78. border-radius : 3px;
  79. background-color : rgba(255, 255, 255, 0);
  80. }
  81. /*定义滑块
  82. 内阴影+圆角*/
  83. ::-webkit-scrollbar-thumb {
  84. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  85. border-radius : 3px;
  86. background-color : rgba(255, 255, 255, 0.5);
  87. }
  88. input:-webkit-autofill {
  89. /*自动填充文字颜色*/
  90. -webkit-text-fill-color: #fff !important;
  91. /*自动填充背景颜色*/
  92. -webkit-box-shadow : 0 0 0px 1000px #313131 inset;
  93. border-color : var(--colors-primary-base) !important;
  94. // -webkit-box-shadow: 0 0 0px 1000px #313131 inset !important;//关于解决输入框背景颜色
  95. // -webkit-text-fill-color: rgba(255,255,255,1)!important;//关于接输入框文字颜色
  96. // font-size: 14px !important;
  97. // border-color: 1px solid rgba(255, 255, 255, 0.2) !important;
  98. }
  99. .vc-switch {
  100. z-index: 99999999 !important;
  101. }
  102. code,
  103. kbd,
  104. pre,
  105. samp {
  106. font-family: inherit;
  107. }
  108. @font-face {
  109. font-family: "sr";
  110. src : url("./font/SimSun\ Regular.ttf") format("truetype");
  111. }
  112. @font-face {
  113. font-family: "st";
  114. src : url("./font/simsun.ttc") format("truetype");
  115. }