app.wxss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. @import "icon.wxss";
  2. @import "colorui.wxss";
  3. @import "/pages/plugin/animation/animation.wxss";
  4. .nav-list {
  5. display: flex;
  6. flex-wrap: wrap;
  7. padding: 0px 40rpx 0px;
  8. justify-content: space-between;
  9. }
  10. .nav-li {
  11. color: #666;
  12. padding: 30rpx;
  13. border-radius: 12rpx;
  14. width: 45%;
  15. margin: 0 2.5% 40rpx;
  16. background-image: url(https://image.weilanwl.com/color2.0/cardBg.png);
  17. background-size: cover;
  18. background-position: center;
  19. position: relative;
  20. z-index: 1;
  21. }
  22. .nav-li::after {
  23. content: "";
  24. position: absolute;
  25. z-index: -1;
  26. background-color: inherit;
  27. width: 100%;
  28. height: 100%;
  29. left: 0;
  30. bottom: -10%;
  31. border-radius: 10rpx;
  32. opacity: 0.2;
  33. transform: scale(0.9, 0.9);
  34. }
  35. .nav-li.cur {
  36. color: #fff;
  37. background: rgb(94, 185, 94);
  38. box-shadow: 4rpx 4rpx 6rpx rgba(94, 185, 94, 0.4);
  39. }
  40. .nav-title {
  41. font-size: 32rpx;
  42. font-weight: 300;
  43. }
  44. .nav-title::first-letter {
  45. font-size: 40rpx;
  46. margin-right: 4rpx;
  47. }
  48. .nav-name {
  49. font-size: 28rpx;
  50. text-transform: Capitalize;
  51. margin-top: 20rpx;
  52. position: relative;
  53. }
  54. .nav-name::before {
  55. content: "";
  56. position: absolute;
  57. display: block;
  58. width: 40rpx;
  59. height: 6rpx;
  60. background: #fff;
  61. bottom: 0;
  62. right: 0;
  63. opacity: 0.5;
  64. }
  65. .nav-name::after {
  66. content: "";
  67. position: absolute;
  68. display: block;
  69. width: 100rpx;
  70. height: 1px;
  71. background: #fff;
  72. bottom: 0;
  73. right: 40rpx;
  74. opacity: 0.3;
  75. }
  76. .nav-name::first-letter {
  77. font-weight: bold;
  78. font-size: 36rpx;
  79. margin-right: 1px;
  80. }
  81. .nav-li text {
  82. position: absolute;
  83. right: 30rpx;
  84. top: 30rpx;
  85. font-size: 52rpx;
  86. width: 60rpx;
  87. height: 60rpx;
  88. text-align: center;
  89. line-height: 60rpx;
  90. }
  91. .text-light {
  92. font-weight: 300;
  93. }
  94. @keyframes show {
  95. 0% {
  96. transform: translateY(-50px);
  97. }
  98. 60% {
  99. transform: translateY(40rpx);
  100. }
  101. 100% {
  102. transform: translateY(0px);
  103. }
  104. }
  105. @-webkit-keyframes show {
  106. 0% {
  107. transform: translateY(-50px);
  108. }
  109. 60% {
  110. transform: translateY(40rpx);
  111. }
  112. 100% {
  113. transform: translateY(0px);
  114. }
  115. }