✨ feat: 样式调整
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
@@ -274,11 +274,21 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-button--medium {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
height: $--btn-height - 4px;
|
||||||
|
}
|
||||||
|
|
||||||
// 迷你按钮(超紧凑)
|
// 迷你按钮(超紧凑)
|
||||||
.el-button--mini {
|
.el-button--mini {
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
height: calc($--btn-height - 4px);
|
height: $--btn-height - 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-button--mini.is-circle {
|
||||||
|
padding: 4px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -290,7 +300,7 @@ body {
|
|||||||
box-shadow: $--metal-shadow;
|
box-shadow: $--metal-shadow;
|
||||||
color: $--color-text-regular;
|
color: $--color-text-regular;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: calc($--form-item-margin * 2); // 与表单间距
|
margin-top: $--form-item-margin * 2; // 与表单间距
|
||||||
|
|
||||||
// 分割线
|
// 分割线
|
||||||
&::before {
|
&::before {
|
||||||
@@ -635,8 +645,8 @@ body {
|
|||||||
|
|
||||||
// 自定义表格工具类(补充紧凑)
|
// 自定义表格工具类(补充紧凑)
|
||||||
.small-padding .cell {
|
.small-padding .cell {
|
||||||
padding-left: calc($--spacing-base / 2);
|
padding-left: $--spacing-base / 2;
|
||||||
padding-right: calc($--spacing-base / 2);
|
padding-right: $--spacing-base / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-col .cell {
|
.status-col .cell {
|
||||||
@@ -939,6 +949,15 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 抽屉
|
||||||
|
.el-drawer {
|
||||||
|
background: $--metal-gradient-light;
|
||||||
|
border: 1px solid $--border-color-light;
|
||||||
|
box-shadow: $--metal-shadow;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: $--color-text-regular;
|
||||||
|
}
|
||||||
|
|
||||||
// Popover
|
// Popover
|
||||||
.el-popover {
|
.el-popover {
|
||||||
background: $--metal-gradient-light;
|
background: $--metal-gradient-light;
|
||||||
@@ -1410,12 +1429,12 @@ body {
|
|||||||
|
|
||||||
.el-descriptions__label,
|
.el-descriptions__label,
|
||||||
.el-descriptions__content {
|
.el-descriptions__content {
|
||||||
padding: calc($--spacing-base / 2) $--spacing-base;
|
padding: $--spacing-base / 2 $--spacing-base;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-descriptions__header {
|
.el-descriptions__header {
|
||||||
padding: calc($--spacing-base / 2) $--spacing-base;
|
padding: $--spacing-base / 2 $--spacing-base;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1424,12 +1443,12 @@ body {
|
|||||||
|
|
||||||
.el-descriptions__label,
|
.el-descriptions__label,
|
||||||
.el-descriptions__content {
|
.el-descriptions__content {
|
||||||
padding: $--spacing-lg calc($--spacing-lg * 1.5);
|
padding: $--spacing-lg $--spacing-lg * 1.5;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-descriptions__header {
|
.el-descriptions__header {
|
||||||
padding: $--spacing-base calc($--spacing-lg * 1.5);
|
padding: $--spacing-base $--spacing-lg * 1.5;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
/* theme color */
|
/* theme color */
|
||||||
$--color-primary: #1890ff;
|
$--color-primary: #5F7BA0;
|
||||||
$--color-success: #13ce66;
|
$--color-success: #13ce66;
|
||||||
$--color-warning: #ffba00;
|
$--color-warning: #ffba00;
|
||||||
$--color-danger: #ff4949;
|
$--color-danger: #ff4949;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sidebarHide {
|
.sidebarHide {
|
||||||
margin-left: 0!important;
|
margin-left: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
@@ -86,7 +86,8 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-menu-item, .el-submenu__title {
|
.el-menu-item,
|
||||||
|
.el-submenu__title {
|
||||||
// 明确默认状态样式(关键修复)
|
// 明确默认状态样式(关键修复)
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
@@ -107,12 +108,12 @@
|
|||||||
background: rgba(255, 255, 255, 0.1) !important;
|
background: rgba(255, 255, 255, 0.1) !important;
|
||||||
color: var(--text-primary) !important; // hover时文本更深
|
color: var(--text-primary) !important; // hover时文本更深
|
||||||
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1),
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1),
|
||||||
inset -1px -1px 2px rgba(255, 255, 255, 0.05);
|
inset -1px -1px 2px rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 深色主题下子菜单选中高亮
|
// 深色主题下子菜单选中高亮
|
||||||
& .theme-dark .is-active > .el-submenu__title {
|
& .theme-dark .is-active>.el-submenu__title {
|
||||||
color: #fff !important; // 选中时文字纯白
|
color: #fff !important; // 选中时文字纯白
|
||||||
// background-color: rgba(95, 123, 160, 0.25) !important; // 工业蓝浅高亮
|
// background-color: rgba(95, 123, 160, 0.25) !important; // 工业蓝浅高亮
|
||||||
// border-left: 3px solid #5F7BA0; // 左边高亮条
|
// border-left: 3px solid #5F7BA0; // 左边高亮条
|
||||||
@@ -152,6 +153,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-menu-item.is-active.submenu-title-noDropdown {
|
||||||
|
background: rgba(95, 123, 160, 0.28) !important; // 激活背景
|
||||||
|
color: #fff !important; // 激活文字白色
|
||||||
|
font-weight: 600;
|
||||||
|
border-left: 3px solid #5F7BA0; // 左边高亮条
|
||||||
|
}
|
||||||
|
|
||||||
.hideSidebar {
|
.hideSidebar {
|
||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
width: 54px !important;
|
width: 54px !important;
|
||||||
@@ -205,6 +213,10 @@
|
|||||||
min-width: $base-sidebar-width !important;
|
min-width: $base-sidebar-width !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-submenu .el-menu{
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
// mobile responsive
|
// mobile responsive
|
||||||
.mobile {
|
.mobile {
|
||||||
.main-container {
|
.main-container {
|
||||||
@@ -227,6 +239,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.withoutAnimation {
|
.withoutAnimation {
|
||||||
|
|
||||||
.main-container,
|
.main-container,
|
||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
transition: none;
|
transition: none;
|
||||||
@@ -252,7 +265,7 @@
|
|||||||
background: rgba(255, 255, 255, 0.1) !important;
|
background: rgba(255, 255, 255, 0.1) !important;
|
||||||
color: var(--text-primary) !important;
|
color: var(--text-primary) !important;
|
||||||
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1),
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1),
|
||||||
inset -1px -1px 2px rgba(255, 255, 255, 0.05);
|
inset -1px -1px 2px rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep &.is-active {
|
::v-deep &.is-active {
|
||||||
@@ -261,7 +274,7 @@
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
border-left: 3px solid #5F7BA0;
|
border-left: 3px solid #5F7BA0;
|
||||||
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15),
|
box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15),
|
||||||
inset -1px -1px 2px rgba(255, 255, 255, 0.08);
|
inset -1px -1px 2px rgba(255, 255, 255, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-menu-item.is-active span,
|
::v-deep .el-menu-item.is-active span,
|
||||||
@@ -288,12 +301,12 @@
|
|||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
background: #8d939b;
|
background: #8d939b;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#app .sidebar-container .el-menu-item,
|
#app .sidebar-container .el-menu-item,
|
||||||
#app .sidebar-container .el-submenu__title {
|
#app .sidebar-container .el-submenu__title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@@ -28,6 +28,12 @@ export default {
|
|||||||
value: this.value,
|
value: this.value,
|
||||||
height: 360,
|
height: 360,
|
||||||
cache: { enable: false },
|
cache: { enable: false },
|
||||||
|
theme: 'dark',
|
||||||
|
preview: {
|
||||||
|
theme: {
|
||||||
|
current: 'dark'
|
||||||
|
}
|
||||||
|
},
|
||||||
after: () => {
|
after: () => {
|
||||||
this.vditor.setValue(this.value || '')
|
this.vditor.setValue(this.value || '')
|
||||||
},
|
},
|
||||||
@@ -66,6 +72,7 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
#vditor {
|
#vditor {
|
||||||
border: 1px solid #e4e7ed;
|
border: 1px solid #e4e7ed;
|
||||||
|
color: white;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }">
|
<div class="sidebar-logo-container" :class="{'collapse':collapse}" :style="{ backgroundColor: '#1e2227'}">
|
||||||
<transition name="sidebarLogoFade">
|
<transition name="sidebarLogoFade">
|
||||||
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
<router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
|
||||||
<img v-if="logo" :src="logo" class="sidebar-logo" />
|
<img v-if="logo" :src="logo" class="sidebar-logo" />
|
||||||
@@ -57,7 +57,7 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
line-height: 50px;
|
line-height: 50px;
|
||||||
background: #2b2f3a;
|
background: #111;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :class="{'has-logo':showLogo}" :style="{ backgroundColor: settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground }">
|
<div :class="{'has-logo':showLogo}" :style="{ backgroundColor: '#1e2227' }">
|
||||||
<logo v-if="showLogo" :collapse="isCollapse" />
|
<logo v-if="showLogo" :collapse="isCollapse" />
|
||||||
<el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper">
|
<el-scrollbar :class="settings.sideTheme" wrap-class="scrollbar-wrapper">
|
||||||
<el-menu
|
<el-menu
|
||||||
:default-active="activeMenu"
|
:default-active="activeMenu"
|
||||||
:collapse="isCollapse"
|
:collapse="isCollapse"
|
||||||
:background-color="settings.sideTheme === 'theme-dark' ? variables.menuBackground : variables.menuLightBackground"
|
background-color="#1e2227"
|
||||||
:text-color="settings.sideTheme === 'theme-dark' ? variables.menuColor : variables.menuLightColor"
|
:text-color="settings.sideTheme === 'theme-dark' ? variables.menuColor : variables.menuLightColor"
|
||||||
:unique-opened="true"
|
:unique-opened="true"
|
||||||
:active-text-color="settings.theme"
|
active-text-color="#fff"
|
||||||
:collapse-transition="false"
|
:collapse-transition="false"
|
||||||
mode="vertical"
|
mode="vertical"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.edit-btn {
|
.edit-btn {
|
||||||
color: #0078ff; /* 飞书常用的主题蓝 */
|
color: #687b98; /* 飞书常用的主题蓝 */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
@@ -307,13 +307,13 @@ export default {
|
|||||||
|
|
||||||
.app-icon {
|
.app-icon {
|
||||||
font-size: 24px; /* 调整图标大小 */
|
font-size: 24px; /* 调整图标大小 */
|
||||||
color: #0078ff; /* 主题蓝 */
|
color: #687b98; /* 主题蓝 */
|
||||||
}
|
}
|
||||||
|
|
||||||
// 应用名称样式
|
// 应用名称样式
|
||||||
.app-name {
|
.app-name {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #2bf; /* 飞书常用的文本色 */
|
color: #687b98; /* 飞书常用的文本色 */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ export default {
|
|||||||
.greeting-title {
|
.greeting-title {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #888;
|
||||||
}
|
}
|
||||||
|
|
||||||
.greeting-desc {
|
.greeting-desc {
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ export default {
|
|||||||
.stat-number {
|
.stat-number {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #409EFF;
|
color: #687b98;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -195,13 +195,13 @@ export default {
|
|||||||
margin: 0 0 8px 0;
|
margin: 0 0 8px 0;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #303133;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-title p {
|
.section-title p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #909399;
|
color: #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row,
|
.top-row,
|
||||||
|
|||||||
Reference in New Issue
Block a user