app.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. @import "icon.wxss";
  2. @import "colorui.wxss";
  3. page {
  4. counter-reset: header;
  5. }
  6. .indexImage {
  7. width: 100%;
  8. }
  9. .screen {
  10. display: flex;
  11. align-items: center;
  12. height: 100vh;
  13. text-align: center;
  14. justify-content: center;
  15. font-size: 80rpx;
  16. }
  17. .desc text {
  18. text-align: center;
  19. color: #999;
  20. display: block;
  21. margin-bottom: 60rpx;
  22. }
  23. .nav-list {
  24. display: flex;
  25. color: #666;
  26. align-items: center;
  27. padding: 30rpx;
  28. margin: 30rpx 30rpx 0;
  29. background: #fff;
  30. border-radius: 6rpx;
  31. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  32. }
  33. .nav-list.cur {
  34. color: #fff;
  35. background: rgb(94, 185, 94);
  36. box-shadow: 2px 2px 3px rgba(94, 185, 94, 0.4);
  37. }
  38. .nav-list .iconfont {
  39. flex: 1;
  40. text-align: right;
  41. }
  42. .nav-title {
  43. margin-right: 20rpx;
  44. }
  45. .nav-name {
  46. color: #aaa;
  47. font-size: 24rpx;
  48. text-transform: Capitalize;
  49. }
  50. .doc-top {
  51. padding: 30rpx;
  52. background: #39b54a;
  53. position: relative;
  54. }
  55. .doc-top::after {
  56. content: "";
  57. position: absolute;
  58. top: 30rpx;
  59. border-radius: 6rpx;
  60. display: block;
  61. width: 50rpx;
  62. height: 5rpx;
  63. background: #fff;
  64. box-shadow: 5rpx 7rpx 7rpx rgba(0, 0, 0, 0.15);
  65. }
  66. .doc-top-title {
  67. margin-top: 30rpx;
  68. font-size: 48rpx;
  69. font-weight: 900;
  70. color: #fff;
  71. text-shadow: 10rpx 15rpx 15rpx rgba(0, 0, 0, 0.15);
  72. }
  73. .doc-top-name {
  74. margin-top: 20rpx;
  75. font-size: 32rpx;
  76. font-weight: 600;
  77. color: #fff;
  78. text-transform: Capitalize;
  79. text-shadow: 5rpx 7rpx 7rpx rgba(0, 0, 0, 0.15);
  80. }
  81. .doc-main {
  82. background: #fff;
  83. padding: 20rpx;
  84. line-height: 52rpx;
  85. }
  86. .doc-main-title {
  87. counter-increment: header;
  88. line-height: 80rpx;
  89. font-weight: 600;
  90. font-size: 36rpx;
  91. }
  92. .doc-main-title::before {
  93. content: counter(header) ". ";
  94. color: #888;
  95. font-weight: 400;
  96. }
  97. .doc-main-content {
  98. margin-bottom: 20rpx;
  99. line-height: 1.6;
  100. }
  101. .doc-example {
  102. padding: 0 30rpx 30rpx;
  103. position: relative;
  104. margin-bottom: 30rpx;
  105. }
  106. .doc-example + .doc-example, .doc-example + .doc-main-content {
  107. margin-top: 20rpx;
  108. }
  109. .doc-example::before {
  110. content: 'Demo';
  111. display: block;
  112. color: #bbb;
  113. text-transform: uppercase;
  114. margin: 0 -30rpx 30rpx;
  115. padding: 4px 10px;
  116. font-size: 24rpx;
  117. background: #f5f5f5;
  118. }
  119. .doc-example::after {
  120. content: " ";
  121. width: 200%;
  122. height: 200%;
  123. position: absolute;
  124. top: 0;
  125. left: 0;
  126. border: 1px solid rgba(0, 0, 0, 0.2);
  127. -webkit-transform: scale(0.5);
  128. transform: scale(0.5);
  129. -webkit-transform-origin: 0 0;
  130. transform-origin: 0 0;
  131. box-sizing: border-box;
  132. border-radius: 10rpx;
  133. }
  134. .doc-box {
  135. background: #f5f5f5;
  136. border-radius: 10rpx;
  137. }
  138. .doc-box-sub {
  139. background: #ddd;
  140. line-height: 60rpx;
  141. border-radius: 10rpx;
  142. }
  143. .big-sub {
  144. line-height: 160rpx;
  145. padding: 50rpx;
  146. }