index.scss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. @import "./transition.scss";
  2. @import "./element-ui.scss";
  3. // @import './element-variables.scss';
  4. @import "./button.scss";
  5. @import "./table.scss";
  6. @import "./border.scss";
  7. @import "./dropdown.scss";
  8. // 指令
  9. @import "../directives/empty/empty.scss";
  10. @import "../assets/iconfont/iconfont.css"; // 旧图标
  11. @import "./iconfonts/index.css";
  12. @import "../directives/style.scss";
  13. // 零碎样式
  14. @import "./org-tree.scss";
  15. @import "./premium.scss";
  16. body {
  17. height: 100%;
  18. // font-family: 'MicrosoftYaHei', 'Avenir', Helvetica, Arial, sans-serif;
  19. font-family: $--font-family;
  20. font-size: 14px;
  21. font-weight: $--font-weight-medium;
  22. color: $--color-black;
  23. background: white;
  24. -moz-osx-font-smoothing: grayscale;
  25. -webkit-font-smoothing: antialiased;
  26. text-rendering: optimizelegibility;
  27. }
  28. button,
  29. input,
  30. optgroup,
  31. select,
  32. textarea {
  33. font-family: $--font-family;
  34. }
  35. /* 滚动条样式 */
  36. /* 滚动条宽度 */
  37. ::-webkit-scrollbar {
  38. width: 10px;
  39. height: 10px;
  40. background-color: $--color-n20;
  41. }
  42. /* 滚动条的滑块 */
  43. ::-webkit-scrollbar-thumb {
  44. background-color: $--color-n50;
  45. }
  46. ::-webkit-scrollbar-corner {
  47. background-color: $--color-n20;
  48. }
  49. html {
  50. box-sizing: border-box;
  51. height: 100%;
  52. }
  53. #app {
  54. height: 100%;
  55. }
  56. a,
  57. a:focus,
  58. a:hover {
  59. color: inherit;
  60. text-decoration: none;
  61. cursor: pointer;
  62. outline: none;
  63. }
  64. div:focus {
  65. outline: none;
  66. }
  67. a:focus,
  68. a:active {
  69. outline: none;
  70. }
  71. .clearfix {
  72. &::after {
  73. display: block;
  74. height: 0;
  75. clear: both;
  76. font-size: 0;
  77. visibility: hidden;
  78. content: " ";
  79. }
  80. }
  81. tr,
  82. th,
  83. td {
  84. font-weight: normal;
  85. }
  86. li {
  87. list-style: none;
  88. }
  89. * {
  90. box-sizing: border-box;
  91. padding: 0;
  92. margin: 0;
  93. }
  94. /* 右浮动 */
  95. .rt {
  96. float: right;
  97. margin-right: 30px;
  98. }
  99. /* 左浮动 */
  100. .lt {
  101. float: left;
  102. margin-left: 30px;
  103. }
  104. input:invalid {
  105. box-shadow: none;
  106. }
  107. // 通过 popper-class 去除默认padding
  108. .no-padding-popover {
  109. padding: 0;
  110. }
  111. .no-padding-dialog {
  112. .el-dialog__body {
  113. padding: 0;
  114. }
  115. }
  116. // 去除百度地图 图标
  117. .BMap_cpyCtrl {
  118. display: none;
  119. }
  120. .anchorBL {
  121. display: none;
  122. }
  123. /** 懒加载样式 */
  124. img[lazy="loading"] {
  125. display: inline-block;
  126. padding: 8px;
  127. // width: 20px !important;
  128. // height: 20px !important;
  129. margin: 0 auto;
  130. }
  131. div[lazy="loading"] {
  132. display: inline-block;
  133. padding: 8px;
  134. // width: 20px !important;
  135. // height: 20px !important;
  136. margin: 0 auto;
  137. }
  138. /** 拖拽时候的样式 */
  139. .draggingStyle {
  140. cursor: pointer;
  141. }
  142. .router-view {
  143. position: relative;
  144. // height: 100%;
  145. flex: 1;
  146. width: 100%;
  147. overflow: hidden;
  148. }
  149. .project-settings-list-top {
  150. top: 110px !important;
  151. }
  152. .task-board-rechristen-popover {
  153. padding: 0;
  154. margin-top: -40px !important;
  155. }
  156. .tooltip-change-border {
  157. padding: 5px 10px !important;
  158. border-color: #eee !important;
  159. box-shadow: 0 0 12px 1px #eee;
  160. }
  161. .tooltip-change-border .popper__arrow {
  162. border-color: transparent !important;
  163. }
  164. .task-tooltip {
  165. z-index: 10 !important;
  166. }
  167. // 关闭message 内容样式
  168. .el-close-message {
  169. p {
  170. max-height: 60px;
  171. margin-right: 13px;
  172. overflow-y: scroll;
  173. line-height: 20px;
  174. word-wrap: break-word;
  175. white-space: pre-wrap;
  176. }
  177. }
  178. // 去除焦点时的蓝色边框
  179. * :focus {
  180. outline: none;
  181. }
  182. // // Pagination 分页
  183. // .el-pagination {
  184. // * {
  185. // font-size: 12px !important;
  186. // }
  187. // .number.active {
  188. // list-style-position: inside;
  189. // border: 1px solid $--color-primary;
  190. // color: $--color-primary !important;
  191. // background-color: #f4f4f5 !important;
  192. // }
  193. // }
  194. // 可访问
  195. .can-visit,
  196. .can-visit--underline {
  197. color: $--color-primary !important;
  198. cursor: pointer;
  199. }
  200. .can-visit--bold {
  201. font-weight: bold;
  202. }
  203. .can-visit--underline:hover {
  204. text-decoration: underline;
  205. }
  206. .can-visit-default {
  207. cursor: pointer;
  208. }
  209. .can-visit-default:hover {
  210. color: $--color-primary !important;
  211. }
  212. // 滚动
  213. .scroll-bottom-tips {
  214. color: $--color-text-secondary;
  215. text-align: center;
  216. }
  217. // 金额展示
  218. .xr-money {
  219. font-weight: 600;
  220. color: $--color-black;
  221. }
  222. .xr-money.green {
  223. color: $--color-success !important;
  224. }
  225. .xr-money.red {
  226. color: $--color-danger !important;
  227. }
  228. // 禁止交互
  229. .xr-disabled {
  230. pointer-events: none;
  231. cursor: not-allowed;
  232. }
  233. // 文本
  234. .text-one-line {
  235. // text-overflow: ellipsis;
  236. // display: -webkit-box;
  237. // -webkit-line-clamp: 1;
  238. // -webkit-box-orient: vertical;
  239. // overflow: hidden;
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. white-space: nowrap;
  243. }
  244. .text-one-ellipsis {
  245. display: box;
  246. overflow: hidden;
  247. text-overflow: ellipsis;
  248. -webkit-line-clamp: 1;
  249. -webkit-box-orient: vertical;
  250. }
  251. // 项目下的侧滑框
  252. .project-drawer {
  253. user-select: none;
  254. .el-drawer__header {
  255. display: none;
  256. }
  257. .el-drawer__body {
  258. padding: 15px;
  259. overflow: auto;
  260. }
  261. }
  262. #project-container {
  263. .el-dialog__wrapper,
  264. .v-modal {
  265. position: absolute;
  266. }
  267. }
  268. // 帮助提示符
  269. .wk-help-tips {
  270. font-size: 16px;
  271. color: $--color-n500;
  272. cursor: pointer;
  273. &[data-type][data-id] {
  274. margin-left: 4px;
  275. }
  276. }
  277. // 系统帮助下的图标默认和文字高度一致
  278. .wk-icon-fill-help[data-type] {
  279. font-size: $--font-size-base;
  280. }
  281. .wk-help-tips:hover {
  282. color: $--color-n800;
  283. }
  284. // form 表单样式
  285. .el-form-item.is-error {
  286. .xh-form-border {
  287. border-color: #f56c6c !important;
  288. }
  289. }
  290. // flex el-form 同 wk-form.scss is-two-columns
  291. .el-form--flex.el-form {
  292. display: flex;
  293. flex-wrap: wrap;
  294. .el-form-item.is-required .el-form-item__label::before {
  295. margin-right: 0;
  296. }
  297. .el-form-item {
  298. flex: 0 0 50%;
  299. flex-shrink: 0;
  300. padding: 0 12px;
  301. margin-bottom: 16px;
  302. .el-form-item__label {
  303. padding-bottom: 4px;
  304. line-height: 1.5;
  305. word-break: break-all;
  306. word-wrap: break-word;
  307. }
  308. .el-form-item__error {
  309. position: relative;
  310. }
  311. }
  312. }
  313. // 时间区间选择快捷键
  314. .el-picker-panel {
  315. .el-picker-panel__sidebar {
  316. padding-bottom: 40px;
  317. }
  318. }
  319. .el-header {
  320. height: 56px !important;
  321. }
  322. // 表的线风格设置菜单
  323. .wk-table-style-dropdown-menu {
  324. .el-switch {
  325. margin-right: 5px;
  326. .el-switch__mark {
  327. margin-right: 0;
  328. }
  329. }
  330. }
  331. // 是金额列
  332. .is-floatnumber-column {
  333. // text-align: right;
  334. color: $--color-y400;
  335. }
  336. // 图标
  337. .el-icon-warning,
  338. .el-icon-remove,
  339. .el-icon-circle-plus {
  340. font-weight: normal !important;
  341. }
  342. // 详情宽度
  343. .slide-fixed-view {
  344. position: fixed;
  345. top: $--detail-view-top;
  346. right: 0;
  347. bottom: 0;
  348. width: $--detail-width-base;
  349. min-width: 926px;
  350. }
  351. // 固定间隔
  352. .margin-left-interval {
  353. margin-left: 8px;
  354. }
  355. .margin-right-interval {
  356. margin-right: 8px;
  357. }