Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 07935dd8
authored
Feb 16, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
主题ui修改
1 parent
842aad0f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
236 additions
and
175 deletions
linkwe-pc/src/layout/components/Sidebar/index.vue
linkwe-pc/src/layout/index.vue
linkwe-pc/src/styles/element-ui.scss
linkwe-pc/src/styles/index.scss
linkwe-pc/src/styles/sidebar.scss
linkwe-pc/src/styles/variables.scss
linkwe-pc/src/layout/components/Sidebar/index.vue
View file @
07935dd
<
template
>
<div>
<div
class=
"sidebar-container"
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
:default-active=
"activeMenu"
...
...
@@ -14,6 +14,19 @@
:base-path=
"route.path"
/>
</el-menu>
</el-scrollbar>
<div
class=
"card"
>
<div
class=
""
>
{{
lwConfig
.
SYSTEM_NAME
}}
</div>
<div
class=
"info mt10 mb5"
>
版本:全功能最新版
</div>
<div
class=
"info"
>
期限:本世纪末
</div>
<div
class=
"mt10 mb10"
>
欢迎您登陆本系统
</div>
<el-popover
placement=
"top"
title=
""
width=
"80"
trigger=
"hover"
>
<el-button
slot=
"reference"
type=
"default"
plain
>
联系客服
</el-button>
<div
class=
"ac"
>
<img
:src=
"lwConfig.QRCODE_CONTACT_US"
class=
"contact-code"
alt=
""
/>
<div
class=
"nav-li"
>
微信扫码咨询
</div>
</div>
</el-popover>
</div>
</div>
</
template
>
...
...
@@ -44,3 +57,168 @@ export default {
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.sidebar-container
{
--bottom-card-height
:
168px
;
transition
:
width
0.28s
;
width
:
$
sideBarWidth
!important
;
background-color
:
#fff
;
bottom
:
0
;
z-index
:
1001
;
overflow
:
hidden
;
flex
:
none
;
box-shadow
:
0px
2px
2px
0px
rgba
(
228
,
228
,
228
,
0.35
);
//
reset
element-ui
css
.horizontal-collapse-transition
{
transition
:
0s
width
ease-in-out
,
0s
padding-left
ease-in-out
,
0s
padding-right
ease-in-out
;
}
.scrollbar-wrapper
{
overflow-x
:
hidden
!important
;
}
//
.el-scrollbar__bar.is-vertical
{
//
right
:
0px
;
//
}
.el-scrollbar
{
height
:
calc
(
100%
-
var
(
--bottom-card-height
)
-
30px
);
border-bottom
:
20px
solid
transparent
;
}
&
.has-logo
{
.el-scrollbar
{
height
:
calc
(
100%
-
50px
);
}
}
.is-horizontal
{
display
:
none
;
}
.svg-icon
{
margin-right
:
16px
;
}
.el-menu
{
border
:
none
;
height
:
100%
;
width
:
100%
!important
;
}
//
菜单,目录
.el-menu-item
,
.el-submenu
>
.el-submenu__title
{
margin
:
4px
auto
;
font-weight
:
500
;
height
:
40px
;
line-height
:
40px
;
i
{
color
:
inherit
;
}
//
background-color
:
$
subMenuBg
!
important
;
&
:hover
{
color
:
$
blue
;
background-color
:
transparent
!important
;
}
}
//
叶子菜单项
.el-menu-item
{
margin
:
4px
16px
;
min-width
:
auto
;
//
a
{
//
&:hover
{
//
color
:
inherit
!important
;
//
}
//
}
}
//
当前激活菜单
.el-menu-item.is-active
{
background
:
linear-gradient
(
to
right
,
$
blue
0%
,
$
light-blue
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0.2
);
border-radius
:
8px
;
color
:
#fff
!important
;
z-index
:
1
;
}
//
当前激活菜单所属上级菜单标题目录
.is-active
>
.el-submenu__title
{
color
:
$
blue
!important
;
}
}
.hideSidebar
{
.sidebar-container
{
width
:
0
!important
;
}
.main-container
{
margin-left
:
0
;
}
.submenu-title-noDropdown
{
padding
:
0
!important
;
position
:
relative
;
.el-tooltip
{
padding
:
0
!important
;
.svg-icon
{
margin-left
:
20px
;
}
}
}
.el-submenu
{
overflow
:
hidden
;
&
>
.el-submenu__title
{
padding
:
0
!important
;
.svg-icon
{
margin-left
:
20px
;
}
.el-submenu__icon-arrow
{
display
:
none
;
}
}
}
.el-menu--collapse
{
.el-submenu
{
&
>
.el-submenu__title
{
&
>
span
{
height
:
0
;
width
:
0
;
overflow
:
hidden
;
visibility
:
hidden
;
display
:
inline-block
;
}
}
}
}
}
.card
{
color
:
#fff
;
height
:
168px
;
margin
:
0
20px
;
padding
:
20px
;
background
:
linear-gradient
(
315deg
,
#07c160
0%
,
#90de45
100%
);
box-shadow
:
0px
15px
20px
0px
rgba
(
64
,
64
,
64
,
0.12
);
border-radius
:
var
(
--border-radius
);
.info
{
font-size
:
12px
;
}
.el-button
{
width
:
100%
;
color
:
#333
;
}
}
.contact-code
{
width
:
80px
;
}
</
style
>
linkwe-pc/src/layout/index.vue
View file @
07935dd
...
...
@@ -5,7 +5,7 @@
</div>
<div
class=
"main-wrap"
>
<div
class=
"main main-size"
>
<sidebar
v-if=
"isSidebar"
class=
"sidebar-container"
/>
<sidebar
v-if=
"isSidebar"
/>
<div
class=
"main-container"
>
<div
class=
"breadcrumb-wrap"
v-show=
"visiableSidebarRouters"
>
<breadcrumb
/>
...
...
linkwe-pc/src/styles/element-ui.scss
View file @
07935dd
...
...
@@ -72,32 +72,6 @@
}
}
// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog
{
transform
:
none
;
left
:
0
;
position
:
relative
;
margin
:
0
auto
;
}
.el-dialog
{
display
:
flex
;
flex-direction
:
column
;
margin
:
0
!
important
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
/*height:600px;*/
max-height
:
calc
(
100%
-
30px
);
max-width
:
calc
(
100%
-
30px
);
}
.el-dialog
.el-dialog__body
{
flex
:
1
;
overflow
:
auto
;
padding-top
:
15px
;
}
// .el-dialog:not(.is-fullscreen) {
// margin-top: 6vh !important;
// }
...
...
@@ -286,11 +260,52 @@
border-color
:
$blue
;
color
:
$blue
;
}
// to fixed https://github.com/ElemeFE/element/issues/2461
// .el-dialog {
// transform: none;
// left: 0;
// position: relative;
// margin: 0 auto;
// }
.el-dialog
{
border-radius
:
var
(
--
border-radius
);
display
:
flex
;
flex-direction
:
column
;
margin
:
0
!
important
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
max-height
:
calc
(
100%
-
30px
);
max-width
:
calc
(
100%
-
30px
);
border-radius
:
var
(
--
border-radius-big
);
padding
:
0
12px
;
}
.el-dialog__title
{
font-weight
:
500
;
}
.el-dialog__body
{
flex
:
1
;
overflow
:
auto
;
padding
:
0
;
}
.el-dialog__headerbtn
{
top
:
18px
;
right
:
25px
;
.el-dialog__close
{
font-size
:
22px
;
color
:
#86909c
;
}
}
.el-button--default
{
border-color
:
$blue
;
color
:
$blue
;
}
.el-button--default.el-button--primary
{
color
:
#fff
;
}
}
.el-button--small
:not
(
.el-button--text
)
{
padding
:
9px
19px
;
border-radius
:
var
(
--
border-radius-small
);
}
linkwe-pc/src/styles/index.scss
View file @
07935dd
...
...
@@ -411,7 +411,7 @@ aside {
// 卡片样式
&
card
{
margin-top
:
10px
;
border-radius
:
16px
;
border-radius
:
var
(
--
border-radius-big
)
;
background
:
#fff
;
overflow
:
auto
;
&
:first-child
{
...
...
@@ -427,7 +427,7 @@ aside {
width
:
200px
;
height
:
90px
;
background
:
linear-gradient
(
90deg
,
#3c89f0
0%
,
#1364f4
100%
);
border-radius
:
4px
;
border-radius
:
var
(
--
border-radius-small
)
;
padding
:
20px
;
margin-right
:
10px
;
font-weight
:
400
;
...
...
linkwe-pc/src/styles/sidebar.scss
View file @
07935dd
#app
{
.sidebar-container
{
transition
:
width
0
.28s
;
width
:
$sideBarWidth
!
important
;
background-color
:
#fff
;
font-size
:
0px
;
bottom
:
0
;
z-index
:
1001
;
overflow
:
hidden
;
flex
:
none
;
box-shadow
:
0px
2px
2px
0px
rgba
(
228
,
228
,
228
,
0
.35
);
// reset element-ui css
.horizontal-collapse-transition
{
transition
:
0s
width
ease-in-out
,
0s
padding-left
ease-in-out
,
0s
padding-right
ease-in-out
;
}
.scrollbar-wrapper
{
overflow-x
:
hidden
!
important
;
}
.el-scrollbar__bar.is-vertical
{
right
:
0px
;
}
.el-scrollbar
{
height
:
100%
;
}
&
.has-logo
{
.el-scrollbar
{
height
:
calc
(
100%
-
50px
);
}
}
.is-horizontal
{
display
:
none
;
}
.svg-icon
{
margin-right
:
16px
;
}
.el-menu
{
border
:
none
;
height
:
100%
;
width
:
100%
!
important
;
}
// 菜单,目录
.el-menu-item
,
.el-submenu
>
.el-submenu__title
{
margin
:
4px
auto
;
font-weight
:
500
;
height
:
40px
;
line-height
:
40px
;
i
{
color
:
inherit
;
}
// background-color: $subMenuBg !important;
&
:hover
{
color
:
$blue
;
background-color
:
transparent
!
important
;
}
}
// 叶子菜单项
.el-menu-item
{
margin
:
4px
16px
;
min-width
:
auto
;
// a {
// &:hover {
// color: inherit !important;
// }
// }
}
// 当前激活菜单
.el-menu-item.is-active
{
background
:
linear-gradient
(
to
right
,
$blue
0%
,
$light-blue
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0
.2
);
border-radius
:
8px
;
color
:
#fff
!
important
;
z-index
:
1
;
}
// 当前激活菜单所属上级菜单标题目录
.is-active
>
.el-submenu__title
{
color
:
$blue
!
important
;
}
}
.hideSidebar
{
.sidebar-container
{
width
:
0
!
important
;
}
.main-container
{
margin-left
:
0
;
}
.submenu-title-noDropdown
{
padding
:
0
!
important
;
position
:
relative
;
.el-tooltip
{
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
}
}
.el-submenu
{
overflow
:
hidden
;
&
>
.el-submenu__title
{
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
.el-submenu__icon-arrow
{
display
:
none
;
}
}
}
.el-menu--collapse
{
.el-submenu
{
&
>
.el-submenu__title
{
&
>
span
{
height
:
0
;
width
:
0
;
overflow
:
hidden
;
visibility
:
hidden
;
display
:
inline-block
;
}
}
}
}
}
.el-menu--collapse
.el-menu
.el-submenu
{
min-width
:
$sideBarWidth
!
important
;
}
...
...
linkwe-pc/src/styles/variables.scss
View file @
07935dd
...
...
@@ -5,8 +5,9 @@
--color-success
:
#07c160
;
--color-warning
:
#faad14
;
--color-danger
:
#eb5e12
;
--border-radius
:
16px
;
--border-radius-sub
:
8px
;
--border-radius
:
8px
;
--border-radius-small
:
4px
;
--border-radius-big
:
16px
;
}
// base color
$blue
:
#07c160
;
...
...
@@ -58,3 +59,12 @@ $border-radius: 4px;
background
:
linear-gradient
(
to
left
,
$blue
0%
,
$light-blue
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0
.2
);
}
.border-radius-small
{
border-radius
:
4px
;
}
.border-radius
{
border-radius
:
8px
;
}
.border-radius-big
{
border-radius
:
16px
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment