theme.editor.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. // 资源图片目录地址(必要)
  2. $img-base-path: '~@/global_components/assets/img/';
  3. @import '~@/global_components/assets/scss/theme-editor.scss';
  4. :root {
  5. --editor-main-color: #0076f6;
  6. --editor-font-color: #999;
  7. --editor-toolbox-top: 0;
  8. --editor-toolbox-left: 0;
  9. --editor-toolbox-width: 240px;
  10. --editor-toolbox-padding: 0 10px;
  11. --editor-menu-active: rgba(0, 200, 175, 0.16);
  12. --colors-primary-base: var(--editor-main-color);
  13. --colors-primary-click: #005046;
  14. }
  15. ::-webkit-scrollbar {
  16. width: 4px;
  17. height: 1px;
  18. }
  19. ::-webkit-scrollbar-thumb {
  20. border-radius: 4px;
  21. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  22. background: #ccc;
  23. }
  24. ::-webkit-scrollbar-thumb:hover {
  25. background: #999;
  26. }
  27. ::-webkit-scrollbar-track {
  28. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  29. border-radius: 4px;
  30. background: #000000;
  31. }
  32. ul,
  33. li {
  34. margin: 0;
  35. padding: 0;
  36. list-style: none;
  37. }
  38. html {
  39. line-height: 1.15;
  40. -webkit-text-size-adjust: 100%;
  41. }
  42. html,
  43. body {
  44. width: 100%;
  45. height: 100%;
  46. margin: 0;
  47. font-size: 14px;
  48. overflow: hidden;
  49. user-select: none;
  50. }
  51. #app {
  52. width: 100%;
  53. height: 100%;
  54. overflow: hidden;
  55. color: #fff;
  56. background-color: #232323;
  57. }
  58. .disable * {
  59. opacity: 0.85;
  60. pointer-events: none;
  61. }
  62. .enable {
  63. opacity: 1 !important;
  64. pointer-events: all !important;
  65. * {
  66. opacity: 1 !important;
  67. pointer-events: all !important;
  68. }
  69. }
  70. .hidden {
  71. visibility: hidden !important;
  72. pointer-events: none !important;
  73. z-index: -1;
  74. }
  75. .scene {
  76. position: absolute;
  77. left: 0;
  78. top: 0;
  79. width: 100%;
  80. height: 100%;
  81. overflow: hidden;
  82. z-index: 1;
  83. }
  84. .slide-right-enter-active,
  85. .slide-right-leave-active {
  86. will-change: transform;
  87. transition: all 0.2s ease-in-out;
  88. }
  89. .slide-right-enter-from {
  90. opacity: 0;
  91. transform: translate3d(100%, 0, 0);
  92. }
  93. .slide-right-enter {
  94. opacity: 1;
  95. transform: translate3d(-100%, 0, 0);
  96. }
  97. .slide-right-leave-active {
  98. opacity: 0;
  99. transform: translate3d(100%, 0, 0);
  100. }
  101. // .slide-right-enter-active,
  102. // .slide-right-leave-active,
  103. // .slide-left-enter-active,
  104. // .slide-left-leave-active {
  105. // will-change: transform;
  106. // transition: all 0.35s ease-in-out;
  107. // position: absolute;
  108. // }
  109. .fade-enter,
  110. .fade-leave-to {
  111. opacity: 0;
  112. }
  113. .fade-enter-to,
  114. .fade-leave {
  115. opacity: 1;
  116. }
  117. .fade-enter-active,
  118. .fade-leave-active {
  119. transition: all 3s;
  120. }
  121. .slide-right-enter {
  122. opacity: 1;
  123. transform: translate3d(-100%, 0, 0);
  124. }
  125. .slide-right-leave-active {
  126. opacity: 1;
  127. transform: translate3d(100%, 0, 0);
  128. }
  129. .slide-left-enter {
  130. opacity: 1;
  131. transform: translate3d(-100%, 0, 0);
  132. }
  133. .slide-left-leave-active {
  134. opacity: 1;
  135. transform: translate3d(100%, 0, 0);
  136. }
  137. .ui-view-layout {
  138. width: 100%;
  139. height: 100%;
  140. visibility: hidden;
  141. &.show {
  142. visibility: visible;
  143. }
  144. }
  145. input[type="password"]::-ms-reveal{
  146. display:none
  147. }
  148. .ui-editor-toolbox {
  149. .edit-list {
  150. li {
  151. margin-top: 20px;
  152. color: var(--editor-font-color);
  153. border-bottom: solid 1px rgba(255, 255, 255, 0.16);
  154. &:last-child {
  155. border-bottom: none;
  156. }
  157. > div {
  158. margin-bottom: 14px;
  159. }
  160. label {
  161. color: #fff;
  162. i {
  163. cursor: pointer;
  164. }
  165. }
  166. .title {
  167. display: flex;
  168. justify-content: space-between;
  169. align-items: center;
  170. span {
  171. font-weight: bold;
  172. font-size: 16px;
  173. }
  174. }
  175. .between {
  176. display: flex;
  177. align-items: center;
  178. justify-content: space-between;
  179. }
  180. }
  181. }
  182. }
  183. .ql-editor {
  184. padding: 0;
  185. }
  186. a {
  187. color: #ED5D18;
  188. }
  189. [xui_min_map] {
  190. top: 20px !important;
  191. right: 20px !important;
  192. }
  193. .slider-box {
  194. position: fixed;
  195. top: 0;
  196. right: 0;
  197. width: var(--editor-toolbox-width);
  198. height: 100%;
  199. background: rgba(20, 20, 20, 1);
  200. z-index: 1;
  201. .slider-content {
  202. color: rgba(255, 255, 255, 0.6);
  203. .content-item {
  204. padding: 20px 10px;
  205. box-sizing: border-box;
  206. border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  207. box-sizing: border-box;
  208. &:last-of-type {
  209. border-bottom: 1px solid transparent;
  210. }
  211. }
  212. .item-title {
  213. font-size: 16px;
  214. font-weight: bold;
  215. color: #999;
  216. margin-bottom: 14px;
  217. display: flex;
  218. align-items: center;
  219. justify-content: space-between;
  220. }
  221. }
  222. .slider-title {
  223. height: 64px;
  224. border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  225. color: #999;
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. padding: 20px 10px;
  230. box-sizing: border-box;
  231. span {
  232. font-size: 18px;
  233. color: #999;
  234. font-weight: bold;
  235. }
  236. i {
  237. cursor: pointer;
  238. }
  239. }
  240. }
  241. [is-mobile] {
  242. [xui_min_map] {
  243. width: 100px;
  244. height: 100px;
  245. top: 2.3rem !important;
  246. right: 15px !important;
  247. background-color: rgba(0, 0, 0, 0.2) !important;
  248. border-radius: 4px 4px 0 0 !important;
  249. border-top-left-radius: 0 !important;
  250. transition: all .3s;
  251. &.collapse{
  252. transform: translateX(calc(100% + 15px));
  253. .button-switch{
  254. >.iconfont{
  255. font-size: 12px;
  256. transform: rotate(180deg) scale(.7);
  257. }
  258. }
  259. }
  260. .button-switch {
  261. position: absolute;
  262. top: 0;
  263. left: -16px;
  264. background-color: rgba(0, 0, 0, 0.2);
  265. height: 32px;
  266. width: 16px;
  267. border-radius: 32px 0 0 32px;
  268. display: flex;
  269. align-items: center;
  270. justify-content: center;
  271. transition: rotate .3s;
  272. >.iconfont{
  273. font-size: 12px;
  274. transform: scale(.7);
  275. }
  276. }
  277. .change{
  278. position: absolute;
  279. bottom: -29px;
  280. left: 0;
  281. height: 28px;
  282. background-color: rgba(0, 0, 0, 0.2);
  283. width: 100%;
  284. text-align: center;
  285. margin: 0;
  286. display: flex;
  287. align-items: center;
  288. justify-content: center;
  289. border-radius: 0 0 4px 4px!important;
  290. >i{
  291. margin-right: 4px;
  292. }
  293. }
  294. }
  295. .ui-dialog{
  296. .ui-dialog__box{
  297. min-width: 100px;
  298. width: 90%;
  299. }
  300. }
  301. }
  302. .v-enter,
  303. .v-leave-to {
  304. opacity: 0;
  305. transform: translateY(100px);
  306. }
  307. .v-enter-active,
  308. .v-leave-active {
  309. transition: all 0.25s ease;
  310. }