main.wxss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. /*音频播放器样式*/
  2. .audioForH2w {
  3. height: 136rpx;
  4. margin: 16rpx 0;
  5. background: #f1f1f1;
  6. position: relative;
  7. }
  8. .audioForH2w--play .audioForH2w__icon {
  9. display: none;
  10. opacity: 1;
  11. }
  12. .audioForH2w--play .audioForH2w__cover image {
  13. opacity: 1;
  14. }
  15. /* .audioForH2w--end .audioForH2w__icon {width:20rpx; height:20rpx; background:white; border:0; left:24rpx; top:24rpx; border-radius:2rpx;} */
  16. .audioForH2w__cover {
  17. width: 136rpx;
  18. height: 136rpx;
  19. background: black;
  20. float: left;
  21. }
  22. .audioForH2w__cover image {
  23. width: 100%;
  24. height: 100%;
  25. opacity: 0.6;
  26. margin: 0;
  27. transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
  28. }
  29. .audioForH2w__info {
  30. padding-left: 20rpx;
  31. padding-top: 16rpx;
  32. position: absolute;
  33. left: 136rpx;
  34. right: 0;
  35. }
  36. .audioForH2w__schedule {
  37. position: absolute;
  38. left: 0;
  39. top: 0;
  40. background: rgba(0, 255, 0, 0.1);
  41. height: 136rpx;
  42. width: 0;
  43. }
  44. .audioForH2w__title {
  45. display: block;
  46. font-size: 24rpx;
  47. height: 40rpx;
  48. line-height: 40rpx;
  49. font-weight: bold;
  50. }
  51. .audioForH2w__author {
  52. display: block;
  53. font-size: 20rpx;
  54. height: 32rpx;
  55. line-height: 32rpx;
  56. }
  57. .audioForH2w__time {
  58. display: block;
  59. font-size: 20rpx;
  60. height: 32rpx;
  61. line-height: 32rpx;
  62. }
  63. .audioForH2w__icon {
  64. width: 0;
  65. height: 0;
  66. position: absolute;
  67. left: 60rpx;
  68. top: 48rpx;
  69. border-width: 20rpx 0 20rpx 20rpx;
  70. border-style: solid;
  71. border-color: transparent transparent transparent #fff;
  72. z-index: 1;
  73. }
  74. /*正文样式*/
  75. .h2w {
  76. /* font-family: "黑体"; */
  77. font-size: 32rpx;
  78. line-height: 1.8;
  79. word-wrap: break-word;
  80. word-wrap: break-word;
  81. word-break: break-all;
  82. }
  83. .h2w__main {
  84. margin: 0 40rpx;
  85. padding-top: 40rpx;
  86. }
  87. /**标题**/
  88. .h2w__h1,
  89. .h2w__h2,
  90. .h2w__h3,
  91. .h2w__h4,
  92. .h2w__h5,
  93. .h2w__h6 {
  94. font-weight: bold;
  95. }
  96. .h2w__h1 {
  97. border-bottom-style: double;
  98. border-bottom-width: 6rpx;
  99. font-size: 42rpx;
  100. padding-bottom: 10rpx;
  101. margin-bottom: 20rpx;
  102. }
  103. .h2w__h2 {
  104. border-bottom-style: solid;
  105. border-bottom-width: 1rpx;
  106. font-size: 40rpx;
  107. padding-bottom: 8rpx;
  108. margin-bottom: 18rpx;
  109. }
  110. .h2w__h3 {
  111. font-size: 38rpx;
  112. padding-bottom: 6rpx;
  113. margin-bottom: 12rpx;
  114. }
  115. .h2w__h4 {
  116. font-size: 36rpx;
  117. padding-bottom: 4rpx;
  118. margin-bottom: 12rpx;
  119. text-align: center;
  120. border:2rpx solid #000;
  121. }
  122. .h2w__h5 {
  123. font-size: 34rpx;
  124. padding-bottom: 2rpx;
  125. margin-bottom: 12rpx;
  126. }
  127. .h2w__h6 {
  128. margin-bottom: 12rpx;
  129. }
  130. /**表格**/
  131. .h2w__table {
  132. width: 100%;
  133. border-collapse: collapse;
  134. border-spacing: 0;
  135. display: table;
  136. margin-bottom: 40rpx;
  137. }
  138. .h2w__table .h2w__tr:nth-child(2n) {
  139. background-color: red;
  140. }
  141. .h2w__colgroup {
  142. display: table-column-group;
  143. }
  144. .h2w__col {
  145. display: table-column;
  146. }
  147. .h2w__thead {
  148. display: table-header-group;
  149. }
  150. .h2w__tbody {
  151. display: table-row-group;
  152. }
  153. .h2w__tfoot {
  154. display: table-footer-group;
  155. }
  156. .h2w__tr {
  157. display: table-row;
  158. }
  159. .h2w__th,
  160. .h2w__td {
  161. padding: 8rpx 16rpx;
  162. font-size: 28rpx;
  163. border-width: 1rpx;
  164. border-style: solid;
  165. display: table-cell;
  166. }
  167. .h2w__th {
  168. font-weight: bold;
  169. }
  170. /**代码块**/
  171. .h2w__pre {
  172. /*white-space:nowrap;*/
  173. padding: 20rpx;
  174. font-size: 28rpx;
  175. word-break: normal;
  176. border-width: 1rpx;
  177. border-style: solid;
  178. margin-bottom: 40rpx;
  179. white-space: nowrap;
  180. overflow-x: auto;
  181. }
  182. .h2w__pre .h2w__code {
  183. padding: 0;
  184. border: 0;
  185. font-size: 100%;
  186. }
  187. .h2w__pre,
  188. .h2w__code {
  189. font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace, "STHeitiTC-Light", "Microsoft YaHei Light", -apple-system, system-ui, BlinkMacSystemFont;
  190. }
  191. .h2w__code {
  192. /* padding: 4rpx 8rpx; */
  193. /* margin: 0 4rpx; */
  194. /* border-width: 1rpx; */
  195. /* border-style: solid; */
  196. /* border-radius: 8rpx; */
  197. font-size: 100%;
  198. overflow-x: auto;
  199. }
  200. .h2w__pre .h2w__span,
  201. .h2w__pre .h2w__a,
  202. .h2w__pre .h2w__span,
  203. .h2w__pre .h2w__b,
  204. .h2w__pre .h2w__strong,
  205. .h2w__pre .h2w__i,
  206. .h2w__pre .h2w__em {
  207. display: inline;
  208. }
  209. .h2w__pre {
  210. white-space: pre;
  211. display: block;
  212. }
  213. .h2w__pre .h2w__code {
  214. white-space: pre;
  215. width: 9999px;
  216. display: block;
  217. font-size: 80%;
  218. }
  219. /**列表**/
  220. .h2w__ul,
  221. .h2w__ol {
  222. margin-bottom: 40rpx;
  223. padding-left: 1rem;
  224. }
  225. .h2w__ul .h2w__ol,
  226. .h2w__ol .h2w__ul {
  227. margin-bottom: 0;
  228. }
  229. .h2w__li {
  230. display: list-item;
  231. }
  232. /**todo**/
  233. .h2w__todogroup {
  234. margin-bottom: 40rpx;
  235. }
  236. .h2w__todogroup .h2w__todogroup {
  237. padding-left: 1.6rem;
  238. }
  239. /**一级ol样式**/
  240. .h2w__ol {
  241. list-style-type: decimal;
  242. }
  243. /**二级ol样式**/
  244. .h2w__ul .h2w__ol,
  245. .h2w__ol .h2w__ol {
  246. list-style-type: lower-roman;
  247. }
  248. /**三级ol样式**/
  249. .h2w__ul .h2w__ul .h2w__ol,
  250. .h2w__ul .h2w__ol .h2w__ol,
  251. .h2w__ol .h2w__ul .h2w__ol,
  252. .h2w__ol .h2w__ol .h2w__ol {
  253. list-style-type: lower-alpha;
  254. }
  255. /**一级ul样式**/
  256. .h2w__ul {
  257. list-style-type: disc;
  258. }
  259. /**二级ul样式**/
  260. .h2w__ul .h2w__ul,
  261. .h2w__ol .h2w__ul {
  262. list-style-type: circle;
  263. }
  264. /**三级样式**/
  265. .h2w__ol .h2w__ol .h2w__ul,
  266. .h2w__ol .h2w__ul .h2w__ul,
  267. .h2w__ul .h2w__ol .h2w__ul,
  268. .h2w__ul .h2w__ul .h2w__ul {
  269. list-style-type: square;
  270. }
  271. /**块元素**/
  272. .h2w__p {
  273. margin: 20rpx 0 20rpx 0;
  274. /*word-wrap:break-word;
  275. word-break:break-all;*/
  276. /*text-align:justify;*/
  277. }
  278. .h2w__div {
  279. /*text-align:justify;*/
  280. }
  281. .h2w__blockquote {
  282. border-left-width: 8rpx;
  283. border-left-style: solid;
  284. padding: 0 20rpx;
  285. }
  286. /**内连元素**/
  287. .h2w__a,
  288. .h2w__span,
  289. .h2w__b,
  290. .h2w__strong,
  291. .h2w__i,
  292. .h2w__em {
  293. display: inline;
  294. }
  295. .h2w__b,
  296. .h2w__strong {
  297. font-weight: bold;
  298. }
  299. .h2w__i,
  300. .h2w__em {
  301. font-style: italic;
  302. }
  303. /**文本删除线**/
  304. .h2w__s,
  305. .h2w__strike,
  306. .h2w__del {
  307. text-decoration: line-through;
  308. }
  309. /**文本下划线**/
  310. .h2w__ins,
  311. .h2w__u {
  312. text-decoration: underline;
  313. }
  314. /**链接**/
  315. .h2w__a {
  316. margin: 0 8rpx;
  317. border-bottom-width: 1rpx;
  318. border-bottom-style: solid;
  319. line-height: 1;
  320. }
  321. .h2w__hr {
  322. height: 8rpx;
  323. margin: 40rpx 0;
  324. }
  325. /**荧光标记**/
  326. .h2w__mark {
  327. border-radius: 4rpx;
  328. }
  329. /**上标、下标**/
  330. .h2w__sup,
  331. .h2w__sub {
  332. font-size: 75%;
  333. position: relative;
  334. }
  335. .h2w__sup {
  336. top: -0.5em;
  337. }
  338. .h2w__sub {
  339. bottom: -0.25em;
  340. }
  341. /**emoji表情**/
  342. .h2w__g-emoji {
  343. margin: 0 0.1em;
  344. /* font-family: "Apple Color Emoji", "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol"; */
  345. }
  346. /**内置元素**/
  347. image,
  348. video {
  349. width: 100%;
  350. /* margin: 10rpx auto; */
  351. }
  352. image {
  353. height: auto;
  354. }
  355. video {
  356. height: 220px;
  357. }