global.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. view,scroll-view,swiper,swiper-item,cover-view,cover-image,text,rich-text,progress,button,checkbox,form,input,label,radio,slider,switch,textarea,navigator,audio,camera,image,video {box-sizing: border-box;font-family: "Microsoft YaHei","黑体","宋体",sans-serif;}
  2. image{width: 100%;height: 100%;}
  3. view {font-size:28rpx;color:#000;}
  4. html, body {background-color: #F2F2F2;}
  5. // 当自定义标题导航栏时修改showTips的位置
  6. .u-tips{top: var(--status-bar-height) !important;}
  7. // 低端机型输入框占位符垂直居中兼容问题
  8. .uni-input-placeholder { top: 50% !important;transform: translateY(-50%); }
  9. // 表单验证提示文字位置
  10. .u-form-item{position: relative;}
  11. .u-form-item__message{position: absolute;padding-left: 0 !important;bottom: -10rpx;left: 0;}
  12. .row {
  13. margin-bottom: 20rpx;
  14. display: flex;
  15. justify-content: space-between;
  16. align-items: center;
  17. line-height: 1;
  18. &:last-child {
  19. margin-bottom: 0;
  20. }
  21. .col {
  22. flex: 1;
  23. display: flex;
  24. align-items: flex-start;
  25. text-align: left;
  26. .label {
  27. width: 150rpx;
  28. line-height: 35rpx;
  29. }
  30. .value {
  31. flex: 1;
  32. line-height: 35rpx;
  33. }
  34. }
  35. }