西藏巴青项目

tab-page.scss 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /* 各 Tab 子页共用:rpx + flex,与《uni-app标准》一致 */
  2. @import './morandi.scss';
  3. .tp-panel {
  4. display: flex;
  5. flex-direction: column;
  6. min-width: 0;
  7. padding: 24rpx;
  8. padding-bottom: 16rpx;
  9. gap: 24rpx;
  10. box-sizing: border-box;
  11. }
  12. .tp-panel--pad {
  13. padding-top: 32rpx;
  14. }
  15. .tp-heading {
  16. text-align: center;
  17. color: $morandi-text;
  18. }
  19. .tp-hero {
  20. display: flex;
  21. flex-direction: column;
  22. align-items: stretch;
  23. padding: 32rpx 24rpx;
  24. min-width: 0;
  25. background: $morandi-bg-card-inner;
  26. border-radius: 16rpx;
  27. border: 1rpx solid $morandi-border-soft;
  28. gap: 16rpx;
  29. }
  30. .tp-hero-logo {
  31. display: block;
  32. align-self: center;
  33. min-width: 160rpx;
  34. max-width: 320rpx;
  35. width: 62%;
  36. }
  37. .tp-hero-title {
  38. text-align: center;
  39. color: $morandi-text;
  40. }
  41. .tp-hero-desc {
  42. text-align: center;
  43. color: $morandi-text-muted;
  44. }
  45. .tp-lang-bar {
  46. display: flex;
  47. flex-direction: row;
  48. flex-wrap: wrap;
  49. gap: 16rpx;
  50. min-width: 0;
  51. }
  52. .tp-lang-chip {
  53. display: flex;
  54. flex: 1;
  55. min-width: 0;
  56. padding: 10rpx 18rpx;
  57. justify-content: center;
  58. align-items: center;
  59. border-radius: 999rpx;
  60. background: $morandi-chip;
  61. border-width: 1rpx;
  62. border-style: solid;
  63. border-color: $morandi-border-strong;
  64. }
  65. .tp-lang-chip--active {
  66. border-color: $morandi-chip-on-border;
  67. background: $morandi-chip-on-bg;
  68. }
  69. .tp-chip-label {
  70. text-align: center;
  71. color: $morandi-text-secondary;
  72. font-size: 24rpx;
  73. }
  74. .tp-card {
  75. display: flex;
  76. flex-direction: column;
  77. min-width: 0;
  78. padding: 24rpx;
  79. background: $morandi-bg-card;
  80. border-radius: 16rpx;
  81. border: 1rpx solid $morandi-border;
  82. gap: 16rpx;
  83. box-sizing: border-box;
  84. }
  85. .tp-card--muted {
  86. background: $morandi-bg-muted;
  87. border-color: $morandi-border-strong;
  88. color: $morandi-text-secondary;
  89. }
  90. .tp-card-label {
  91. font-weight: 600;
  92. }
  93. .tp-card-body {
  94. display: flex;
  95. flex-direction: column;
  96. min-width: 0;
  97. }
  98. .tp-actions {
  99. display: flex;
  100. flex-direction: column;
  101. gap: 20rpx;
  102. min-width: 0;
  103. }
  104. .tp-actions-item {
  105. width: 100%;
  106. }
  107. /* Tab 路由页根容器:随内容增高,整页可滚动 */
  108. .tab-page {
  109. display: flex;
  110. flex-direction: column;
  111. min-width: 0;
  112. min-height: 100%;
  113. box-sizing: border-box;
  114. }
  115. /* 分包占位页等与消息页同一底衬 */
  116. .pkg-entry {
  117. display: flex;
  118. flex-direction: column;
  119. gap: 24rpx;
  120. padding: 24rpx;
  121. min-width: 0;
  122. min-height: 100%;
  123. box-sizing: border-box;
  124. background: $morandi-bg-page;
  125. }
  126. .pkg-entry .text-title {
  127. color: $morandi-text;
  128. }
  129. .pkg-entry .text-body {
  130. color: $morandi-text-muted;
  131. }