西藏巴青项目

app-lang.scss 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * 汉藏双语与藏文专项(与 doc/uni-app标准.md 一致)
  3. * 全站 rpx;勿对正文使用 overflow: hidden 截断
  4. */
  5. @font-face {
  6. font-family: 'Noto Sans Tibetan';
  7. src: url('/static/fonts/NotoSerifTibetan-Regular.ttf') format('truetype');
  8. font-weight: normal;
  9. font-style: normal;
  10. font-display: swap;
  11. }
  12. .lang-zh {
  13. font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  14. letter-spacing: 0;
  15. line-height: 1.5;
  16. }
  17. .lang-bo {
  18. font-family: 'Noto Sans Tibetan', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  19. letter-spacing: 2rpx;
  20. line-height: 1.7;
  21. }
  22. /* 藏文正文字号较中文略小(约 2~4rpx),由组件内 .text-body 等配合 lang 类控制 */
  23. .lang-bo .text-body {
  24. font-size: 26rpx;
  25. line-height: 1.7;
  26. letter-spacing: 2rpx;
  27. word-break: break-word;
  28. overflow-wrap: anywhere;
  29. white-space: normal;
  30. }
  31. .lang-zh .text-body {
  32. font-size: 30rpx;
  33. line-height: 1.5;
  34. word-break: break-word;
  35. overflow-wrap: anywhere;
  36. white-space: normal;
  37. }
  38. .lang-bo .text-title {
  39. font-size: 32rpx;
  40. line-height: 1.7;
  41. letter-spacing: 2rpx;
  42. word-break: break-word;
  43. overflow-wrap: anywhere;
  44. }
  45. .lang-zh .text-title {
  46. font-size: 36rpx;
  47. line-height: 1.5;
  48. word-break: break-word;
  49. overflow-wrap: anywhere;
  50. }
  51. /* 按钮、文本区:允许换行、随内容增高,禁止用固定高截断 */
  52. .lang-bo .btn-text,
  53. .lang-zh .btn-text {
  54. white-space: normal;
  55. word-break: break-word;
  56. overflow-wrap: anywhere;
  57. text-align: center;
  58. }