feat: 添加交互效果
This commit is contained in:
@@ -56,10 +56,14 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 30px;
|
||||
height: 36px;
|
||||
padding: 0 12px;
|
||||
background-color: var(--bg-topbar);
|
||||
border-bottom: 1px solid var(--border-default);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
||||
/* 置顶,确保阴影覆盖下方内容 */
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.base-layout__topbar-title {
|
||||
@@ -72,7 +76,7 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
.base-layout__topbar-game-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
height: 100%;
|
||||
}
|
||||
@@ -80,8 +84,8 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
.base-layout__topbar-game-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
height: 100%;
|
||||
color: var(--text-primary);
|
||||
@@ -102,7 +106,9 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
height: 100%;
|
||||
padding: var(--space-sm);
|
||||
background-color: var(--bg-sidebar);
|
||||
border-right: 1px solid var(--border-default);
|
||||
/* 右边框加粗 + 阴影,与内容区形成清晰分界 */
|
||||
border-right: 2px solid var(--border-default);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.base-layout__sidebar-content {
|
||||
@@ -111,6 +117,10 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding-bottom: 72px;
|
||||
/* 内容区用白色卡片承载,与侧边栏底色拉开层次 */
|
||||
background-color: var(--bg-surface);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.base-layout__sidebar-bottom {
|
||||
@@ -131,21 +141,41 @@ const { activeGameIcon, activeGameName } = storeToRefs(baseLayoutStore)
|
||||
height: 100%;
|
||||
border-radius: var(--radius-md);
|
||||
background-color: var(--bg-surface);
|
||||
box-shadow: var(--shadow-sm);
|
||||
border: 1px solid var(--border-light);
|
||||
/* 加重的阴影 + 微妙的品牌色顶边,让用户栏从侧边栏中"浮起" */
|
||||
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
|
||||
border-top: 2px solid var(--color-primary-light);
|
||||
border-left: 1px solid var(--border-light);
|
||||
border-right: 1px solid var(--border-light);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.base-layout__resize-handle {
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
width: 6px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
right: 0;
|
||||
cursor: ew-resize;
|
||||
z-index: 10;
|
||||
/* 默认微弱可见,提示可拖拽 */
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
transparent 40%,
|
||||
var(--border-default) 40%,
|
||||
var(--border-default) 60%,
|
||||
transparent 60%,
|
||||
transparent 100%
|
||||
);
|
||||
transition: background-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--border-default);
|
||||
background-color: var(--color-primary-light);
|
||||
background: none;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user