| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /**
- * 汉藏双语与藏文专项(与 doc/uni-app标准.md 一致)
- * 全站 rpx;勿对正文使用 overflow: hidden 截断
- */
- @font-face {
- font-family: 'Noto Sans Tibetan';
- src: url('/static/fonts/NotoSerifTibetan-Regular.ttf') format('truetype');
- font-weight: normal;
- font-style: normal;
- font-display: swap;
- }
- .lang-zh {
- font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
- letter-spacing: 0;
- line-height: 1.5;
- }
- .lang-bo {
- font-family: 'Noto Sans Tibetan', 'PingFang SC', 'Microsoft YaHei', sans-serif;
- letter-spacing: 2rpx;
- line-height: 1.7;
- }
- /* 藏文正文字号较中文略小(约 2~4rpx),由组件内 .text-body 等配合 lang 类控制 */
- .lang-bo .text-body {
- font-size: 26rpx;
- line-height: 1.7;
- letter-spacing: 2rpx;
- word-break: break-word;
- overflow-wrap: anywhere;
- white-space: normal;
- }
- .lang-zh .text-body {
- font-size: 30rpx;
- line-height: 1.5;
- word-break: break-word;
- overflow-wrap: anywhere;
- white-space: normal;
- }
- .lang-bo .text-title {
- font-size: 32rpx;
- line-height: 1.7;
- letter-spacing: 2rpx;
- word-break: break-word;
- overflow-wrap: anywhere;
- }
- .lang-zh .text-title {
- font-size: 36rpx;
- line-height: 1.5;
- word-break: break-word;
- overflow-wrap: anywhere;
- }
- /* 按钮、文本区:允许换行、随内容增高,禁止用固定高截断 */
- .lang-bo .btn-text,
- .lang-zh .btn-text {
- white-space: normal;
- word-break: break-word;
- overflow-wrap: anywhere;
- text-align: center;
- }
|