common.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. ul li{
  28. list-style: none;
  29. }
  30. .flex{
  31. display: flex;
  32. }
  33. .bg-white{
  34. background-color: #fff;
  35. }
  36. // 设置table 表头样式
  37. .t-table thead td, .t-table th{
  38. color: #333 !important;
  39. font-weight: bold !important;
  40. }
  41. /* 单行省略 */
  42. .text-ellipsis--l1 {
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. white-space: nowrap;
  46. }
  47. /* 两行省略*/
  48. .text-ellipsis--l2 {
  49. display: -webkit-box;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. -webkit-line-clamp: 2;
  53. line-break: anywhere;
  54. -webkit-box-orient: vertical;
  55. }
  56. /* 三行省略*/
  57. .text-ellipsis--l3 {
  58. display: -webkit-box;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. -webkit-line-clamp: 3;
  62. line-break: anywhere;
  63. -webkit-box-orient: vertical;
  64. }