index.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .container {
  27. min-height: 100vh;
  28. background: #f7f8fa;
  29. padding-bottom: 120rpx;
  30. padding-top: 80rpx;
  31. }
  32. .profile-card {
  33. display: flex;
  34. align-items: center;
  35. background: #fff;
  36. border-radius: 20rpx;
  37. margin: 0 24rpx 24rpx 24rpx;
  38. padding: 32rpx 24rpx;
  39. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  40. }
  41. .avatar {
  42. width: 120rpx;
  43. height: 120rpx;
  44. border-radius: 50%;
  45. margin-right: 32rpx;
  46. border: 2rpx solid #eee;
  47. }
  48. .profile-info {
  49. flex: 1;
  50. }
  51. .phone {
  52. font-size: 36rpx;
  53. font-weight: bold;
  54. color: #222;
  55. }
  56. .profile-link {
  57. color: #409EFF;
  58. font-size: 28rpx;
  59. margin-top: 8rpx;
  60. cursor: pointer;
  61. }
  62. .section {
  63. margin: 0 24rpx 24rpx 24rpx;
  64. background: #fff;
  65. border-radius: 20rpx;
  66. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
  67. padding: 24rpx 0 0 0;
  68. }
  69. .section-title {
  70. font-size: 30rpx;
  71. font-weight: 600;
  72. color: #333;
  73. margin-left: 32rpx;
  74. margin-bottom: 16rpx;
  75. }
  76. .study-row {
  77. display: flex;
  78. flex-direction: row;
  79. justify-content: space-between;
  80. padding: 0 24rpx 24rpx 24rpx;
  81. }
  82. .study-card {
  83. flex: 1;
  84. margin: 0 8rpx;
  85. background: #f8fafc;
  86. border-radius: 16rpx;
  87. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.03);
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. padding: 24rpx 0 16rpx 0;
  92. cursor: pointer;
  93. transition: box-shadow 0.2s;
  94. }
  95. .study-card:active {
  96. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  97. }
  98. .study-icon {
  99. width: 56rpx;
  100. height: 56rpx;
  101. margin-bottom: 8rpx;
  102. }
  103. .study-title {
  104. font-size: 24rpx;
  105. color: #555;
  106. }
  107. .list-section {
  108. padding-bottom: 0;
  109. }
  110. .menu-list-vertical {
  111. margin: 0 0 0 0;
  112. }
  113. .menu-item-vertical {
  114. display: flex;
  115. align-items: center;
  116. padding: 0 32rpx;
  117. height: 96rpx;
  118. background: #fff;
  119. cursor: pointer;
  120. position: relative;
  121. }
  122. .menu-icon-vertical {
  123. width: 40rpx;
  124. height: 40rpx;
  125. margin-right: 24rpx;
  126. }
  127. .menu-title-vertical {
  128. flex: 1;
  129. font-size: 28rpx;
  130. color: #333;
  131. }
  132. .arrow {
  133. color: #bbb;
  134. font-size: 36rpx;
  135. margin-left: 8rpx;
  136. }
  137. .divider {
  138. height: 1rpx;
  139. background: #f0f0f0;
  140. margin: 0 32rpx;
  141. }