wxParse.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. * author: Di (微信小程序开发工程师)
  3. * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com)
  4. * 垂直微信小程序开发交流社区
  5. *
  6. * github地址: https://github.com/icindy/wxParse
  7. *
  8. * for: 微信小程序富文本解析
  9. * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184
  10. */
  11. .wxParse{
  12. margin: 0 5px;
  13. font-family: Helvetica,sans-serif;
  14. font-size: 28rpx;
  15. color: #666;
  16. line-height: 1.8;
  17. }
  18. view{
  19. word-break:break-all;
  20. }
  21. .wxParse-inline{
  22. display: inline;
  23. margin: 0;
  24. padding: 0;
  25. }
  26. /*//标题 */
  27. .wxParse-div{margin: 0;padding: 0;}
  28. .wxParse-h1{ font-size:2em; margin: .67em 0 }
  29. .wxParse-h2{ font-size:1.5em; margin: .75em 0 }
  30. .wxParse-h3{ font-size:1.17em; margin: .83em 0 }
  31. .wxParse-h4{ margin: 1.12em 0}
  32. .wxParse-h5 { font-size:.83em; margin: 1.5em 0 }
  33. .wxParse-h6{ font-size:.75em; margin: 1.67em 0 }
  34. .wxParse-h1 {
  35. font-size: 18px;
  36. font-weight: 400;
  37. margin-bottom: .9em;
  38. }
  39. .wxParse-h2 {
  40. font-size: 16px;
  41. font-weight: 400;
  42. margin-bottom: .34em;
  43. }
  44. .wxParse-h3 {
  45. font-weight: 400;
  46. font-size: 15px;
  47. margin-bottom: .34em;
  48. }
  49. .wxParse-h4 {
  50. font-weight: 400;
  51. font-size: 14px;
  52. margin-bottom: .24em;
  53. }
  54. .wxParse-h5 {
  55. font-weight: 400;
  56. font-size: 13px;
  57. margin-bottom: .14em;
  58. }
  59. .wxParse-h6 {
  60. font-weight: 400;
  61. font-size: 12px;
  62. margin-bottom: .04em;
  63. }
  64. .wxParse-h1, .wxParse-h2, .wxParse-h3, .wxParse-h4, .wxParse-h5, .wxParse-h6, .wxParse-b, .wxParse-strong { font-weight: bolder }
  65. .wxParse-i,.wxParse-cite,.wxParse-em,.wxParse-var,.wxParse-address{font-style:italic}
  66. .wxParse-pre,.wxParse-tt,.wxParse-code,.wxParse-kbd,.wxParse-samp{font-family:monospace}
  67. .wxParse-pre{white-space:pre}
  68. .wxParse-big{font-size:1.17em}
  69. .wxParse-small,.wxParse-sub,.wxParse-sup{font-size:.83em}
  70. .wxParse-sub{vertical-align:sub}
  71. .wxParse-sup{vertical-align:super}
  72. .wxParse-s,.wxParse-strike,.wxParse-del{text-decoration:line-through}
  73. /*wxparse-自定义个性化的css样式*/
  74. /*增加video的css样式*/
  75. .wxParse-strong,.wxParse-s{display: inline}
  76. .wxParse-a{
  77. color: deepskyblue;
  78. word-break:break-all;
  79. overflow:auto;
  80. }
  81. .wxParse-video{
  82. text-align: center;
  83. }
  84. .wxParse-video-video{
  85. width:100%;
  86. }
  87. .wxParse-img{
  88. width: 100%!important;
  89. overflow: hidden;
  90. }
  91. .wxParse-blockquote {
  92. margin: 0;
  93. padding:10px 0 10px 5px;
  94. font-family:Courier, Calibri,"宋体";
  95. background:#f5f5f5;
  96. border-left: 3px solid #dbdbdb;
  97. }
  98. .wxParse-code,.wxParse-wxxxcode-style{
  99. display: inline;
  100. background:#f5f5f5;
  101. }
  102. .wxParse-ul{
  103. margin: 20rpx 10rpx;
  104. }
  105. .wxParse-li,.wxParse-li-inner{
  106. display: flex;
  107. align-items: baseline;
  108. margin: 10rpx 0;
  109. }
  110. .wxParse-li-text{
  111. align-items: center;
  112. line-height: 20px;
  113. }
  114. .wxParse-li-circle{
  115. display: inline-flex;
  116. width: 5px;
  117. height: 5px;
  118. background-color: #333;
  119. margin-right: 5px;
  120. }
  121. .wxParse-li-square{
  122. display: inline-flex;
  123. width: 10rpx;
  124. height: 10rpx;
  125. background-color: #333;
  126. margin-right: 5px;
  127. }
  128. .wxParse-li-ring{
  129. display: inline-flex;
  130. width: 10rpx;
  131. height: 10rpx;
  132. border: 2rpx solid #333;
  133. border-radius: 50%;
  134. background-color: #fff;
  135. margin-right: 5px;
  136. }
  137. .wxParse-u {
  138. text-decoration: underline;
  139. }
  140. .wxParse-hide{
  141. display: none;
  142. }
  143. .WxEmojiView{
  144. align-items: center;
  145. }
  146. .wxEmoji{
  147. width: 16px;
  148. height:16px;
  149. }
  150. .wxParse-tr{
  151. display: flex;
  152. border-right:1px solid #e0e0e0;
  153. border-bottom:1px solid #e0e0e0;
  154. border-top:1px solid #e0e0e0;
  155. }
  156. .wxParse-th,
  157. .wxParse-td{
  158. flex:1;
  159. padding:5px;
  160. font-size:28rpx;
  161. border-left:1px solid #e0e0e0;
  162. word-break: break-all;
  163. }
  164. .wxParse-td:last{
  165. border-top:1px solid #e0e0e0;
  166. }
  167. .wxParse-th{
  168. background:#f0f0f0;
  169. border-top:1px solid #e0e0e0;
  170. }
  171. .wxParse-del{
  172. display: inline;
  173. }
  174. .wxParse-figure {
  175. overflow: hidden;
  176. }
  177. /* 修改 */
  178. .main-content{
  179. margin-top: 38rpx;
  180. }
  181. .main-content .wxParse-img{
  182. width: 100%!important;
  183. }
  184. .main-content .wxParse-p ,.main-content .wxParse-div{
  185. line-height: 62rpx!important;
  186. margin: 28rpx 0 38rpx;
  187. font-size: 34rpx!important;
  188. text-align: justify;
  189. }
  190. .main-content .wxParse-p .wxParse-span{
  191. line-height: 62rpx;
  192. font-size: 34rpx!important;
  193. }
  194. .wxParse-audio{
  195. display: none;
  196. }