1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

Index viewer ui (#3845)

* wiki-page-style

* update
This commit is contained in:
Michael An
2019-07-15 14:39:52 +08:00
committed by Daniel Pan
parent f0d9ac813f
commit 5f2382ff0d
2 changed files with 35 additions and 13 deletions

View File

@@ -1,8 +1,9 @@
.wiki-nav-content { .wiki-nav-content {
margin-bottom: 5px; margin-top: 18px;
} }
.wiki-nav-content a, .wiki-nav-content span { .wiki-nav-content a, .wiki-nav-content span {
color: #333; color: #4d5156;
font-size: 14px;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@@ -17,10 +18,10 @@
color: #eb8205; color: #eb8205;
} }
.switch-btn { .switch-btn {
width: 1rem;
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 4px;
color: #c0c0c0; color: #c0c0c0;
cursor: pointer; cursor: pointer;
font-size: 12px;
} }

View File

@@ -4,18 +4,18 @@
flex-direction:column; flex-direction:column;
overflow:hidden; /* for ff */ overflow:hidden; /* for ff */
border-right:1px solid #eee; border-right:1px solid #eee;
background: #f5f7fa;
} }
.wiki-pages-heading { .wiki-pages-heading {
position: relative; position: relative;
font-size: 1rem; font-size: 1rem;
font-weight: normal; font-weight: normal;
text-align:center; padding: 0.5rem 0 0.5rem 2rem;
padding:.5rem 0rem; border-bottom: 1px solid #e8e8e8;
border-bottom:1px solid #e8e8e8;
line-height: 1.5; line-height: 1.5;
height:40px; height: 38px;
background-color: #f9f9f9;
margin-bottom: 0;
} }
.heading-icon { .heading-icon {
position: absolute; position: absolute;
@@ -67,17 +67,38 @@ img[src=""] {
flex-direction: column; flex-direction: column;
} }
.cur-view-content .wiki-page-container{ .cur-view-content .wiki-page-container {
margin: -0.625rem -1rem -1.25rem; margin: -0.625rem -1rem -1.25rem;
padding: 0.625rem 1rem 1.25rem; padding: 0.625rem 1rem 1.25rem;
display: flex; display: flex;
flex: 1; flex: 1;
overflow: auto; padding-left: 30px;
}
.cur-view-content .wiki-page-container .outline-h2,
.cur-view-content .wiki-page-container .outline-h3 {
height: 24px;
font-size: 12px;
color: #4d5156;
}
.cur-view-content .wiki-page-container .outline-h2.active,
.cur-view-content .wiki-page-container .outline-h3.active {
color: #eb8205;
}
.cur-view-content .wiki-page-container .seafile-markdown-outline {
overflow-y: hidden;
margin-right: 10px;
}
.cur-view-content .wiki-page-container .seafile-markdown-outline:hover {
overflow-y: auto;
} }
.cur-view-content .wiki-page-content { .cur-view-content .wiki-page-content {
width: calc(100% - 160px); width: calc(100% - 200px);
padding-right: 40px; padding-right: 30px;
} }
.cur-view-content .markdown-outline { .cur-view-content .markdown-outline {