my.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @charset "UTF-8";
  2. /* 需要放到文件最上面 */
  3. /* 水平间距 */
  4. /* 水平间距 */
  5. /*
  6. 以下变量是默认值,如不需要修改可以不用给下面的变量重新赋值
  7. */
  8. /* 水平间距 */
  9. .my-box {
  10. height: 100vh;
  11. background: #fff;
  12. overflow-y: auto;
  13. }
  14. .my-box .my-content {
  15. display: flex;
  16. flex-direction: column;
  17. align-items: center;
  18. padding-bottom: 80rpx;
  19. }
  20. .my-box .my-top {
  21. height: 260rpx;
  22. background-image: url("https://images.unsplash.com/photo-1558591710-4b4a1ae0f04d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwyMDUzMDJ8MHwxfHNlYXJjaHw1fHxhYnN0cmFjdHxlbnwxfHx8fDE2NTI4OTYzNTU&ixlib=rb-1.2.1&q=80&w=1080");
  23. background-position: center center;
  24. background-size: cover;
  25. background-repeat: no-repeat;
  26. width: 100%;
  27. }
  28. .my-box .my-avatar {
  29. width: 200rpx;
  30. height: 200rpx;
  31. border-radius: 50%;
  32. margin-top: -100rpx;
  33. border: 6rpx solid #fff;
  34. background: #eee;
  35. }
  36. .my-box .name {
  37. font-size: 20px;
  38. font-weight: 700;
  39. margin: 10rpx 0;
  40. }
  41. .my-box .organization {
  42. color: #8c8c8c;
  43. font-weight: 300;
  44. }
  45. .my-box .my-tab {
  46. width: 100%;
  47. padding: 0 30rpx;
  48. box-sizing: border-box;
  49. margin: 40rpx 0;
  50. }
  51. .my-box .my-tab .tab-box {
  52. height: 160rpx;
  53. border-radius: 24rpx;
  54. box-shadow: 1px 1px 12px rgba(164, 164, 164, 0.25);
  55. display: flex;
  56. align-items: center;
  57. }
  58. .my-box .my-tab .tab-item {
  59. flex: 1;
  60. text-align: center;
  61. }
  62. .my-box .my-tab .tab-number {
  63. font-size: 40rpx;
  64. font-weight: 600;
  65. }
  66. .my-box .my-tab .tab-text {
  67. font-size: 24rpx;
  68. font-weight: 300;
  69. margin-top: 10rpx;
  70. }
  71. .my-box .my-list {
  72. width: 100%;
  73. padding: 0 30rpx;
  74. box-sizing: border-box;
  75. }
  76. .my-box .my-list .my-list-box {
  77. border-radius: 24rpx;
  78. box-shadow: 1px 1px 12px rgba(164, 164, 164, 0.25);
  79. overflow: hidden;
  80. }
  81. .my-box .my-list .my-item {
  82. display: flex;
  83. align-items: center;
  84. padding: 20rpx 30rpx;
  85. }
  86. .my-box .my-list .my-item:active {
  87. background: #f2f2f2;
  88. }
  89. .my-box .my-list .my-icon {
  90. width: 80rpx;
  91. height: 80rpx;
  92. border-radius: 16rpx;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. margin-right: 20rpx;
  97. background: #c1c0c8;
  98. }
  99. .my-box .my-list .my-icon.bg1 {
  100. background: #88d498;
  101. }
  102. .my-box .my-list .my-icon.bg2 {
  103. background: #ffb997;
  104. }
  105. .my-box .my-list .my-icon.bg3 {
  106. background: #7ad9ff;
  107. }
  108. .my-box .my-list .my-icon.bg4 {
  109. background: #9ac0cd;
  110. }
  111. .my-box .my-list .my-icon.bg5 {
  112. background: #40e0d0;
  113. }
  114. .my-box .my-list .my-forward {
  115. height: 40rpx;
  116. }
  117. .my-box .my-list .item-content {
  118. flex: 1;
  119. width: 0;
  120. overflow: hidden;
  121. font-weight: 700;
  122. }