Files
MuMuAINovel/frontend/src/index.css
T

134 lines
2.4 KiB
CSS
Raw Normal View History

2025-10-30 11:14:43 +08:00
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(0, 0, 0, 0.87);
background-color: #f0f2f5;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* 移动端视口适配 */
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
min-height: 100vh;
/* 禁止移动端双击缩放 */
touch-action: manipulation;
}
#root {
min-height: 100vh;
}
* {
box-sizing: border-box;
}
/* 自定义滚动条样式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Firefox 滚动条样式 */
* {
scrollbar-width: thin;
scrollbar-color: #c1c1c1 #f1f1f1;
}
/* 移动端响应式样式 */
@media (max-width: 768px) {
:root {
font-size: 14px;
}
/* 移动端隐藏滚动条 */
::-webkit-scrollbar {
width: 4px;
height: 4px;
}
/* 移动端优化触摸区域 */
button, a, [role="button"] {
min-height: 44px;
min-width: 44px;
}
}
@media (max-width: 576px) {
:root {
font-size: 13px;
}
}
/* 移动端安全区域适配 (iPhone X+) */
@supports (padding: max(0px)) {
body {
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
}
}
/* 移动端禁止长按选择 */
@media (max-width: 768px) {
img, button {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
/* 修复移动端表格分页器对齐问题 */
.ant-pagination-simple {
display: flex;
align-items: center;
justify-content: center;
}
.ant-pagination-simple .ant-pagination-simple-pager {
display: inline-flex;
align-items: center;
margin: 0 8px;
}
.ant-pagination-simple .ant-pagination-simple-pager input {
margin: 0 4px;
}
.ant-pagination-simple .ant-pagination-prev,
.ant-pagination-simple .ant-pagination-next {
display: inline-flex;
align-items: center;
justify-content: center;
}
}
.ant-tabs-dropdown {
z-index: 2000 !important;
}