mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
12.0 support drag side nav (#6340)
* 01 optimize resize bar * 02 app side panel support resize * 03 side panel is folded do not support resize * 04 optimise code * 05 use localStorage
This commit is contained in:
43
frontend/src/components/resize-bar/index.css
Normal file
43
frontend/src/components/resize-bar/index.css
Normal file
@@ -0,0 +1,43 @@
|
||||
.resize-bar {
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
opacity: 0;
|
||||
transition-duration: .2s;
|
||||
transition-property: opacity;
|
||||
}
|
||||
|
||||
.resize-bar:hover {
|
||||
opacity: 1;
|
||||
cursor: col-resize;
|
||||
}
|
||||
|
||||
.resize-bar .resize-bar-line {
|
||||
background-color: #aaa;
|
||||
height: 100%;
|
||||
width: 2px;
|
||||
display: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.resize-bar:hover .resize-bar-line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.resize-bar .resize-bar-drag-handler {
|
||||
background: #2d7ff9;
|
||||
border-radius: 10px;
|
||||
margin-left: 1px;
|
||||
position: absolute;
|
||||
transform: translate(-50%);
|
||||
width: 6px;
|
||||
display: none;
|
||||
z-index: 1;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.resize-bar:hover .resize-bar-drag-handler {
|
||||
display: block;
|
||||
}
|
Reference in New Issue
Block a user