common.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. html,body,#app{
  2. font-size: 14px;
  3. color: #333;
  4. background-color: #F2F6FA;
  5. height: 100%;
  6. }
  7. div,ul,li{
  8. box-sizing: border-box;
  9. }
  10. input{
  11. display: inline-block;
  12. border: none;
  13. box-sizing: border-box;
  14. }
  15. P{
  16. margin: 0;
  17. padding: 0;
  18. }
  19. img {
  20. object-fit: contain;
  21. image-rendering: -moz-crisp-edges;
  22. image-rendering: -o-crisp-edges;
  23. image-rendering: -webkit-optimize-contrast;
  24. image-rendering: crisp-edges;
  25. -ms-interpolation-mode: nearest-neighbor;
  26. }
  27. .flex{
  28. display: flex;
  29. }
  30. .bg-white{
  31. background-color: #fff;
  32. }
  33. // 设置table 表头样式
  34. .t-table thead td, .t-table th{
  35. color: #333 !important;
  36. font-weight: bold !important;
  37. }
  38. /* 单行省略 */
  39. .text-ellipsis--l1 {
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. white-space: nowrap;
  43. }
  44. /* 两行省略*/
  45. .text-ellipsis--l2 {
  46. display: -webkit-box;
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. -webkit-line-clamp: 2;
  50. line-break: anywhere;
  51. -webkit-box-orient: vertical;
  52. }
  53. /* 三行省略*/
  54. .text-ellipsis--l3 {
  55. display: -webkit-box;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. -webkit-line-clamp: 3;
  59. line-break: anywhere;
  60. -webkit-box-orient: vertical;
  61. }