demo_page_common.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /* 顶部 start */
  2. .header {
  3. padding: 80rpx 60rpx 40rpx 60rpx;
  4. .title {
  5. font-size: 36rpx;
  6. color: $tn-font-color;
  7. font-weight: bold;
  8. }
  9. .sub-title {
  10. font-size: 28rpx;
  11. color: $tn-content-color;
  12. padding-top: 18rpx;
  13. }
  14. .tips-title {
  15. font-size: 24rpx;
  16. color: $tn-font-sub-color;
  17. padding-top: 5rpx;
  18. }
  19. }
  20. /* 顶部 end */
  21. /* 展示内容容器 start */
  22. .show-content-container {
  23. /* 标题容器 start */
  24. .title-container {
  25. display: flex;
  26. position: relative;
  27. align-items: center;
  28. justify-content: space-between;
  29. min-height: 100rpx;
  30. // 标题样式
  31. .title {
  32. height: 100%;
  33. max-width: 100%;
  34. margin: 0 20rpx;
  35. font-size: 30rpx;
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. // 标题前面小点
  40. &:before {
  41. content: " ";
  42. background-color: $tn-main-color;
  43. width: 15rpx;
  44. height: 15rpx;
  45. border-radius: 10rpx;
  46. margin-right: 18rpx;
  47. }
  48. }
  49. }
  50. /* 标题容器 end */
  51. /* 内容 start */
  52. .content {
  53. padding: 20rpx;
  54. }
  55. /* 内容 end */
  56. }
  57. /* 展示内容容器 end */
  58. /* 内容容器 start */
  59. .demo-content-container {
  60. border: 1rpx dashed $tn-main-color;
  61. margin: 20rpx;
  62. margin-top: 0rpx;
  63. position: fixed;
  64. width: 95%;
  65. z-index: 10;
  66. transition: all 0.15s ease-out;
  67. &.top {
  68. width: 100%;
  69. margin: 0;
  70. }
  71. &.no-fixed {
  72. position: relative !important;
  73. }
  74. /* 标题容器 start */
  75. .title-container {
  76. display: flex;
  77. position: relative;
  78. align-items: center;
  79. justify-content: center;
  80. min-height: 100rpx;
  81. // 标题样式
  82. .title {
  83. height: 100%;
  84. max-width: 100%;
  85. margin: 0 30rpx;
  86. font-size: 30rpx;
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. }
  91. }
  92. /* 标题容器 end */
  93. /* 内容 start */
  94. .content {
  95. padding: 30rpx;
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. }
  100. /* 内容 end */
  101. }
  102. /* 内容容器 end */
  103. /* 可选项内容容器 start */
  104. .demo-section-container {
  105. margin: 20rpx;
  106. height: 100%;
  107. /* 标题容器 start */
  108. .title-container {
  109. display: flex;
  110. position: relative;
  111. align-items: center;
  112. justify-content: center;
  113. min-height: 100rpx;
  114. margin-bottom: 10rpx;
  115. // 标题样式
  116. .title {
  117. height: 100%;
  118. max-width: 100%;
  119. margin: 0 30rpx;
  120. font-size: 30rpx;
  121. display: flex;
  122. align-items: center;
  123. justify-content: center;
  124. }
  125. &::after {
  126. content: " ";
  127. box-sizing: border-box;
  128. width: 90%;
  129. height: 100%;
  130. position: absolute;
  131. top: 0;
  132. left: 50%;
  133. transform: translateX(-50%);
  134. border-bottom: 1rpx solid $tn-border-solid-color;
  135. }
  136. }
  137. /* 标题容器 end */
  138. /* 参数内容 start*/
  139. .content {
  140. padding: 0 20rpx 10rpx 20rpx;
  141. // 标题样式
  142. .title {
  143. padding-left: 20rpx;
  144. height: 100%;
  145. position: relative;
  146. &::before {
  147. content: " ";
  148. position: absolute;
  149. top: 50%;
  150. left: 0;
  151. width: 4rpx;
  152. height: 90%;
  153. background-color: $tn-main-color;
  154. border-radius: 6rpx;
  155. transform: translateY(-50%);
  156. }
  157. }
  158. // 参数样式
  159. .section {
  160. margin-top: 15rpx;
  161. margin-bottom: 20rpx;
  162. }
  163. }
  164. /* 参数内容 end*/
  165. }
  166. /* 可选项内容容器 end */