优化
This commit is contained in:
@@ -770,7 +770,7 @@ onMounted(async () => {
|
||||
|
||||
.sidebar-slide-enter-active,
|
||||
.sidebar-slide-leave-active {
|
||||
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all var(--duration-slow) cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.sidebar-slide-enter-from,
|
||||
@@ -790,7 +790,7 @@ onMounted(async () => {
|
||||
margin-bottom: var(--space-3);
|
||||
|
||||
span {
|
||||
font-size: 11px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
color: var(--color-gray-500);
|
||||
text-transform: uppercase;
|
||||
@@ -829,7 +829,7 @@ onMounted(async () => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 10px var(--space-3);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-md);
|
||||
margin-bottom: 2px;
|
||||
@@ -860,8 +860,8 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
&__icon {
|
||||
margin-right: 10px;
|
||||
font-size: 14px;
|
||||
margin-right: var(--space-2);
|
||||
font-size: var(--font-size-base);
|
||||
color: var(--color-gray-500);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -881,7 +881,7 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
&__count {
|
||||
font-size: 11px;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-gray-500);
|
||||
margin-right: var(--space-2);
|
||||
}
|
||||
@@ -922,7 +922,7 @@ onMounted(async () => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all var(--duration-slow) cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
// ========================================
|
||||
@@ -942,7 +942,7 @@ onMounted(async () => {
|
||||
.category-switcher {
|
||||
display: flex;
|
||||
background: var(--color-gray-50);
|
||||
border-radius: 10px;
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-1);
|
||||
gap: var(--space-1);
|
||||
|
||||
@@ -950,13 +950,13 @@ onMounted(async () => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
padding: 10px var(--space-5);
|
||||
padding: var(--space-2) var(--space-5);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
font-size: var(--font-size-base);
|
||||
font-weight: 500;
|
||||
color: var(--color-gray-600);
|
||||
transition: all 0.25s ease;
|
||||
transition: all var(--duration-base) ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--color-gray-900);
|
||||
@@ -974,9 +974,9 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 16px;
|
||||
font-size: var(--font-size-md);
|
||||
color: var(--color-gray-500);
|
||||
transition: color 0.25s ease;
|
||||
transition: color var(--duration-base) ease;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1013,7 +1013,7 @@ onMounted(async () => {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--color-primary-500), var(--color-primary-400));
|
||||
border-radius: 2px;
|
||||
transition: width 0.3s ease;
|
||||
transition: width var(--duration-slow) ease;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1066,13 +1066,13 @@ onMounted(async () => {
|
||||
&__info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: var(--space-2);
|
||||
font-size: var(--font-size-base);
|
||||
color: var(--color-gray-900);
|
||||
|
||||
.anticon {
|
||||
color: var(--color-primary-500);
|
||||
font-size: 16px;
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
|
||||
strong {
|
||||
@@ -1089,7 +1089,7 @@ onMounted(async () => {
|
||||
|
||||
.fade-slide-enter-active,
|
||||
.fade-slide-leave-active {
|
||||
transition: all 0.3s ease;
|
||||
transition: all var(--duration-slow) ease;
|
||||
}
|
||||
|
||||
.fade-slide-enter-from,
|
||||
@@ -1159,7 +1159,7 @@ onMounted(async () => {
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all var(--duration-slow) cubic-bezier(0.4, 0, 0.2, 1);
|
||||
|
||||
&:hover {
|
||||
border-color: var(--color-primary-500);
|
||||
@@ -1193,8 +1193,8 @@ onMounted(async () => {
|
||||
// 选择指示器
|
||||
&__check {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
top: var(--space-2);
|
||||
left: var(--space-2);
|
||||
z-index: 10;
|
||||
opacity: 0;
|
||||
transition: opacity var(--duration-fast);
|
||||
@@ -1234,14 +1234,14 @@ onMounted(async () => {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 10;
|
||||
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
|
||||
background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.4s ease;
|
||||
transition: transform var(--duration-slower) ease;
|
||||
}
|
||||
|
||||
&:hover img {
|
||||
@@ -1270,11 +1270,11 @@ onMounted(async () => {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
transition: opacity var(--duration-slow) ease;
|
||||
}
|
||||
|
||||
&__type-tag {
|
||||
font-size: 11px;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
text-transform: uppercase;
|
||||
@@ -1283,7 +1283,7 @@ onMounted(async () => {
|
||||
|
||||
// 信息区
|
||||
&__info {
|
||||
padding: 14px;
|
||||
padding: var(--space-3) var(--space-4);
|
||||
}
|
||||
|
||||
&__name {
|
||||
@@ -1330,7 +1330,7 @@ onMounted(async () => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 14px var(--space-6);
|
||||
padding: var(--space-3) var(--space-6);
|
||||
background: var(--color-bg-card);
|
||||
border-top: 1px solid var(--color-gray-200);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user