towxml.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**基础风格样式**/
  2. @import './style/main.wxss';
  3. /**主题配色(浅色样式)**/
  4. @import './style/theme/light.wxss';
  5. /**主题配色(深色样式)**/
  6. @import './style/theme/dark.wxss';
  7. /**样式覆盖 - 适配聊天消息场景**/
  8. .h2w {
  9. font-size: 28rpx !important;
  10. line-height: 1.5 !important;
  11. font-weight: normal !important;
  12. text-align: left !important;
  13. margin: 0 !important;
  14. padding: 0 !important;
  15. }
  16. /* 使用更具体的选择器确保样式覆盖生效 */
  17. .h2w .h2w__main,
  18. view.h2w .h2w__main,
  19. .h2w view.h2w__main {
  20. margin: 0 !important;
  21. padding: 0 !important;
  22. padding-top: 0 !important;
  23. padding-bottom: 0 !important;
  24. padding-left: 0 !important;
  25. padding-right: 0 !important;
  26. }
  27. /* 标题样式统一 */
  28. .h2w .h2w__h1,
  29. .h2w .h2w__h2,
  30. .h2w .h2w__h3,
  31. .h2w .h2w__h4,
  32. .h2w .h2w__h5,
  33. .h2w .h2w__h6 {
  34. font-size: 28rpx !important;
  35. margin: 0 !important;
  36. padding: 0 !important;
  37. line-height: 1.5 !important;
  38. font-weight: normal !important;
  39. border: none !important;
  40. }
  41. /* 段落样式 */
  42. .h2w .h2w__p {
  43. margin: 0 !important;
  44. padding: 0 !important;
  45. line-height: 1.5 !important;
  46. font-size: 28rpx !important;
  47. }
  48. /* 加粗文本 - 确保不换行 */
  49. .h2w .h2w__b,
  50. .h2w .h2w__strong {
  51. display: inline !important;
  52. font-weight: bold !important;
  53. white-space: normal !important;
  54. word-break: keep-all !important;
  55. }
  56. /* 列表样式 */
  57. .h2w .h2w__ul,
  58. .h2w .h2w__ol {
  59. margin: 0 !important;
  60. padding-left: 40rpx !important;
  61. }
  62. .h2w .h2w__li {
  63. margin: 0 !important;
  64. line-height: 1.5 !important;
  65. font-size: 28rpx !important;
  66. }