You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 lines
2.9 KiB

3 years ago
3 years ago
  1. /* #ifndef APP-PLUS-NVUE */
  2. view,
  3. scroll-view,
  4. swiper,
  5. swiper-item,
  6. cover-view,
  7. cover-image,
  8. icon,
  9. text,
  10. rich-text,
  11. progress,
  12. button,
  13. checkbox,
  14. form,
  15. input,
  16. label,
  17. radio,
  18. slider,
  19. switch,
  20. textarea,
  21. navigator,
  22. audio,
  23. camera,
  24. image,
  25. video {
  26. box-sizing: border-box;
  27. }
  28. image{
  29. display: block;
  30. }
  31. text{
  32. line-height: 1;
  33. /* font-family: Helvetica Neue, Helvetica, sans-serif; */
  34. }
  35. button{
  36. padding: 0;
  37. margin: 0;
  38. background-color: rgba(0,0,0,0) !important;
  39. }
  40. button:after{
  41. border: 0;
  42. }
  43. .bottom-fill{
  44. height: constant(safe-area-inset-bottom);
  45. height: env(safe-area-inset-bottom);
  46. }
  47. .fix-bot{
  48. box-sizing: content-box;
  49. padding-bottom: constant(safe-area-inset-bottom);
  50. padding-bottom: env(safe-area-inset-bottom);
  51. }
  52. /* 边框 */
  53. .round{
  54. position: relative;
  55. border-radius: 100rpx;
  56. }
  57. .round:after{
  58. content: '';
  59. position: absolute;
  60. left: 0;
  61. top: 0;
  62. width: 200%;
  63. height: 200%;
  64. transform: scale(.5) translate(-50%,-50%);
  65. border: 1px solid #878787;
  66. border-radius: 100rpx;
  67. box-sizing: border-box;
  68. }
  69. .b-b:after{
  70. position: absolute;
  71. z-index: 3;
  72. left: 0;
  73. top: auto;
  74. bottom: 0;
  75. right: 0;
  76. height: 0;
  77. content: '';
  78. transform: scaleY(.5);
  79. border-bottom: 1px solid #e0e0e0;
  80. }
  81. .b-t:before{
  82. position: absolute;
  83. z-index: 3;
  84. left: 0;
  85. top: 0;
  86. right: 0;
  87. height: 0;
  88. content: '';
  89. transform: scaleY(.5);
  90. border-bottom: 1px solid #e5e5e5;
  91. }
  92. .b-r:after{
  93. position: absolute;
  94. z-index: 3;
  95. right: 0;
  96. top: 0;
  97. bottom: 0;
  98. width: 0;
  99. content: '';
  100. transform: scaleX(.5);
  101. border-right: 1px solid #e5e5e5;
  102. }
  103. .b-l:before{
  104. position: absolute;
  105. z-index: 3;
  106. left: 0;
  107. top: 0;
  108. bottom: 0;
  109. width: 0;
  110. content: '';
  111. transform: scaleX(.5);
  112. border-left: 1px solid #e5e5e5;
  113. }
  114. .b-b, .b-t, .b-l, .b-r{
  115. position: relative;
  116. }
  117. /* 点击态 */
  118. .hover-gray {
  119. background: #fafafa !important;
  120. }
  121. .hover-dark {
  122. background: #f0f0f0 !important;
  123. }
  124. .hover-opacity {
  125. opacity: 0.7;
  126. }
  127. /* #endif */
  128. .clamp {
  129. /* #ifdef APP-PLUS-NVUE */
  130. lines: 1;
  131. /* #endif */
  132. /* #ifndef APP-PLUS-NVUE */
  133. overflow: hidden;
  134. text-overflow: ellipsis;
  135. white-space: nowrap;
  136. display: block;
  137. /* #endif */
  138. }
  139. .clamp2 {
  140. /* #ifdef APP-PLUS-NVUE */
  141. lines: 2;
  142. /* #endif */
  143. /* #ifndef APP-PLUS-NVUE */
  144. display: -webkit-box;
  145. -webkit-box-orient: vertical;
  146. -webkit-line-clamp: 2;
  147. overflow: hidden;
  148. /* #endif */
  149. }
  150. /* 布局 */
  151. .row{
  152. /* #ifndef APP-PLUS-NVUE */
  153. display:flex;
  154. /* #endif */
  155. flex-direction:row;
  156. align-items: center;
  157. }
  158. .column{
  159. /* #ifndef APP-PLUS-NVUE */
  160. display:flex;
  161. /* #endif */
  162. flex-direction: column;
  163. }
  164. .center{
  165. /* #ifndef APP-PLUS-NVUE */
  166. display:flex;
  167. /* #endif */
  168. align-items: center;
  169. justify-content: center;
  170. }
  171. .fill{
  172. flex: 1;
  173. }
  174. /* input */
  175. .placeholder{
  176. color: #999 !important;
  177. }
  178. .fix-bottom{
  179. position: fixed;
  180. bottom: 0rpx;
  181. left: 0rpx;
  182. right: 0rpx;
  183. }