-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy path_sidebar.scss
More file actions
126 lines (114 loc) · 2.6 KB
/
_sidebar.scss
File metadata and controls
126 lines (114 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@use '../variables' as *;
/*This is for the logo*/
.leftSidebar {
border: 0px;
border-right: 1px solid rgba(var(--v-theme-borderLight), 0.45);
box-shadow: none !important;
}
.listitem {
overflow-y: auto;
.v-list {
color: rgb(var(--v-theme-secondaryText));
}
.v-list-group__items .v-list-item,
.v-list-item {
border-radius: $border-radius-root;
padding-inline-start: calc(12px + var(--indent-padding) / 2) !important;
&:hover {
color: rgb(var(--v-theme-secondary));
}
}
.v-list-item--density-default.v-list-item--one-line {
min-height: 40px;
}
}
// 深色主题下的侧边栏悬停和选中样式
.v-theme--PurpleThemeDark .leftSidebar {
.listitem {
.v-list-group__items .v-list-item,
.v-list-item {
&:hover {
color: rgb(var(--v-theme-primary)) !important;
.v-list-item-title {
color: rgb(var(--v-theme-primary)) !important;
}
.v-icon {
color: rgb(var(--v-theme-primary)) !important;
}
}
// 选中状态的样式
&.v-list-item--active {
color: rgb(var(--v-theme-primary)) !important;
.v-list-item-title {
color: rgb(var(--v-theme-primary)) !important;
}
.v-icon {
color: rgb(var(--v-theme-primary)) !important;
}
}
}
}
.v-list-item--density-default.v-list-item--one-line {
min-height: 40px;
}
}
.v-navigation-drawer--rail {
.scrollnavbar .v-list .v-list-group__items,
.hide-menu {
opacity: 1;
}
.leftPadding {
margin-left: 0px;
}
}
@media only screen and (min-width: 1170px) {
.mini-sidebar {
.logo {
width: 90px;
overflow: hidden;
}
.leftSidebar:hover {
box-shadow: $box-shadow !important;
}
.v-navigation-drawer--expand-on-hover:hover {
.logo {
width: 100%;
}
.v-list .v-list-group__items,
.hide-menu {
opacity: 1;
}
}
}
}
// 新的flex布局样式
.leftSidebar {
.sidebar-container {
display: flex;
flex-direction: column;
height: 100%;
.flex-grow-1 {
flex: 1 1 auto;
overflow-y: auto;
}
.sidebar-footer {
padding: 16px;
background: inherit;
display: flex;
flex-direction: column;
align-items: center;
font-size: 13px;
text-align: center;
flex-shrink: 0;
.v-btn {
width: 100%;
max-width: 180px;
margin-bottom: 8px !important;
}
.sidebar-footer-btn {
justify-content: flex-start;
text-align: left;
}
}
}
}