public.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. view,
  2. input,
  3. textarea,
  4. block,
  5. navigator,
  6. swiper,
  7. swiper-item,
  8. form,
  9. scroll-view,
  10. picker,
  11. picker-view,
  12. checkbox-group,
  13. checkbox,
  14. radio {
  15. box-sizing: border-box;
  16. }
  17. body,
  18. page{
  19. background-color: #FAFAFC;
  20. font-size: 28rpx;
  21. color: #333333;
  22. }
  23. @for $i from 0 through 100 {
  24. // 只要双数和能被5除尽的数
  25. @if $i % 2==0 or $i % 5==0 {
  26. // 得出:u-margin-30或者u-m-30
  27. .ss-margin-#{$i},
  28. .ss-m-#{$i} {
  29. margin: $i + rpx;
  30. }
  31. .ss-m-x-#{$i} {
  32. margin-left: $i + rpx;
  33. margin-right: $i + rpx;
  34. }
  35. .ss-m-y-#{$i} {
  36. margin-top: $i + rpx;
  37. margin-bottom: $i + rpx;
  38. }
  39. // 得出:u-padding-30或者u-p-30
  40. .ss-padding-#{$i},
  41. .ss-p-#{$i} {
  42. padding: $i + rpx;
  43. }
  44. .ss-p-x-#{$i} {
  45. padding-left: $i + rpx;
  46. padding-right: $i + rpx;
  47. }
  48. .ss-p-y-#{$i} {
  49. padding-top: $i + rpx;
  50. padding-bottom: $i + rpx;
  51. }
  52. @each $short, $long in l left, t top, r right, b bottom {
  53. // 缩写版,结果如: u-m-l-30
  54. // 定义外边距
  55. .ss-m-#{$short}-#{$i} {
  56. margin-#{$long}: $i + rpx;
  57. }
  58. // 定义内边距
  59. .ss-p-#{$short}-#{$i} {
  60. padding-#{$long}: $i + rpx;
  61. }
  62. // 完整版,结果如:u-margin-left-30
  63. // 定义外边距
  64. .ss-margin-#{$long}-#{$i} {
  65. margin-#{$long}: $i + rpx;
  66. }
  67. // 定义内边距
  68. .ss-padding-#{$long}-#{$i} {
  69. padding-#{$long}: $i + rpx;
  70. }
  71. }
  72. }
  73. }
  74. /* flex布局 */
  75. .flex_box {
  76. display: -webkit-flex;
  77. display: flex;
  78. align-items: center;
  79. }
  80. .flex_row_between {
  81. justify-content: space-between;
  82. }
  83. .flex_row_center {
  84. justify-content: center;
  85. }
  86. .flex_row_around {
  87. justify-content: space-around;
  88. }
  89. .flex_row_end {
  90. justify-content: flex-end;
  91. }
  92. .flex_direction {
  93. flex-direction: column;
  94. }
  95. .flex_col_top {
  96. align-items: flex-start;
  97. }
  98. .flex_col_bottom {
  99. align-items: flex-end;
  100. }
  101. .flex_wrap {
  102. flex-wrap: wrap;
  103. }
  104. .flex_shrink {
  105. flex-shrink: 0;
  106. }
  107. /* 空列表 */
  108. .empty_box {
  109. padding: 50rpx 0;
  110. }
  111. .empty_btn {
  112. height: 150rpx;
  113. }
  114. image,
  115. img {
  116. vertical-align: bottom;
  117. }
  118. /* modal框溢出滚动 */
  119. .modal_scroll {
  120. max-height: 720rpx;
  121. overflow-y: scroll;
  122. }
  123. .form_record_box {
  124. padding: 24rpx 0 0;
  125. }
  126. /* 音节动画---------------------------------- */
  127. .text-center {
  128. text-align: center;
  129. }
  130. /* 三角指针 */
  131. .prompt-layer::after {
  132. content: '';
  133. display: block;
  134. border: 6px solid rgba(0, 0, 0, 0);
  135. border-top-color: rgba(255, 211, 0, 1);
  136. position: absolute;
  137. bottom: -10px;
  138. left: 50%;
  139. transform: translateX(-50%);
  140. }
  141. .prompt-layer-1 {
  142. font-size: 12px;
  143. width: 128px;
  144. text-align: center;
  145. display: flex;
  146. flex-direction: column;
  147. align-items: center;
  148. justify-content: center;
  149. }
  150. .prompt-layer-1 .p {
  151. color: #000000;
  152. }
  153. .prompt-layer-1 .span {
  154. color: rgba(0, 0, 0, 0.6);
  155. }
  156. /* 语音音阶------------- */
  157. .prompt-loader {
  158. width: 96px;
  159. height: 20px;
  160. display: flex;
  161. align-items: center;
  162. justify-content: space-between;
  163. margin-bottom: 6px;
  164. }
  165. .prompt-loader .em {
  166. display: block;
  167. background: #333333;
  168. width: 1px;
  169. height: 10%;
  170. margin-right: 2.5px;
  171. float: left;
  172. }
  173. .prompt-loader .em:last-child {
  174. margin-right: 0px;
  175. }
  176. .prompt-loader .em:nth-child(1) {
  177. animation: load 2.5s 1.4s infinite linear;
  178. }
  179. .prompt-loader .em:nth-child(2) {
  180. animation: load 2.5s 1.2s infinite linear;
  181. }
  182. .prompt-loader .em:nth-child(3) {
  183. animation: load 2.5s 1s infinite linear;
  184. }
  185. .prompt-loader .em:nth-child(4) {
  186. animation: load 2.5s 0.8s infinite linear;
  187. }
  188. .prompt-loader .em:nth-child(5) {
  189. animation: load 2.5s 0.6s infinite linear;
  190. }
  191. .prompt-loader .em:nth-child(6) {
  192. animation: load 2.5s 0.4s infinite linear;
  193. }
  194. .prompt-loader .em:nth-child(7) {
  195. animation: load 2.5s 0.2s infinite linear;
  196. }
  197. .prompt-loader .em:nth-child(8) {
  198. animation: load 2.5s 0s infinite linear;
  199. }
  200. .prompt-loader .em:nth-child(9) {
  201. animation: load 2.5s 0.2s infinite linear;
  202. }
  203. .prompt-loader .em:nth-child(10) {
  204. animation: load 2.5s 0.4s infinite linear;
  205. }
  206. .prompt-loader .em:nth-child(11) {
  207. animation: load 2.5s 0.6s infinite linear;
  208. }
  209. .prompt-loader .em:nth-child(12) {
  210. animation: load 2.5s 0.8s infinite linear;
  211. }
  212. .prompt-loader .em:nth-child(13) {
  213. animation: load 2.5s 1s infinite linear;
  214. }
  215. .prompt-loader .em:nth-child(14) {
  216. animation: load 2.5s 1.2s infinite linear;
  217. }
  218. .prompt-loader .em:nth-child(15) {
  219. animation: load 2.5s 1.4s infinite linear;
  220. }
  221. @keyframes load {
  222. 0% {
  223. height: 10%;
  224. }
  225. 50% {
  226. height: 100%;
  227. }
  228. 100% {
  229. height: 10%;
  230. }
  231. }
  232. /* 语音音阶-------------------- */
  233. .prompt-layer-2 {
  234. top: -40px;
  235. }
  236. .prompt-layer-2 .text {
  237. color: rgba(0, 0, 0, 1);
  238. font-size: 12px;
  239. }
  240. /*上传关闭按钮样式*/
  241. .u-upload{
  242. .u-upload__wrap{
  243. .u-upload__deletable{
  244. width: 40rpx;
  245. height: 40rpx;
  246. .u-upload__deletable__icon{
  247. .u-icon{
  248. .u-icon__icon{
  249. font-size: 30rpx!important;
  250. line-height: 30rpx!important;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. }
  257. // 搜索组件关闭按钮
  258. .u-search .u-search__content .u-search__content__close{
  259. width: 52rpx;
  260. height: 52rpx;
  261. }
  262. .color-primary {
  263. color: #FD910C;
  264. }
  265. // 禁止滚动
  266. .noScroll {
  267. overflow: hidden;
  268. }
  269. // 自定义导航栏样式
  270. .back-text {
  271. font-size: 40rpx;
  272. font-weight: bold;
  273. color: #323232;
  274. margin-left: 32rpx;
  275. }
  276. // 输入框
  277. .form_input {
  278. position: relative;
  279. width: 100%;
  280. }
  281. .form_input .form_input_read {
  282. position: absolute;
  283. top: 0;
  284. left: 0;
  285. width: 100%;
  286. height: 100%;
  287. z-index: 9;
  288. }