OmniCS / frontend /src /index.css
qf46578's picture
🦞 Add: frontend/src/index.css
dafd1d9 verified
Raw History Blame Contribute Delete
1.52 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color: #213547;
background-color: #f5f5f5;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
}
#root {
min-height: 100vh;
}
/* 自定义滚动条 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a1a1a1;
}
/* 消息气泡样式 */
.message-bubble {
@apply px-4 py-2 rounded-lg max-w-[70%];
}
.message-bubble-inbound {
@apply bg-gray-100 text-gray-800;
}
.message-bubble-outbound {
@apply bg-blue-500 text-white;
}
/* 动画 */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.fade-in {
animation: fadeIn 0.3s ease-out;
}
/* 在线状态指示器 */
.status-indicator {
@apply w-2 h-2 rounded-full;
}
.status-online {
@apply bg-green-500;
}
.status-offline {
@apply bg-gray-400;
}
.status-busy {
@apply bg-red-500;
}
/* 未读消息徽章 */
.unread-badge {
@apply bg-red-500 text-white text-xs min-w-[18px] h-[18px] rounded-full flex items-center justify-center px-1;
}