Files
YG-Datasets/easy-dataset-main/app/globals.css

123 lines
2.0 KiB
CSS
Raw Normal View History

2026-03-17 14:36:31 +08:00
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
width: 100%;
max-width: 100%;
overflow-x: hidden;
height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 避免根滚动条显隐导致页面横向抖动 */
html {
overflow-y: auto;
}
a {
color: inherit;
text-decoration: none;
}
/* 渐变文本样式 */
.gradient-text {
background: linear-gradient(90deg, #2a5caa 0%, #8b5cf6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
}
/* 页面容器下间距 */
main {
min-height: calc(100vh - 64px);
}
/* 自定义滚动条 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.3);
}
/* 暗色模式滚动条 */
[data-theme='dark'] ::-webkit-scrollbar-thumb {
background-color: rgba(255, 255, 255, 0.2);
}
[data-theme='dark'] ::-webkit-scrollbar-thumb:hover {
background-color: rgba(255, 255, 255, 0.3);
}
/* 方便的间距类 */
.mt-1 {
margin-top: 8px;
}
.mt-2 {
margin-top: 16px;
}
.mt-3 {
margin-top: 24px;
}
.mt-4 {
margin-top: 32px;
}
.mb-1 {
margin-bottom: 8px;
}
.mb-2 {
margin-bottom: 16px;
}
.mb-3 {
margin-bottom: 24px;
}
.mb-4 {
margin-bottom: 32px;
}
/* 响应式样式 */
@media (max-width: 600px) {
.hide-on-mobile {
display: none !important;
}
}
/* 输入框和选择框边框简化 */
.plain-select .MuiOutlinedInput-notchedOutline,
.plain-input .MuiOutlinedInput-notchedOutline {
border-color: transparent !important;
}
/* 卡片悬停效果 */
.hover-card {
transition:
transform 0.2s ease,
box-shadow 0.2s ease;
}
.hover-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}
[data-theme='dark'] .hover-card:hover {
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}