first-update
This commit is contained in:
122
easy-dataset-main/app/globals.css
Normal file
122
easy-dataset-main/app/globals.css
Normal file
@@ -0,0 +1,122 @@
|
||||
* {
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user