index.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import url(./variables.less);
  2. @import url(./mixins.less);
  3. html,body{
  4. font-family: Avenir, Helvetica, Arial, sans-serif;
  5. -webkit-font-smoothing: antialiased;
  6. -moz-osx-font-smoothing: grayscale;
  7. height: 100%;
  8. overflow-y: hidden;
  9. -webkit-overflow-scrolling: touch;
  10. color: @text-common-color;
  11. background-color: @bg-gary;
  12. }
  13. #app {
  14. height: 100%;
  15. overflow-y: auto;
  16. -webkit-overflow-scrolling: touch;
  17. position: relative;
  18. }
  19. // reset base.
  20. .container {
  21. padding: 0 6px;
  22. }
  23. .p-h-12 {
  24. padding-left: 12px;
  25. padding-right: 12px;
  26. }
  27. .btnbox {
  28. width: 100%;
  29. font-size: @text-common-size;
  30. line-height: 40px;
  31. text-align: center;
  32. border-radius: 9px;
  33. background-color: @main-color;
  34. color: @white;
  35. }
  36. .fajc () {
  37. &-aic {
  38. align-items: center;
  39. }
  40. &-acc {
  41. align-content: center;
  42. }
  43. &-jcsp {
  44. justify-content: space-between;
  45. }
  46. &-jcsa {
  47. justify-content: space-around;
  48. }
  49. &-jic {
  50. justify-items: center;
  51. }
  52. &-jcc {
  53. justify-content: center;
  54. }
  55. }
  56. .flex {
  57. display: flex;
  58. &-row {
  59. flex-direction: row;
  60. .fajc()
  61. }
  62. &-col {
  63. flex-direction: column;
  64. .fajc()
  65. }
  66. &-0shrink {
  67. flex-shrink: 0;
  68. }
  69. }
  70. // 单行省略号
  71. .ellipsis {
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. white-space: nowrap;
  75. }
  76. // 双行省略号
  77. .ellipsis-2rows {
  78. text-overflow: -o-ellipsis-lastline;
  79. .ellipsis;
  80. display: -webkit-box;
  81. -webkit-line-clamp: 2;
  82. white-space: initial;
  83. line-clamp: 2;
  84. -webkit-box-orient: vertical;
  85. }
  86. .clearboth {
  87. &::after {
  88. content: "";
  89. display: block;
  90. clear: both;
  91. }
  92. }
  93. .btn-container {
  94. margin-top: 10px;
  95. padding: 10px 14px 40px;
  96. box-sizing: border-box;
  97. background-color: #FFFFFF;
  98. .btn-span {
  99. text-align: center;
  100. height: 41px;
  101. background: #3290C4;
  102. border-radius: 11px;
  103. font-size: 16px;
  104. font-weight: 400;
  105. color: #FFFFFF;
  106. line-height: 41px;
  107. }
  108. }
  109. .m {
  110. &-t {
  111. &-10 {
  112. margin-top: 10px;
  113. }
  114. }
  115. }