西藏巴青项目

style.css 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* 思源黑体:文件放在 public/font,构建后路径为 /font/... */
  2. @font-face {
  3. font-family: "Source Han Sans SC";
  4. src: url("/font/SourceHanSansSC.woff2") format("woff2");
  5. font-weight: 100 900;
  6. font-style: normal;
  7. font-display: swap;
  8. }
  9. /* 大屏全局:占满视口、去掉默认边距,避免 Vite 模板里 #app 定宽影响 21:9 缩放 */
  10. html,
  11. body {
  12. margin: 0;
  13. width: 100%;
  14. height: 100%;
  15. overflow: hidden;
  16. background: var(--screen-bg);
  17. font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  18. }
  19. #app {
  20. width: 100%;
  21. height: 100%;
  22. margin: 0;
  23. }
  24. /* 双语块:上行汉语,下行藏文(符合 doc/可视化大屏.md) */
  25. .bilingual {
  26. display: flex;
  27. flex-direction: column;
  28. align-items: flex-start;
  29. gap: 4px;
  30. line-height: 1.35;
  31. }
  32. .bilingual__zh {
  33. font-size: inherit;
  34. font-weight: 600;
  35. color: #e8eef5;
  36. }
  37. .bilingual__bo {
  38. font-size: 0.85em;
  39. font-weight: 400;
  40. color: #9fb0c3;
  41. }
  42. /* 路由页面根节点:在 ScreenLayout 的 screen-body 内撑满剩余高度 */
  43. .screen-page {
  44. flex: 1;
  45. min-height: 0;
  46. display: flex;
  47. flex-direction: column;
  48. /* 中间地图区域无面板,点击穿透到底图 */
  49. pointer-events: none;
  50. }
  51. .screen-page > * {
  52. pointer-events: auto;
  53. }