Compare commits
2 Commits
8b6a39f6d2
...
8d987c6b1b
Author | SHA1 | Date | |
---|---|---|---|
|
8d987c6b1b | ||
|
bf62ea73e6 |
@ -6,8 +6,13 @@
|
|||||||
:isMobile="isMobile"
|
:isMobile="isMobile"
|
||||||
:handleMediaQuery="handleMediaQuery"
|
:handleMediaQuery="handleMediaQuery"
|
||||||
:handleCollapse="handleCollapse"
|
:handleCollapse="handleCollapse"
|
||||||
|
:logo="'/logo.png'"
|
||||||
|
title="竞赛管理系统"
|
||||||
fixedHeader
|
fixedHeader
|
||||||
fixSiderbar
|
fixSiderbar
|
||||||
|
:headerHeight="64"
|
||||||
|
:siderWidth="256"
|
||||||
|
primaryColor="#1890ff"
|
||||||
>
|
>
|
||||||
<template #menuHeaderRender>
|
<template #menuHeaderRender>
|
||||||
<a-avatar src="/logo.png" :size="40" />
|
<a-avatar src="/logo.png" :size="40" />
|
||||||
@ -100,56 +105,147 @@ export default {
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import "~ant-design-vue/es/style/themes/default.less";
|
@import "~ant-design-vue/es/style/themes/default.less";
|
||||||
|
|
||||||
.footer-container {
|
// 定义主题色变量
|
||||||
text-align: center;
|
@primary-color: #1890ff;
|
||||||
}
|
@primary-hover: #40a9ff;
|
||||||
|
@layout-header-background: linear-gradient(90deg, #1890ff, #36cfc9);
|
||||||
|
@menu-dark-bg: #001529;
|
||||||
|
@menu-dark-submenu-bg: #000c17;
|
||||||
|
|
||||||
.ant-layout-footer {
|
.ant-pro-global-header {
|
||||||
padding: 16px 24px;
|
background: @layout-header-background;
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
|
||||||
|
.ant-breadcrumb {
|
||||||
|
margin-left: 16px;
|
||||||
|
|
||||||
|
a, span {
|
||||||
|
color: rgba(255, 255, 255, 0.85);
|
||||||
|
transition: color 0.3s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-pro-sider-menu-logo {
|
.ant-pro-sider-menu-logo {
|
||||||
background-color: #002140;
|
position: relative;
|
||||||
|
height: 64px;
|
||||||
|
padding: 0 24px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: linear-gradient(180deg, #1890ff, #096dd9);
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: white;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 0 0 0 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
opacity: 1;
|
||||||
|
transition: all 0.3s;
|
||||||
|
background: linear-gradient(90deg, #fff, #e6f7ff);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(180deg, #096dd9, #1890ff);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-pro-basicLayout-content {
|
.ant-menu-dark {
|
||||||
margin: 10px 10px 0 10px;
|
background: linear-gradient(180deg, #001529, #002140);
|
||||||
padding: 10px;
|
|
||||||
background-color: white;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ant-pro-global-header-index-right {
|
.ant-menu-item {
|
||||||
margin-right: 8px;
|
margin: 4px 8px;
|
||||||
|
padding: 0 16px;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
|
||||||
&.ant-pro-global-header-index-dark {
|
&:hover {
|
||||||
.ant-pro-global-header-index-action {
|
background: linear-gradient(90deg, #1890ff, #40a9ff) !important;
|
||||||
color: hsla(0, 0%, 100%, 0.85);
|
transform: translateX(4px);
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&.ant-menu-item-selected {
|
||||||
background: #1890ff;
|
background: linear-gradient(90deg, #1890ff, #40a9ff) !important;
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
|
||||||
|
&::after {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-pro-account-avatar {
|
.ant-menu-submenu {
|
||||||
.antd-pro-global-header-index-avatar {
|
&-title {
|
||||||
margin: ~"calc((@{layout-header-height} - 24px) / 2)" 0;
|
margin: 4px 8px;
|
||||||
margin-right: 8px;
|
padding: 0 16px;
|
||||||
color: @primary-color;
|
border-radius: 4px;
|
||||||
vertical-align: top;
|
transition: all 0.3s;
|
||||||
background: rgba(255, 255, 255, 0.85);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu {
|
&:hover {
|
||||||
.anticon {
|
background: rgba(24, 144, 255, 0.1) !important;
|
||||||
margin-right: 8px;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-dropdown-menu-item {
|
&-open {
|
||||||
min-width: 100px;
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-pro-basicLayout-content {
|
||||||
|
margin: 24px;
|
||||||
|
padding: 24px;
|
||||||
|
background: #f0f2f5;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
|
||||||
|
min-height: calc(100vh - 128px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-container {
|
||||||
|
text-align: center;
|
||||||
|
color: rgba(0, 0, 0, 0.45);
|
||||||
|
padding: 16px;
|
||||||
|
background: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 0 24px;
|
||||||
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: rgba(0, 0, 0, 0.65);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-pro-global-header-index-right {
|
||||||
|
margin-right: 16px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.ant-pro-global-header-index-action {
|
||||||
|
padding: 0 12px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.3s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-avatar {
|
||||||
|
margin-right: 8px;
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -209,42 +209,73 @@ function getTabKey(target, depth = 0) {
|
|||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.tab-layout {
|
.tab-layout {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 6px 4px 0;
|
padding: 8px 12px 0;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 12px;
|
||||||
height: 32px !important;
|
height: 40px !important;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
|
||||||
|
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
:deep(.ant-tabs-bar) {
|
:deep(.ant-tabs-bar) {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
|
background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-tabs-nav-container) {
|
:deep(.ant-tabs-nav-container) {
|
||||||
height: 32px !important;
|
height: 40px !important;
|
||||||
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-tabs-tab) {
|
:deep(.ant-tabs-tab) {
|
||||||
margin-right: 6px;
|
position: relative;
|
||||||
height: 32px !important;
|
margin: 0 4px;
|
||||||
line-height: 32px !important;
|
height: 36px !important;
|
||||||
background: #fafafa;
|
line-height: 36px !important;
|
||||||
border: 1px solid #f0f0f0;
|
background: rgba(250, 250, 250, 0.8);
|
||||||
border-radius: 4px;
|
border: 1px solid rgba(240, 240, 240, 0.6);
|
||||||
transition: all 0.3s;
|
border-radius: 6px;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 1px;
|
||||||
|
background: linear-gradient(45deg, transparent, rgba(24, 144, 255, 0.1));
|
||||||
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||||
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
||||||
|
-webkit-mask-composite: xor;
|
||||||
|
mask-composite: exclude;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
background: #e6f7ff;
|
background: rgba(230, 247, 255, 0.8);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.ant-tabs-tab-active {
|
&.ant-tabs-tab-active {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-color: #1890ff;
|
border-color: rgba(24, 144, 255, 0.3);
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
|
box-shadow: 0 2px 12px rgba(24, 144, 255, 0.1);
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
background: linear-gradient(45deg, #1890ff20, #40a9ff20);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-tabs-close-x {
|
.ant-tabs-close-x {
|
||||||
@ -252,12 +283,19 @@ function getTabKey(target, depth = 0) {
|
|||||||
height: 16px;
|
height: 16px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
margin-right: -4px;
|
margin-right: -4px;
|
||||||
margin-left: 4px;
|
margin-left: 8px;
|
||||||
opacity: 0.45;
|
opacity: 0.4;
|
||||||
|
transition: all 0.3s;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
color: #ff4d4f;
|
color: #ff4d4f;
|
||||||
|
background: rgba(255, 77, 79, 0.1);
|
||||||
|
transform: rotate(90deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,32 +306,39 @@ function getTabKey(target, depth = 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb {
|
|
||||||
margin-bottom: 12px;
|
|
||||||
padding: 8px 24px;
|
|
||||||
background: #fff;
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 右键菜单样式优化
|
// 右键菜单样式优化
|
||||||
:deep(.context-menu) {
|
:deep(.context-menu) {
|
||||||
background: #fff;
|
background: rgba(255, 255, 255, 0.98);
|
||||||
border-radius: 4px;
|
backdrop-filter: blur(10px);
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08),
|
||||||
|
0 2px 4px rgba(0, 0, 0, 0.02);
|
||||||
|
border: 1px solid rgba(240, 240, 240, 0.6);
|
||||||
|
padding: 4px;
|
||||||
|
|
||||||
.menu-item {
|
.menu-item {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
|
margin: 2px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s;
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: #e6f7ff;
|
background: rgba(24, 144, 255, 0.08);
|
||||||
color: #1890ff;
|
color: #1890ff;
|
||||||
|
transform: translateX(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.anticon {
|
.anticon {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .anticon {
|
||||||
|
transform: scale(1.1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user