Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
dsk-cr20g
Commits
eba666d0
Commit
eba666d0
authored
May 17, 2023
by
远方不远
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hy
parent
faef043c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
41 deletions
+99
-41
logo.png
dsk-operate-ui/src/assets/images/logo/logo.png
+0
-0
sidebar.scss
dsk-operate-ui/src/assets/styles/sidebar.scss
+86
-35
variables.scss
dsk-operate-ui/src/assets/styles/variables.scss
+7
-1
Logo.vue
dsk-operate-ui/src/layout/components/Sidebar/Logo.vue
+6
-5
No files found.
dsk-operate-ui/src/assets/images/logo/logo.png
View replaced file @
faef043c
View file @
eba666d0
5.53 KB
|
W:
|
H:
465 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
dsk-operate-ui/src/assets/styles/sidebar.scss
View file @
eba666d0
...
@@ -42,8 +42,10 @@
...
@@ -42,8 +42,10 @@
.el-scrollbar
{
.el-scrollbar
{
height
:
100%
;
height
:
100%
;
}
}
&
.has-logo
{
&
.has-logo
{
.el-scrollbar
{
.el-scrollbar
{
height
:
calc
(
100%
-
50px
);
height
:
calc
(
100%
-
50px
);
...
@@ -61,55 +63,82 @@
...
@@ -61,55 +63,82 @@
}
}
.svg-icon
{
.svg-icon
{
margin-right
:
16px
;
margin-right
:
6px
;
}
.el-submenu__icon-arrow
{
top
:
54%
;
right
:
5px
;
color
:
#d8d8d8
;
}
}
.el-menu
{
.el-menu
{
border
:
none
;
border
:
none
;
height
:
100%
;
height
:
100%
;
width
:
100%
!
important
;
width
:
calc
(
100%
-
16px
)
!
important
;
margin
:
0
8px
;
}
.el-menu--inline
{
margin
:
0
;
width
:
100%
!
important
;
}
.el-menu--inline
.nest-menu
.el-menu-item
{
width
:
100%
!
important
;
min-width
:
128px
;
color
:
#fff
!
important
;
}
}
.el-menu-item
,
.el-submenu__title
{
.el-menu-item
,
.el-submenu__title
{
height
:
40px
;
line-height
:
40px
;
border
:
1px
solid
#141b2f
;
color
:
#fff
;
margin-bottom
:
6px
;
padding
:
0
6px
!
important
;
overflow
:
hidden
!
important
;
overflow
:
hidden
!
important
;
text-overflow
:
ellipsis
!
important
;
text-overflow
:
ellipsis
!
important
;
white-space
:
nowrap
!
important
;
white-space
:
nowrap
!
important
;
}
}
// menu hover
// menu hover
.submenu-title-noDropdown
,
.el-menu-item.is-active
{
.el-submenu__title
{
// 点击菜单的颜色
background-color
:
#1e2c4c
!
important
;
color
:
#fff
!
important
;
border-radius
:
10px
;
border
:
1px
solid
#2b3f69
;
&
:hover
{
&
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
background-color
:
#1e2c4c
!
important
;
border-radius
:
10px
;
color
:
#fff
!
important
;
border
:
1px
solid
#2b3f69
;
}
}
}
}
&
.theme-dark
.is-active
>
.el-submenu__title
{
color
:
$base-menu-color-active
!
important
;
}
&
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.el-submenu
.el-menu-item
{
min-width
:
$base-sidebar-width
!
important
;
// menu hover
.submenu-title-noDropdown
,
.el-submenu__title
{
color
:
#fff
!
important
;
&
:hover
{
&
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
background-color
:
#1e2c4c
!
important
;
color
:
#fff
!
important
;
border-radius
:
10px
;
border
:
1px
solid
#2b3f69
;
}
}
}
}
&
.theme-dark
.nest-menu
.el-submenu
>
.el-submenu__title
,
&
.theme-dark
.el-submenu
.el-menu-item
{
background-color
:
$base-sub-menu-background
!
important
;
&
:hover
{
background-color
:
$base-sub-menu-hover
!
important
;
}
}
}
.sidebar-container
.el-submenu
.el-menu-item
:hover
,
.sidebar-container
.nest-menu
.el-submenu
>
.el-submenu__title
:hover
{
background-color
:
#1e2c4c
!
important
;
color
:
#fff
!
important
;
border-radius
:
10px
;
border
:
1px
solid
#2b3f69
;
}
}
.hideSidebar
{
.hideSidebar
{
.sidebar-container
{
.sidebar-container
{
width
:
54
px
!
important
;
width
:
48
px
!
important
;
}
}
.main-container
{
.main-container
{
...
@@ -117,14 +146,25 @@
...
@@ -117,14 +146,25 @@
}
}
.submenu-title-noDropdown
{
.submenu-title-noDropdown
{
padding
:
0
!
important
;
margin-bottom
:
6px
;
padding
:
0
6px
!
important
;
text-align
:
center
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
.el-tooltip
{
.el-tooltip
{
padding
:
0
!
important
;
padding
:
0
!
important
;
.svg-icon
{
.svg-icon
{
margin-left
:
20px
;
margin
:
0px
!
important
;
width
:
1em
;
height
:
1em
;
font-size
:
16px
;
margin-bottom
:
-2px
;
vertical-align
:
-0
.15em
;
fill
:
currentColor
;
overflow
:
hidden
;
}
}
}
}
}
}
...
@@ -133,10 +173,21 @@
...
@@ -133,10 +173,21 @@
overflow
:
hidden
;
overflow
:
hidden
;
&
>
.el-submenu__title
{
&
>
.el-submenu__title
{
padding
:
0
!
important
;
margin-bottom
:
6px
;
padding
:
0
6px
!
important
;
text-align
:
center
;
cursor
:
pointer
;
.svg-icon
{
.svg-icon
{
margin-left
:
20px
;
margin
:
0px
!
important
;
width
:
1em
;
height
:
1em
;
font-size
:
16px
;
margin-bottom
:
-2px
;
vertical-align
:
-0
.15em
;
fill
:
currentColor
;
overflow
:
hidden
;
margin-left
:
0px
;
}
}
}
}
...
...
dsk-operate-ui/src/assets/styles/variables.scss
View file @
eba666d0
...
@@ -36,7 +36,13 @@ $base-sub-menu-background:#000c17;
...
@@ -36,7 +36,13 @@ $base-sub-menu-background:#000c17;
$base-sub-menu-hover:#001528;
$base-sub-menu-hover:#001528;
*/
*/
$base-sidebar-width
:
200px
;
// 央企颜色设置自定义
$base-menu-background
:
#141b2f
;
$base-menu-light-background
:
#fff
;
// 选中菜单的字体颜色
$base-logo-light-title-color
:
#fff
;
// 对应base-logo-title-color
$base-sidebar-width
:
144px
;
// the :export directive is the magic sauce for webpack
// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
...
...
dsk-operate-ui/src/layout/components/Sidebar/Logo.vue
View file @
eba666d0
...
@@ -55,9 +55,10 @@ export default {
...
@@ -55,9 +55,10 @@ export default {
.sidebar-logo-container
{
.sidebar-logo-container
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
width
:
100%
;
height
:
50px
;
height
:
55px
;
line-height
:
50px
;
line-height
:
55px
;
background
:
#2b2f3a
;
background
:
#141b2f
;
border-bottom
:
1px
solid
#1a2743
;
text-align
:
center
;
text-align
:
center
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -66,8 +67,8 @@ export default {
...
@@ -66,8 +67,8 @@ export default {
width
:
100%
;
width
:
100%
;
&
.sidebar-logo
{
&
.sidebar-logo
{
width
:
32
px
;
width
:
16
px
;
height
:
32
px
;
height
:
23
px
;
vertical-align
:
middle
;
vertical-align
:
middle
;
margin-right
:
12px
;
margin-right
:
12px
;
}
}
...
...
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