Spaces:
Sleeping
Sleeping
/* Tailwind基础样式 */ | |
@import 'tailwindcss/base'; | |
@import 'tailwindcss/components'; | |
@import 'tailwindcss/utilities'; | |
/* 全局样式 */ | |
html, body { | |
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
color: #000000; | |
height: 100%; | |
} | |
#root { | |
min-height: 100%; | |
display: flex; | |
flex-direction: column; | |
} | |
/* 滚动条样式 */ | |
::-webkit-scrollbar { | |
width: 8px; | |
height: 8px; | |
} | |
::-webkit-scrollbar-track { | |
background: transparent; | |
} | |
::-webkit-scrollbar-thumb { | |
background: #d1d1d6; | |
border-radius: 4px; | |
} | |
::-webkit-scrollbar-thumb:hover { | |
background: #c7c7cc; | |
} | |
/* 文本溢出处理 */ | |
.line-clamp-1 { | |
display: -webkit-box; | |
-webkit-line-clamp: 1; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
} | |
.line-clamp-2 { | |
display: -webkit-box; | |
-webkit-line-clamp: 2; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
} | |
.line-clamp-3 { | |
display: -webkit-box; | |
-webkit-line-clamp: 3; | |
-webkit-box-orient: vertical; | |
overflow: hidden; | |
} | |
/* 修复安全区域问题 */ | |
@supports (padding: max(0px)) { | |
.ios-safe-padding-bottom { | |
padding-bottom: max(16px, env(safe-area-inset-bottom)); | |
} | |
.ios-toolbar { | |
padding-bottom: env(safe-area-inset-bottom); | |
} | |
} |