Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HireTest
VueElementTemplate
Commits
3f9df15c
Commit
3f9df15c
authored
7 years ago
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor:refine sidebar css
parent
a9363ce5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
index.vue
src/components/ScrollBar/index.vue
+4
-2
sidebar.scss
src/styles/sidebar.scss
+8
-3
variables.scss
src/styles/variables.scss
+5
-0
index.vue
src/views/layout/components/Sidebar/index.vue
+1
-2
No files found.
src/components/ScrollBar/index.vue
View file @
3f9df15c
...
...
@@ -41,14 +41,16 @@ export default {
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
@import
'../../styles/variables.scss'
;
.scroll-container
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
background-color
:
#545c64
;
background-color
:
$menuBg
;
.scroll-wrapper
{
position
:
absolute
;
width
:
100%
;
width
:
100%
!
important
;
}
}
</
style
>
This diff is collapsed.
Click to expand it.
src/styles/sidebar.scss
View file @
3f9df15c
@import
'./variables.scss'
;
#app
{
// 主体区域
.main-container
{
...
...
@@ -61,7 +63,7 @@
text-align
:
left
;
text-indent
:
20px
;
top
:
0px
;
background-color
:
#2B2C2D
!
important
;
background-color
:
$subMenuBg
!
important
;
opacity
:
1
;
}
}
...
...
@@ -89,9 +91,12 @@
.nest-menu
.el-submenu
>
.el-submenu__title
,
.el-submenu
.el-menu-item
{
min-width
:
180px
!
important
;
background-color
:
#2B2C2D
!
important
;
background-color
:
$subMenuBg
!
important
;
&
:hover
{
background-color
:
rgb
(
67
,
74
,
80
)
!
important
;
background-color
:
$menuHover
!
important
;
}
}
.el-menu--collapse
.el-menu
.el-submenu
{
min-width
:
180px
!
important
;
}
}
This diff is collapsed.
Click to expand it.
src/styles/variables.scss
View file @
3f9df15c
...
...
@@ -6,3 +6,8 @@ $green: #30B08F;
$tiffany
:
#4AB7BD
;
$yellow
:
#FEC171
;
$panGreen
:
#30B08F
;
//sidebar
$menuBg
:
#304156
;
$subMenuBg
:
#1f2d3d
;
$menuHover
:
#001528
;
This diff is collapsed.
Click to expand it.
src/views/layout/components/Sidebar/index.vue
View file @
3f9df15c
<
template
>
<scroll-bar>
<el-menu
mode=
"vertical"
unique-opened
:default-active=
"$route.path"
:collapse=
"isCollapse"
background-color=
"#545c64"
text-color=
"#fff"
active-text-color=
"#ffd04b"
>
<el-menu
mode=
"vertical"
unique-opened
:default-active=
"$route.path"
:collapse=
"isCollapse"
background-color=
"#304156"
text-color=
"#fff"
active-text-color=
"#409EFF"
>
<sidebar-item
:routes=
'permission_routers'
></sidebar-item>
</el-menu>
</scroll-bar>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment