|
@@ -341,15 +341,16 @@
|
|
|
left: 0;
|
|
left: 0;
|
|
|
right: 0;
|
|
right: 0;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- justify-content: space-between; // 两端对齐
|
|
|
|
|
|
|
+ justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- padding: $spacing-4;
|
|
|
|
|
|
|
+ padding: $spacing-3 $spacing-4;
|
|
|
background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
|
|
background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
|
|
|
border-top: 1px solid $border-light;
|
|
border-top: 1px solid $border-light;
|
|
|
opacity: 0;
|
|
opacity: 0;
|
|
|
transform: translateY($spacing-2);
|
|
transform: translateY($spacing-2);
|
|
|
transition: $transition-base;
|
|
transition: $transition-base;
|
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
|
|
|
+ gap: $spacing-2;
|
|
|
|
|
|
|
|
.app-card:hover & {
|
|
.app-card:hover & {
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
@@ -357,109 +358,53 @@
|
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Dropdown 容器样式(左侧按钮)
|
|
|
|
|
|
|
+ // 按钮样式 - 使用全局 .ant-btn-default 和 .ant-btn-primary
|
|
|
|
|
+ // 只定义布局,不覆盖颜色样式
|
|
|
|
|
+
|
|
|
|
|
+ // Dropdown 容器
|
|
|
.card-operation-dropdown {
|
|
.card-operation-dropdown {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
|
|
|
.ant-btn {
|
|
.ant-btn {
|
|
|
- min-width: 90px;
|
|
|
|
|
- max-width: 160px;
|
|
|
|
|
- height: 40px;
|
|
|
|
|
- background: $bg-tertiary;
|
|
|
|
|
- border: 1px solid $border-base;
|
|
|
|
|
- border-radius: $radius-lg;
|
|
|
|
|
- font-size: $font-md;
|
|
|
|
|
- font-weight: $font-weight-medium;
|
|
|
|
|
- color: $text-primary;
|
|
|
|
|
- transition: $transition-base;
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: $border-base;
|
|
|
|
|
- border-color: $border-dark;
|
|
|
|
|
- color: $text-primary;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ white-space: nowrap;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 左侧按钮(更多操作 / API 接入)- 直接样式
|
|
|
|
|
|
|
+ // 左侧按钮(更多操作 / API 接入)
|
|
|
.card-operation-btn {
|
|
.card-operation-btn {
|
|
|
flex: 0 0 auto;
|
|
flex: 0 0 auto;
|
|
|
- min-width: 90px;
|
|
|
|
|
- max-width: 160px;
|
|
|
|
|
- height: 40px;
|
|
|
|
|
- background: $bg-tertiary;
|
|
|
|
|
- border: 1px solid $border-base;
|
|
|
|
|
- border-radius: $radius-lg;
|
|
|
|
|
- font-size: $font-md;
|
|
|
|
|
- font-weight: $font-weight-medium;
|
|
|
|
|
- color: $text-primary;
|
|
|
|
|
- transition: $transition-base;
|
|
|
|
|
- display: inline-flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: $border-base;
|
|
|
|
|
- border-color: $border-dark;
|
|
|
|
|
- color: $text-primary;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
|
|
|
svg {
|
|
svg {
|
|
|
- width: 18px;
|
|
|
|
|
- height: 18px;
|
|
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 16px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 右侧按钮(立即使用)
|
|
// 右侧按钮(立即使用)
|
|
|
.card-use-btn {
|
|
.card-use-btn {
|
|
|
flex: 0 0 auto;
|
|
flex: 0 0 auto;
|
|
|
- min-width: 90px;
|
|
|
|
|
- max-width: 160px;
|
|
|
|
|
- height: 40px;
|
|
|
|
|
- background: linear-gradient(135deg, $primary-color 0%, $primary-light 100%);
|
|
|
|
|
- border: none;
|
|
|
|
|
- border-radius: $radius-lg;
|
|
|
|
|
- font-size: $font-md;
|
|
|
|
|
- font-weight: $font-weight-semibold;
|
|
|
|
|
- color: $bg-secondary;
|
|
|
|
|
- box-shadow: 0 4px 12px rgba(0, 93, 128, 0.3);
|
|
|
|
|
- transition: $transition-base;
|
|
|
|
|
- display: inline-flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
-
|
|
|
|
|
- &:hover {
|
|
|
|
|
- background: linear-gradient(135deg, $primary-dark 0%, $primary-color 100%);
|
|
|
|
|
- box-shadow: 0 6px 16px rgba(0, 93, 128, 0.4);
|
|
|
|
|
- transform: translateY(-$spacing-1);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- &:active {
|
|
|
|
|
- transform: translateY(0);
|
|
|
|
|
- box-shadow: 0 2px 8px rgba(0, 93, 128, 0.2);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
|
|
|
svg {
|
|
svg {
|
|
|
- width: 18px;
|
|
|
|
|
- height: 18px;
|
|
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 16px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 响应式:窄屏时调整按钮尺寸
|
|
|
|
|
|
|
+ // 响应式:窄屏时调整
|
|
|
@media (max-width: $screen-md) {
|
|
@media (max-width: $screen-md) {
|
|
|
- padding: $spacing-3;
|
|
|
|
|
|
|
+ padding: $spacing-2 $spacing-3;
|
|
|
|
|
+ gap: $spacing-1;
|
|
|
|
|
|
|
|
- .card-operation-dropdown .ant-btn,
|
|
|
|
|
.card-operation-btn,
|
|
.card-operation-btn,
|
|
|
.card-use-btn {
|
|
.card-use-btn {
|
|
|
- min-width: 80px;
|
|
|
|
|
- max-width: 140px;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
font-size: $font-sm;
|
|
font-size: $font-sm;
|
|
|
|
|
|
|
|
svg {
|
|
svg {
|
|
|
- width: 16px;
|
|
|
|
|
- height: 16px;
|
|
|
|
|
|
|
+ width: 14px;
|
|
|
|
|
+ height: 14px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -467,12 +412,30 @@
|
|
|
@media (max-width: $screen-sm) {
|
|
@media (max-width: $screen-sm) {
|
|
|
padding: $spacing-2;
|
|
padding: $spacing-2;
|
|
|
|
|
|
|
|
- .card-operation-dropdown .ant-btn,
|
|
|
|
|
.card-operation-btn,
|
|
.card-operation-btn,
|
|
|
.card-use-btn {
|
|
.card-use-btn {
|
|
|
- min-width: 70px;
|
|
|
|
|
- max-width: 120px;
|
|
|
|
|
|
|
+ font-size: $font-xs;
|
|
|
height: 32px;
|
|
height: 32px;
|
|
|
|
|
+
|
|
|
|
|
+ svg {
|
|
|
|
|
+ width: 12px;
|
|
|
|
|
+ height: 12px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 超窄卡片适配(卡片宽度小于 280px 时)
|
|
|
|
|
+ @media (max-width: 320px) {
|
|
|
|
|
+ padding: $spacing-2;
|
|
|
|
|
+ gap: $spacing-1;
|
|
|
|
|
+
|
|
|
|
|
+ .card-operation-btn {
|
|
|
|
|
+ padding: 0 $spacing-2;
|
|
|
|
|
+ font-size: $font-xs;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .card-use-btn {
|
|
|
|
|
+ padding: 0 $spacing-2;
|
|
|
font-size: $font-xs;
|
|
font-size: $font-xs;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|