index.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  1. @import './variables.scss';
  2. @import './mixin.scss';
  3. @import './sidebar.scss';
  4. @import './btn.scss';
  5. body {
  6. height: 100%;
  7. -moz-osx-font-smoothing: grayscale;
  8. -webkit-font-smoothing: antialiased;
  9. text-rendering: optimizeLegibility;
  10. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  11. }
  12. ul,li {
  13. list-style: none;
  14. font-style: normal;
  15. margin: 0;
  16. padding: 0;
  17. }
  18. label {
  19. font-weight: 600;
  20. }
  21. html {
  22. height: 100%;
  23. box-sizing: border-box;
  24. overflow: hidden;
  25. color: #282828;
  26. }
  27. #app{
  28. height: 100%;
  29. }
  30. *,
  31. *:before,
  32. *:after {
  33. box-sizing: inherit;
  34. }
  35. .no-padding {
  36. padding: 0px !important;
  37. }
  38. .padding-content {
  39. padding: 4px 0;
  40. }
  41. a:focus,
  42. a:active {
  43. outline: none;
  44. }
  45. a,
  46. a:focus,
  47. a:hover {
  48. cursor: pointer;
  49. color: inherit;
  50. text-decoration: none;
  51. }
  52. div:focus{
  53. outline: none;
  54. }
  55. .fr {
  56. float: right;
  57. }
  58. .fl {
  59. float: left;
  60. }
  61. .pr-5 {
  62. padding-right: 5px;
  63. }
  64. .pl-5 {
  65. padding-left: 5px;
  66. }
  67. .block {
  68. display: block;
  69. }
  70. .pointer {
  71. cursor: pointer;
  72. }
  73. .inlineBlock {
  74. display: block;
  75. }
  76. .clearfix {
  77. &:after {
  78. visibility: hidden;
  79. display: block;
  80. font-size: 0;
  81. content: " ";
  82. clear: both;
  83. height: 0;
  84. }
  85. }
  86. code {
  87. background: #eef1f6;
  88. padding: 15px 16px;
  89. margin-bottom: 20px;
  90. display: block;
  91. line-height: 36px;
  92. font-size: 15px;
  93. font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  94. a {
  95. color: #337ab7;
  96. cursor: pointer;
  97. &:hover {
  98. color: rgb(32, 160, 255);
  99. }
  100. }
  101. }
  102. .warn-content{
  103. background: rgba(66,185,131,.1);
  104. border-radius: 2px;
  105. padding: 16px;
  106. padding: 1rem;
  107. line-height: 1.6rem;
  108. word-spacing: .05rem;
  109. a{
  110. color: #42b983;
  111. font-weight: 600;
  112. }
  113. }
  114. //main-container全局样式
  115. .app-container {
  116. padding: 20px;
  117. }
  118. .components-container {
  119. margin: 30px 50px;
  120. position: relative;
  121. }
  122. .pagination-container {
  123. margin-top: 30px;
  124. }
  125. .text-center {
  126. text-align: center
  127. }
  128. .sub-navbar {
  129. height: 50px;
  130. line-height: 50px;
  131. position: relative;
  132. width: 100%;
  133. text-align: right;
  134. padding-right: 20px;
  135. transition: 600ms ease position;
  136. background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  137. .subtitle {
  138. font-size: 20px;
  139. color: #fff;
  140. }
  141. &.draft {
  142. background: #d0d0d0;
  143. }
  144. &.deleted {
  145. background: #d0d0d0;
  146. }
  147. }
  148. .link-type,
  149. .link-type:focus {
  150. color: #337ab7;
  151. cursor: pointer;
  152. &:hover {
  153. color: rgb(32, 160, 255);
  154. }
  155. }
  156. .filter-container {
  157. padding-bottom: 10px;
  158. .filter-item {
  159. display: inline-block;
  160. vertical-align: middle;
  161. margin-bottom: 10px;
  162. }
  163. }
  164. //refine vue-multiselect plugin
  165. .multiselect {
  166. line-height: 16px;
  167. }
  168. .multiselect--active {
  169. z-index: 1000 !important;
  170. }
  171. /* 字体颜色 */
  172. .blue {
  173. color: #26A2FF!important;
  174. }
  175. .red {
  176. color: #F56C6C!important;
  177. }
  178. .yellow {
  179. color: #E6A23C!important;
  180. }
  181. .green {
  182. color: #67C23A!important;
  183. }
  184. .blue-box {
  185. color: #26A2FF!important;
  186. background-color: #ecf5ff!important;
  187. }
  188. .red-box {
  189. color: #F56C6C!important;
  190. background-color: #fef0f0!important;
  191. }
  192. .yellow-box {
  193. color: #E6A23C!important;
  194. background-color: #fdf6ec!important;
  195. }
  196. .green-box {
  197. color: #67C23A!important;
  198. background-color: #f0f9eb!important;
  199. }
  200. .fontColorZ {
  201. color: #303133!important;
  202. }
  203. .fontColorB {
  204. color: #777777 !important;
  205. }
  206. .fontColorF {
  207. color: #909399 !important;
  208. }
  209. .fontColorT {
  210. color: #C0C4CC!important;
  211. }
  212. /* 盒子模型 */
  213. .flex-box {
  214. display: -webkit-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */
  215. display: -moz-box; /* Firefox 17- */
  216. display: -webkit-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */
  217. display: -moz-flex; /* Firefox 18+ */
  218. display: -ms-flexbox; /* IE 10 */
  219. display: flex; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */
  220. }
  221. /*盒子模型,竖向自适应,垂直排列 */
  222. .flex-box-v {
  223. display: -webkit-box;
  224. display: -webkit-flex;
  225. display: flex;
  226. -webkit-box-orient: vertical;
  227. -webkit-flex-flow: column;
  228. flex-flow: column !important;
  229. }
  230. /* 水平等列排版(容器左右没缝隙,子元素左右两边自适应) */
  231. .flex-d-center {
  232. justify-content: space-between;
  233. -webkit-justify-content: space-between;
  234. }
  235. /* 水平等列排版(子元素两边有缝隙自己适应) */
  236. .flex-dv-center {
  237. justify-content: space-around;
  238. -webkit-justify-content: space-around;
  239. }
  240. /*通过一起使用 box-align 和 box-pack 属性,对 view 框的子元素进行居中,目前没有浏览器支持box-align 和 box-pack 属性,所以需要加上浏览器内核-webkit,-moz等的简写 */
  241. .flex-center-center {
  242. justify-content: center;
  243. -webkit-justify-content: center;
  244. -moz-justify-content: center;
  245. align-items: center;
  246. -webkit-align-items: center;
  247. -webkit-box-pack: center;
  248. -webkit-box-align: center;
  249. -moz-align-items: center;
  250. -moz-box-pack: center;
  251. -moz-box-align: center;
  252. }
  253. /*对view中的子元素进行居中,并且位于容器的中间位置水平居中 */
  254. .flex-v-zhu,
  255. .flex-h-zhu {
  256. justify-content: center;
  257. -webkit-justify-content: center;
  258. -webkit-box-pack: center;
  259. }
  260. // 垂直居中
  261. .flex-v-ce,
  262. .flex-h-ce {
  263. align-items: center;
  264. -webkit-align-items: center;
  265. -webkit-box-align: center;
  266. }
  267. /*flex-box与 flex-v-ce结合*/
  268. .flex-box-ce {
  269. display: -webkit-box;
  270. display: -moz-box;
  271. display: -ms-flexbox;
  272. display: -webkit-flex;
  273. display: flex;
  274. align-items: center;
  275. -webkit-align-items: center;
  276. -webkit-box-align: center;
  277. }
  278. /*让所有弹性盒模型对象的子元素都有相同的长度,且忽略它们内部的内容: */
  279. .flex-1 {
  280. -webkit-box-flex: 1;
  281. -moz-box-flex: 1;
  282. -webkit-flex: 1;
  283. -ms-flex: 1;
  284. flex: 1;
  285. }
  286. .flex-2 {
  287. -webkit-box-flex: 2;
  288. box-flex: 2;
  289. -moz-box-flex: 2;
  290. -webkit-flex: 2;
  291. -ms-flex: 2;
  292. flex: 2;
  293. }
  294. .flex-3 {
  295. -webkit-box-flex: 3;
  296. box-flex: 3;
  297. -moz-box-flex: 3;
  298. -webkit-flex: 3;
  299. -ms-flex: 3;
  300. flex: 3;
  301. }
  302. .flex-4 {
  303. -webkit-box-flex: 4;
  304. box-flex: 4;
  305. -moz-box-flex: 4;
  306. -webkit-flex: 4;
  307. -ms-flex: 4;
  308. flex: 4;
  309. }
  310. .flex-5 {
  311. -webkit-box-flex: 5;
  312. box-flex: 5;
  313. -moz-box-flex: 5;
  314. -webkit-flex: 5;
  315. -ms-flex: 5;
  316. flex: 5;
  317. }
  318. .flex-direction-row-reverse {
  319. flex-direction: row-reverse;
  320. -webkit-flex-direction: row-reverse;
  321. }
  322. /*超出部分用....表示的公用样式 */
  323. .font-flex-word {
  324. overflow: hidden;
  325. text-overflow: ellipsis;
  326. white-space: nowrap;
  327. }
  328. /* 内容超出部分自动换行 */
  329. .flex-d-wrap {
  330. flex-wrap: wrap;
  331. }
  332. /* 内容超出部分不换行 */
  333. .flex-no-wrap {
  334. flex-wrap: nowrap;
  335. }
  336. /* 从右边开始排列 */
  337. .flex-box-end {
  338. display: -webkit-box;
  339. display: -moz-box;
  340. display: -ms-flexbox;
  341. display: -webkit-flex;
  342. display: flex;
  343. justify-content: flex-end;
  344. }
  345. // 滚动条样式
  346. .scroll-bar::-webkit-scrollbar {
  347. width: 6px;
  348. height: 6px;
  349. }
  350. /*外层轨道。可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果*/
  351. .scroll-bar::-webkit-scrollbar-track {
  352. width: 6px;
  353. background-color: #fff0;
  354. -webkit-border-radius: 2em;
  355. -moz-border-radius: 2em;
  356. border-radius: 2em;
  357. }
  358. /*滚动条的设置*/
  359. .scroll-bar::-webkit-scrollbar-thumb {
  360. background-color: #fff0;
  361. background-clip: padding-box;
  362. -webkit-border-radius: 2em;
  363. -moz-border-radius: 2em;
  364. border-radius: 2em;
  365. }
  366. /*滚动条移上去的背景*/
  367. .scroll-bar:hover::-webkit-scrollbar-thumb {
  368. background-color: rgba(144, 147, 153, 0.3);
  369. height: 20px;
  370. }
  371. .el-date-editor .el-range-separator {
  372. padding: 0px 0px !important;
  373. }
  374. .drawer_details{
  375. & .details_title{
  376. font-size: 18px;
  377. padding: 20px;
  378. border-bottom:1px #efefef solid;
  379. }
  380. & .details_content{
  381. height: calc(100vh - 81px);
  382. padding: 20px;
  383. overflow: auto;
  384. &::-webkit-scrollbar {
  385. width:5px;
  386. height:5px;
  387. }
  388. &::-webkit-scrollbar-track {
  389. width: 6px;
  390. background-color:#fff0;
  391. -webkit-border-radius: 2em;
  392. -moz-border-radius: 2em;
  393. border-radius:2em;
  394. }
  395. &::-webkit-scrollbar-thumb {
  396. background-color:#fff0;
  397. background-clip:padding-box;
  398. min-height:28px;
  399. -webkit-border-radius: 2em;
  400. -moz-border-radius: 2em;
  401. border-radius:2em;
  402. }
  403. &:hover::-webkit-scrollbar-thumb{
  404. background-color:rgba(144,147,153,.3);
  405. }
  406. }
  407. }
  408. .nopoint_box {
  409. display: inline-block;
  410. text-align: center;
  411. width: 100%;
  412. margin-bottom: 10px;
  413. & .noimg{
  414. display: inline-block;
  415. width: 110px;
  416. height: 110px;
  417. margin: 22px auto 16px;
  418. background: url("static/images/nodata_default.png") no-repeat center;
  419. background-size: 99%;
  420. }
  421. & .noperson {
  422. display: inline-block;
  423. width: 110px;
  424. height: 110px;
  425. margin: 22px auto 16px;
  426. background: url("static/images/noperson_default.png") no-repeat center;
  427. background-size: 99%;
  428. }
  429. & .title {
  430. display: block;
  431. text-align: center;
  432. font-size: 12px !important;
  433. color: #909399 !important;
  434. padding: 0;
  435. }
  436. }
  437. //
  438. .testinfo_class .el-message__icon{
  439. font-size: 20px;
  440. color: red;
  441. }
  442. .el-tooltip__popper{
  443. max-width: 400px;
  444. }