style.css 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. html, body {
  7. height: 100%;
  8. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  9. font-size: 14px;
  10. color: #333;
  11. background: #f7f8fa;
  12. -webkit-font-smoothing: antialiased;
  13. -webkit-tap-highlight-color: transparent;
  14. }
  15. /* 禁止所有元素出现文本光标和选中 */
  16. * {
  17. -webkit-user-select: none;
  18. user-select: none;
  19. }
  20. /* 输入框和文本域允许选中 */
  21. input, textarea, [contenteditable] {
  22. -webkit-user-select: text;
  23. user-select: text;
  24. }
  25. #app {
  26. height: 100%;
  27. }
  28. #app-root {
  29. height: 100%;
  30. overflow-y: auto;
  31. }
  32. .with-bottom-nav {
  33. padding-bottom: 50px;
  34. }
  35. .ellipsis {
  36. overflow: hidden;
  37. text-overflow: ellipsis;
  38. white-space: nowrap;
  39. }
  40. .safe-area-bottom {
  41. padding-bottom: env(safe-area-inset-bottom);
  42. }
  43. /* 修复 Vant Toast 在独立 Vue app 中丢失 CSS 变量,背景变白文字不可见 */
  44. .van-toast {
  45. color: #fff !important;
  46. background: rgba(0, 0, 0, 0.75) !important;
  47. }