style.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // 资源图片目录地址(必要)
  2. $img-base-path: "bill/assets/img/";
  3. @import "bill/assets/scss/theme-editor.scss";
  4. html,
  5. body {
  6. width: 100%;
  7. height: 100%;
  8. margin: 0;
  9. overflow: hidden;
  10. }
  11. :root body {
  12. --hide-header-top: calc(-1 * var(--editor-head-height));
  13. --show-header-top: 0px;
  14. // mini-map size
  15. --simle-map-width: 400px;
  16. --simle-map-height: 200px;
  17. --scale-simle-map-width: 600px;
  18. --scale-simle-map-height: 300px;
  19. // 搜索框
  20. --global-search-width: 340px;
  21. --taggle-btn-width: 30px;
  22. --body-right-margin: 20px;
  23. --left-pano-width: 340px;
  24. }
  25. h1, h2, h3, h4, h5, h6 {
  26. color: inherit;
  27. }
  28. a {
  29. color: var(--color-main-normal);
  30. cursor: pointer;
  31. }
  32. p {
  33. margin: 0;
  34. }
  35. #app {
  36. width: 100%;
  37. height: 100%;
  38. }
  39. .clear-float::after {
  40. content: '';
  41. display: block;
  42. clear: both;
  43. }
  44. .require {
  45. position: relative;
  46. &::before {
  47. content: '*';
  48. position: absolute;
  49. top: 50%;
  50. transform: translateY(-50%);
  51. right: 100%;
  52. margin-right: 4px;
  53. color: #FA3F48;
  54. line-height: 1.5em;
  55. }
  56. }
  57. .more-menu {
  58. position: relative;
  59. &::after {
  60. content: '';
  61. box-sizing: content-box;
  62. font-size: 5px;
  63. position: absolute;
  64. bottom: 0;
  65. right: 0;
  66. width: 0;
  67. height: 0;
  68. border-bottom: 1em solid var(--colors-normal-base);
  69. border-left: 1em solid transparent;
  70. }
  71. }
  72. canvas {
  73. outline: none;
  74. }
  75. .ui-editor-toolbox {
  76. top: calc(var(--editor-head-height) + var(--header-top));
  77. transition: inset ease 0.3s;
  78. }
  79. .ui-editor-menu .ui-editor-menu-item {
  80. width: auto;
  81. }
  82. input::-ms-clear,input::-ms-reveal {
  83. display: none;
  84. }
  85. /*定义滚动条高宽及背景
  86. 高宽分别对应横竖滚动条的尺寸*/
  87. ::-webkit-scrollbar
  88. {
  89. width: 6px;
  90. height: 6px;
  91. background-color:rgba(0,0,0,0);
  92. }
  93. /*定义滚动条轨道
  94. 内阴影+圆角*/
  95. ::-webkit-scrollbar-track
  96. {
  97. -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
  98. border-radius: 3px;
  99. background-color:rgba(255, 255, 255, 0);
  100. }
  101. /*定义滑块
  102. 内阴影+圆角*/
  103. ::-webkit-scrollbar-thumb
  104. {
  105. -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,0.3);
  106. border-radius: 3px;
  107. background-color:rgba(255, 255, 255, 0.5);
  108. }
  109. input:-webkit-autofill {
  110. /*自动填充文字颜色*/
  111. -webkit-text-fill-color: #fff !important;
  112. /*自动填充背景颜色*/
  113. -webkit-box-shadow: 0 0 0px 1000px #313131 inset;
  114. border-color: var(--colors-primary-base) !important;
  115. // -webkit-box-shadow: 0 0 0px 1000px #313131 inset !important;//关于解决输入框背景颜色
  116. // -webkit-text-fill-color: rgba(255,255,255,1)!important;//关于接输入框文字颜色
  117. // font-size: 14px !important;
  118. // border-color: 1px solid rgba(255, 255, 255, 0.2) !important;
  119. }
  120. .vc-switch {
  121. z-index: 99999999 !important;
  122. }
  123. [contenteditable=true]:empty:before{
  124. content:attr(placeholder);
  125. color:grey;
  126. // font-style:italic;
  127. }