1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00
Files
seahub/frontend/src/css/lib-content-view.css

292 lines
4.9 KiB
CSS
Raw Normal View History

2023-12-12 12:26:41 +08:00
.main-panel {
overflow: hidden;
}
2019-04-17 14:18:12 +08:00
.cur-view-content.lib-content-container {
padding: 0;
background-color: #fff;
position: absolute;
top: 48px;
width: 100%;
2024-06-17 15:15:12 +08:00
height: calc(100% - 48px);
border-top: 1px solid #e8e8e8;
transform: translateZ(10px);
2019-04-17 14:18:12 +08:00
}
2019-02-20 11:54:25 +08:00
.view-mode-container {
display: flex;
flex-direction: row !important;
overflow: hidden !important;
2019-02-21 22:38:35 +08:00
padding-left: 0 !important;
min-height: 0;
2019-02-20 11:54:25 +08:00
}
.dir-column-view {
2019-03-01 11:02:24 +08:00
display: flex;
width: 100%;
position: relative;
2019-03-01 11:02:24 +08:00
}
@media (max-width: 767px) {
.dir-content-nav {
position:fixed;
top: 0;
left: 0;
z-index: 1031;
width: 300px;
max-width: calc(100% - 40px);
height:100%;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
transition: all 0.3s ease;
}
}
.dir-content-nav {
2019-02-20 11:54:25 +08:00
flex: 0 0 25%;
display: flex;
flex-direction: column;
overflow: hidden;
background-color: #fff;
2019-02-20 11:54:25 +08:00
border-right: 1px solid #eee;
}
.dir-content-nav:hover {
2019-02-20 11:54:25 +08:00
overflow: auto;
}
.dir-content-main {
position: relative;
2019-04-17 14:18:12 +08:00
flex: 1 0 74.5%;
display: flex;
flex-direction: column;
overflow: auto;
}
2019-02-20 11:54:25 +08:00
/*tree view */
.tree-view {
margin-left: -12px;
padding: 12px 12px 12px 0;
2019-02-20 11:54:25 +08:00
line-height: 1.5;
flex: 1;
border: 1px solid rgba(69, 170, 242, 0);
}
.tree-view-drop {
border: 1px solid rgba(69, 170, 242);
}
.tree-view-drop::before {
border-left: 1px solid rgba(69, 170, 242);
content: '';
margin-left: 8px;
height: calc(100% + 24px);
display: block;
margin-top: -12px;
float: left;
2019-02-20 11:54:25 +08:00
}
.tree-node-inner {
position: relative;
height: 28px;
padding: 2px;
2019-02-20 11:54:25 +08:00
cursor: pointer;
line-height: 1.625;
}
.tree-node-inner-hover {
background-color: #f0f0f0;
border-radius: 0.25rem;
2019-02-20 11:54:25 +08:00
}
.tree-node-inner .tree-node-text {
padding-left: 2.8rem;
width: calc(100% - 1.5rem);
font-size: 14px;
2019-02-20 11:54:25 +08:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2019-04-17 18:25:38 +08:00
line-height: 24px;
2019-02-20 11:54:25 +08:00
}
.tree-node-inner .left-icon {
position: absolute;
display:flex;
align-items:center;
top: 2px;
2019-02-20 11:54:25 +08:00
left: 0;
padding-left: 1.5rem;
}
.folder-toggle-icon {
position: absolute;
left: 0;
color: #666666;
2019-02-20 11:54:25 +08:00
line-height: 1.625;
width: 1.5rem;
display: flex;
align-content: center;
justify-content: center;
}
2019-03-27 11:25:27 +08:00
.tree-node-drop {
background-color: #FFEFB2;
2019-03-27 11:25:27 +08:00
}
2019-02-20 11:54:25 +08:00
.tree-node-icon {
display: inline-block;
width: 1rem;
text-align: center;
color: #666666;
2019-02-20 11:54:25 +08:00
}
.tree-node-inner .right-icon {
position: absolute;
top: 2px;
right: 0.5rem;
2019-02-20 11:54:25 +08:00
bottom: 0;
width: 1rem;
color: #666666;
2024-01-12 16:02:53 +08:00
z-index: 2;
2019-02-20 11:54:25 +08:00
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;
color: #666666;
2019-02-20 11:54:25 +08:00
}
.tree-node-hight-light {
border-radius: 4px;
background-color: #f5f5f5 !important;
2019-02-20 11:54:25 +08:00
}
.tree-node-hight-light::before {
content: '';
position: absolute;
display: block;
width: 4px;
height: 24px;
left: -8px;
top: 2px;
background-color: #FF8000;
border-radius: 2px;
z-index: 0;
2019-02-20 11:54:25 +08:00
}
.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;
}
/* file layout */
.dir-content-main .wiki-page-container {
padding: 0 1rem 1.25rem;
display: flex;
flex: 1;
}
.dir-content-main .wiki-page-content {
flex: 1;
2024-02-06 17:25:00 +08:00
width: 100%;
}
/* wiki-page-content children */
.dir-content-main .wiki-open-file {
2019-02-27 17:34:39 +08:00
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
2019-02-27 17:34:39 +08:00
font-size: 16px;
border-radius: 50%;
box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);
2019-02-27 17:34:39 +08:00
user-select: none;
border: none;
right: 10px;
bottom: 10px;
color: #999;
z-index: 1050;
background-color: #fff;
cursor: pointer;
}
.dir-content-main .wiki-open-file:hover {
2019-02-27 17:34:39 +08:00
background-color: #f6f6f6;
}
.dir-content-main .sf-slate-viewer-scroll-container {
2023-12-08 11:20:12 +08:00
padding: 0;
background-color: #fff;
border: none;
overflow: inherit;
}
.dir-content-main .sf-slate-viewer-article-container {
2023-12-12 12:26:41 +08:00
display: block;
width: 100%;
}
2019-05-20 10:49:56 +08:00
.readonly-tip-message {
display: flex;
padding: 0.25rem 0;
background-color: #FEFBDC;
justify-content: center;
align-items: center;
}
.op-btn {
background: #fff;
border: 1px solid #dbdbdb;
border-radius: 3px;
height: 32px;
padding: 0 .5rem;
}
.op-btn:hover {
background: #f5f5f5;
}
.dir-view-path .cur-view-path-btn {
margin-left: -4px;
}
.dir-view-path .path-item {
min-width: 0; /* overwrite some styles */
padding: 0 6px;
font-size: 1rem;
color: inherit;
border-radius: 3px;
text-decoration: none;
display: flex;
align-items: center;
}
.dir-view-path .path-item:hover {
background: #efefef;
}
.dir-view-path .path-item-dropdown-toggle {
color: #666;
}
.dir-view-path .path-item-drop{
background-color: #FFEFB2;
}
.dir-view-path .path-split {
padding: 0 2px;
}