common.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. html {
  2. background-color: #f7f7f7;
  3. .uni-modal {
  4. width: 75%;
  5. max-width: 350px;
  6. padding-bottom: 16rpx;
  7. border-radius: 32rpx;
  8. .uni-modal__title {
  9. font-size: 32rpx;
  10. font-weight: bold;
  11. padding-top: 32rpx;
  12. }
  13. .uni-modal__bd {
  14. color: #666;
  15. word-break: break-word;
  16. }
  17. }
  18. .uni-modal__ft {
  19. padding: 32rpx;
  20. align-items: center;
  21. &::after {
  22. display: none;
  23. }
  24. .uni-modal__btn {
  25. font-size: 28rpx;
  26. font-weight: bold;
  27. border-radius: 30px;
  28. &.uni-modal__btn_default {
  29. margin-right: 24rpx;
  30. background-color: #EDEDED;
  31. }
  32. &.uni-modal__btn_primary {
  33. color: #000 !important;
  34. background-color: var(--primary-color);
  35. &::after {
  36. display: none;
  37. }
  38. }
  39. }
  40. }
  41. }
  42. view, text {
  43. vertical-align: middle;
  44. font-variant-ligatures: none;
  45. }
  46. .container {
  47. &.fixed {
  48. height: calc(100vh - var(--window-top) - var(--window-bottom));
  49. }
  50. &.min-fixed {
  51. min-height: calc(100vh - var(--window-top) - var(--window-bottom));
  52. }
  53. .ui-button, uni-button {
  54. width: 100%;
  55. margin: 16rpx 0;
  56. font-size: 32rpx;
  57. font-weight: bold;
  58. line-height: 2.8;
  59. border-radius: 50px;
  60. transition: all .3s;
  61. }
  62. .ui-button[type='primary'],
  63. uni-button[type='primary'] {
  64. color: #000;
  65. background-color: var(--primary-color);
  66. }
  67. uni-button[loading][type='primary'] {
  68. color: #000;
  69. background-color: #CCC;
  70. }
  71. .ui-button[type='accent'],
  72. uni-button[type='accent'] {
  73. color: #ffffff;
  74. background-color: var(--accent-color);
  75. }
  76. .ui-button[disabled],
  77. uni-button[disabled] {
  78. color: #888;
  79. }
  80. .button-anim {
  81. transition: all .4s;
  82. }
  83. .button-anim:active {
  84. transform: scale(0.96);
  85. }
  86. .card-list-loading .x-skeleton__wrapper__rows {
  87. padding: 32rpx;
  88. border-radius: 32rpx;
  89. background-color: white;
  90. }
  91. }