mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +00:00
Combine view mode (#2959)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.file-uploader-container {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
/* flex: 1; */
|
||||
}
|
||||
|
||||
.file-uploader {
|
||||
|
@@ -18,14 +18,14 @@
|
||||
}
|
||||
|
||||
.side-panel {
|
||||
flex: 0 0 25%;
|
||||
flex: 0 0 22%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main-panel {
|
||||
flex: 1 0 75%;
|
||||
flex: 1 0 78%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -46,6 +46,7 @@
|
||||
|
||||
.side-panel-north,
|
||||
.main-panel-north {
|
||||
position: relative;
|
||||
padding: .5rem 1rem;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
|
168
frontend/src/css/lib-content-view.css
Normal file
168
frontend/src/css/lib-content-view.css
Normal file
@@ -0,0 +1,168 @@
|
||||
|
||||
.view-mode-container {
|
||||
display: flex;
|
||||
flex-direction: row !important;
|
||||
}
|
||||
|
||||
.dir-side-nav {
|
||||
flex: 0 0 25%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dir-main-content {
|
||||
flex: 1 0 75% !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dir-nav-heading {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f4f4f7;
|
||||
border-bottom: solid 1px #e8e8e8;
|
||||
font-size: 1rem;
|
||||
font-weight: normal;
|
||||
height: 49px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dir-nav-container {
|
||||
flex: 1 1;
|
||||
overflow: hidden;
|
||||
padding: 12px 0;
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
|
||||
.dir-nav-container:hover {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.heading-icon {
|
||||
position: absolute;
|
||||
right: 1rem;
|
||||
top: 30%;
|
||||
color: #888;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
/*tree view */
|
||||
.tree-view {
|
||||
padding: 0 12px 0 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.tree-node-inner {
|
||||
position: relative;
|
||||
height: 26px;
|
||||
cursor: pointer;
|
||||
line-height: 1.625;
|
||||
}
|
||||
|
||||
.tree-node-inner-hover {
|
||||
background-color: rgb(255,239,178);
|
||||
}
|
||||
|
||||
.tree-node-inner .tree-node-text {
|
||||
padding-left: 2.8rem;
|
||||
width: calc(100% - 2.8rem);
|
||||
font-size: 15px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tree-node-inner .left-icon {
|
||||
position: absolute;
|
||||
display:flex;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding-left: 1.5rem;
|
||||
}
|
||||
|
||||
.folder-toggle-icon {
|
||||
position: absolute;
|
||||
left: 0.5rem;
|
||||
color: #c0c0c0;
|
||||
line-height: 1.625;
|
||||
width: 1.5rem;
|
||||
display: flex;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tree-node-icon {
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
text-align: center;
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
.tree-node-inner .right-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 1rem;
|
||||
bottom: 0;
|
||||
width: 1.5rem;
|
||||
color: #888;
|
||||
z-index: 2;
|
||||
font-size: 0.8125rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tree-node-inner .right-icon i {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
vertical-align: middle;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.625rem !important;
|
||||
}
|
||||
|
||||
.tree-node-hight-light {
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
background-color: #feac74 !important;
|
||||
}
|
||||
|
||||
.tree-node-hight-light i {
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
min-width: 8rem;
|
||||
}
|
||||
|
||||
.parent-path {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.parent-path .form-text {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
margin-top: 0;
|
||||
margin-left: 0.25rem;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
.dir-main-content .wiki-page-content .ml-2 {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.dir-main-content .wiki-page-content .ml-2:hover {
|
||||
text-decoration: underline;
|
||||
color:#eb8205;
|
||||
}
|
||||
|
||||
/* todo optimized */
|
||||
#wiki-page-last-modified {
|
||||
padding: 40px 10px;
|
||||
font-size:12px;
|
||||
color: #666;
|
||||
}
|
@@ -92,7 +92,7 @@
|
||||
|
||||
/*tree view */
|
||||
.tree-view {
|
||||
padding-left: 10px;
|
||||
padding: 0 12px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
|
||||
.tree-node-hight-light {
|
||||
color: #fff;
|
||||
border-radius: 4px;
|
||||
background-color: #feac74 !important;
|
||||
}
|
||||
|
||||
|
@@ -8,11 +8,12 @@
|
||||
|
||||
.border-left-show:before {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
bottom: 3px;
|
||||
left: -16px;
|
||||
border-left: 1px solid #ddd;
|
||||
top: 10px;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 30px;
|
||||
content: '';
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
/* end toolbar-container */
|
||||
|
Reference in New Issue
Block a user