common.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. view,page{
  2. box-sizing: border-box;
  3. }
  4. page{
  5. overflow: hidden;
  6. }
  7. page,flat-list,refresh-view,v-header,layout-shop-screen,tab,empty{
  8. width: 100%;
  9. height: 100%;
  10. }
  11. .flex,.flexRow,.jSpaceBetween,.flex-1,.flex-all-1,.flex-shrink-0,.row,.aCenter,.jCenter,.center,.jEnd,.aEnd{
  12. display: flex;
  13. flex-direction: column;
  14. }
  15. .use-flex-view {
  16. display: flex;
  17. flex-direction: column;
  18. box-sizing: border-box;
  19. font-family: PingFang SC;
  20. font-weight: 500;
  21. }
  22. .screen_all{
  23. width: 100%;
  24. height: 100%;
  25. }
  26. .flex-1{
  27. flex-grow: 1;
  28. }
  29. .flex-all-1{
  30. flex: 1;
  31. }
  32. .flex-shrink-0{
  33. flex-shrink: 0;
  34. }
  35. .row,.flexRow{
  36. flex-direction: row;
  37. }
  38. .aCenter,.center{
  39. align-items: center;
  40. }
  41. .jCenter,.center{
  42. justify-content: center;
  43. }
  44. .jEnd{
  45. justify-content: flex-end;
  46. }
  47. .aEnd{
  48. align-items: flex-end;
  49. }
  50. .jSpaceBetween{
  51. justify-content: space-between;
  52. }
  53. .relative{
  54. position: relative;
  55. }
  56. .absolute{
  57. position: absolute;
  58. }
  59. .fixed{
  60. position: fixed;
  61. }
  62. .wrap{
  63. flex-wrap: wrap;
  64. }
  65. .clear-button{
  66. background-color: transparent!important;
  67. border: none !important;
  68. height: auto !important;
  69. padding: 0 !important;
  70. }
  71. .clear-button:after{
  72. display: none;
  73. }
  74. .line-1{
  75. overflow: hidden;
  76. white-space: nowrap;
  77. text-overflow: ellipsis;
  78. display: block;
  79. }
  80. .line-2 {
  81. display: -webkit-box;
  82. display: -moz-box;
  83. white-space: pre-wrap;
  84. word-wrap: break-word;
  85. overflow: hidden;
  86. text-overflow: ellipsis;
  87. -webkit-box-orient: vertical;
  88. -webkit-line-clamp:2; /*显示行数*/
  89. }
  90. .skeleton-background{
  91. background-color: #f5f5f5;
  92. }
  93. .overflow{
  94. overflow: hidden;
  95. }