Files
FileCodeBoxFronted2026/src/assets/style/main.css
T
2026-06-05 12:45:07 +08:00

157 lines
4.2 KiB
CSS

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@font-face {
font-family: 'DingTalk';
src: url('@/assets/font/DingTalk.ttf') format('truetype');
}
* {
font-family: 'DingTalk', sans-serif !important;
}
.native-date-input {
color-scheme: light;
}
.dark .native-date-input {
color-scheme: dark;
}
.native-date-input::-webkit-calendar-picker-indicator {
cursor: pointer;
min-height: 2.75rem;
min-width: 2.75rem;
}
.theme-2026-card {
position: relative;
overflow: hidden;
border: 1px solid rgba(191, 208, 211, 0.72);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 245, 0.9)),
radial-gradient(circle at 14% 10%, rgba(122, 159, 171, 0.18), transparent 30%);
box-shadow: 0 14px 34px rgba(128, 151, 155, 0.22);
}
.theme-2026-card::before {
content: '';
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(120deg, rgba(255, 255, 255, 0.48), transparent 42%);
opacity: 0.74;
}
.theme-2026-card > * {
position: relative;
}
.theme-2026-card-hover {
transition:
transform 220ms ease,
border-color 220ms ease,
box-shadow 220ms ease,
background-color 220ms ease;
}
.theme-2026-card-hover:hover {
border-color: rgba(116, 153, 165, 0.86);
box-shadow: 0 20px 42px rgba(114, 143, 150, 0.32);
}
.dark .theme-2026-card {
border-color: rgba(68, 86, 94, 0.82);
background:
linear-gradient(135deg, rgba(34, 49, 56, 0.96), rgba(24, 35, 42, 0.92)),
radial-gradient(circle at 14% 10%, rgba(102, 142, 156, 0.18), transparent 32%);
box-shadow: 0 16px 36px rgba(4, 10, 14, 0.34);
}
.dark .theme-2026-card-hover:hover {
border-color: rgba(113, 153, 168, 0.68);
box-shadow: 0 20px 44px rgba(4, 10, 14, 0.46);
}
.data-table-2026 thead th {
background: rgba(236, 244, 246, 0.76);
}
.data-table-2026 thead th:first-child {
border-radius: 30px 0 0 30px;
}
.data-table-2026 thead th:last-child {
border-radius: 0 30px 30px 0;
}
.file-row-2026 > td {
border-top: 1px solid rgba(199, 213, 216, 0.78);
border-bottom: 1px solid rgba(199, 213, 216, 0.78);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 248, 0.92)),
radial-gradient(circle at 0% 0%, rgba(129, 163, 174, 0.18), transparent 32%);
box-shadow: 0 12px 28px rgba(126, 149, 154, 0.2);
transition:
background 220ms ease,
border-color 220ms ease,
box-shadow 220ms ease;
}
.file-row-2026 > td:first-child {
border-left: 1px solid rgba(199, 213, 216, 0.78);
border-radius: 30px 0 0 30px;
}
.file-row-2026 > td:last-child {
border-right: 1px solid rgba(199, 213, 216, 0.78);
border-radius: 0 30px 30px 0;
}
.file-row-2026:hover > td {
border-color: rgba(126, 162, 173, 0.9);
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(230, 241, 244, 0.96)),
radial-gradient(circle at 0% 0%, rgba(112, 151, 164, 0.22), transparent 34%);
box-shadow: 0 18px 38px rgba(115, 142, 149, 0.3);
}
.file-row-2026.is-selected > td {
border-color: rgba(112, 151, 164, 0.96);
background:
linear-gradient(135deg, rgba(236, 246, 249, 0.98), rgba(219, 235, 240, 0.96)),
radial-gradient(circle at 0% 0%, rgba(91, 135, 151, 0.2), transparent 36%);
}
.file-row-2026.is-muted > td {
opacity: 0.74;
}
.dark .data-table-2026 thead th {
background: rgba(31, 45, 52, 0.82);
}
.dark .file-row-2026 > td {
border-color: rgba(68, 86, 94, 0.82);
background:
linear-gradient(135deg, rgba(35, 50, 57, 0.96), rgba(25, 38, 45, 0.94)),
radial-gradient(circle at 0% 0%, rgba(101, 139, 154, 0.18), transparent 34%);
box-shadow: 0 14px 30px rgba(4, 10, 14, 0.32);
}
.dark .file-row-2026:hover > td {
border-color: rgba(113, 153, 168, 0.72);
background:
linear-gradient(135deg, rgba(40, 58, 66, 0.98), rgba(28, 43, 51, 0.96)),
radial-gradient(circle at 0% 0%, rgba(105, 150, 166, 0.24), transparent 36%);
box-shadow: 0 18px 38px rgba(4, 10, 14, 0.48);
}
.dark .file-row-2026.is-selected-dark > td {
border-color: rgba(121, 161, 176, 0.82);
background:
linear-gradient(135deg, rgba(42, 62, 72, 0.98), rgba(29, 48, 58, 0.96)),
radial-gradient(circle at 0% 0%, rgba(117, 166, 184, 0.22), transparent 36%);
}