refactor: 导航栏右侧样式优化
Former-commit-id: af72114efdff31af2d385b1be2f7a19ca2045c3d
This commit is contained in:
@@ -49,25 +49,19 @@ function logout() {
|
|||||||
<breadcrumb />
|
<breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 右侧导航 -->
|
<!-- 右侧导航设置 -->
|
||||||
<div class="navbar-right">
|
<div class="flex">
|
||||||
<!-- 导航栏设置(窄屏隐藏)-->
|
<!-- 导航栏设置(窄屏隐藏)-->
|
||||||
<div v-if="device !== 'mobile'" class="navbar-setting-wrapper">
|
|
||||||
|
<div v-if="device !== 'mobile'" class="flex items-center">
|
||||||
<!--全屏 -->
|
<!--全屏 -->
|
||||||
<screenfull
|
<screenfull class="navbar-setting-item" />
|
||||||
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
|
||||||
id="screenfull"
|
|
||||||
/>
|
|
||||||
<!-- 布局大小 -->
|
<!-- 布局大小 -->
|
||||||
<el-tooltip content="布局大小" effect="dark" placement="bottom">
|
<el-tooltip content="布局大小" effect="dark" placement="bottom">
|
||||||
<size-select
|
<size-select class="navbar-setting-item" />
|
||||||
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
|
||||||
/>
|
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<!--语言选择-->
|
<!--语言选择-->
|
||||||
<lang-select
|
<lang-select class="navbar-setting-item" />
|
||||||
class="navbar-setting-item hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 用户头像 -->
|
<!-- 用户头像 -->
|
||||||
@@ -112,19 +106,16 @@ function logout() {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-shadow: 0 0 1px #0003;
|
box-shadow: 0 0 1px #0003;
|
||||||
|
|
||||||
.navbar-right {
|
.navbar-setting-item {
|
||||||
display: flex;
|
height: 50px;
|
||||||
.navbar-setting-wrapper {
|
line-height: 50px;
|
||||||
display: flex;
|
width: 30px;
|
||||||
align-items: center;
|
display: inline-block;
|
||||||
.navbar-setting-item {
|
cursor: pointer;
|
||||||
height: 50px;
|
text-align: center;
|
||||||
line-height: 50px;
|
color: #5a5e66;
|
||||||
padding: 0 8px;
|
&:hover {
|
||||||
display: inline-block;
|
background: rgba(249, 250, 251, 1);
|
||||||
cursor: pointer;
|
|
||||||
color: #5a5e66;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ html.dark{
|
|||||||
.navbar {
|
.navbar {
|
||||||
background-color: var(--el-bg-color);
|
background-color: var(--el-bg-color);
|
||||||
color: var(--el-text-color-regular);
|
color: var(--el-text-color-regular);
|
||||||
|
.navbar-setting-item:hover{
|
||||||
|
background: var(--el-fill-color-light);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-panel-btn{
|
.right-panel-btn{
|
||||||
|
|||||||
Reference in New Issue
Block a user