Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Administrator
web-monitor
Commits
4bbdf5ee
Commit
4bbdf5ee
authored
Mar 12, 2019
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix[Sidebar]: fixed collapse animation problem
parent
1a6ae849
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
sidebar.scss
src/styles/sidebar.scss
+15
-5
variables.scss
src/styles/variables.scss
+2
-1
index.vue
src/views/layout/components/Sidebar/index.vue
+1
-1
No files found.
src/styles/sidebar.scss
View file @
4bbdf5ee
...
...
@@ -83,19 +83,26 @@
.hideSidebar
{
.sidebar-container
{
width
:
36
px
!
important
;
width
:
54
px
!
important
;
}
.main-container
{
margin-left
:
36px
;
margin-left
:
54px
;
}
.svg-icon
{
margin-right
:
0px
;
}
.submenu-title-noDropdown
{
padding
-left
:
10px
!
important
;
padding
:
0
!
important
;
position
:
relative
;
.el-tooltip
{
padding
:
0
10px
!
important
;
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
}
}
...
...
@@ -103,7 +110,10 @@
overflow
:
hidden
;
&
>
.el-submenu__title
{
padding-left
:
10px
!
important
;
padding
:
0
!
important
;
.svg-icon
{
margin-left
:
20px
;
}
.el-submenu__icon-arrow
{
display
:
none
;
...
...
src/styles/variables.scss
View file @
4bbdf5ee
...
...
@@ -9,9 +9,10 @@ $menuHover:#263445;
$subMenuBg
:
#1f2d3d
;
$subMenuHover
:
#001528
;
$sideBarWidth
:
18
0px
;
$sideBarWidth
:
21
0px
;
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
:export
{
menuText
:
$menuText
;
menuActiveText
:
$menuActiveText
;
...
...
src/views/layout/components/Sidebar/index.vue
View file @
4bbdf5ee
<
template
>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
:show-timeout=
"200"
:default-active=
"$route.path"
:collapse=
"isCollapse"
:background-color=
"variables.menuBg"
:text-color=
"variables.menuText"
:active-text-color=
"variables.menuActiveText"
:collapse-transition=
"false"
mode=
"vertical"
>
<sidebar-item
v-for=
"route in routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
...
...
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