1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00
Files
seahub/frontend/src/css/wiki.css

236 lines
3.9 KiB
CSS
Raw Normal View History

2018-08-06 18:29:12 +08:00
.wiki-side-nav {
flex:auto;
display:flex;
flex-direction:column;
overflow:hidden; /* for ff */
border-right:1px solid #eee;
}
.wiki-pages-heading {
position: relative;
2018-08-06 18:29:12 +08:00
font-size: 1rem;
font-weight: normal;
padding: 0.5rem 0 0.5rem 2rem;
border-bottom: 1px solid #e8e8e8;
2018-08-06 18:29:12 +08:00
line-height: 1.5;
height: 40px;
background-color: #f9f9f9;
margin-bottom: 0;
2018-08-06 18:29:12 +08:00
}
.heading-icon {
position: absolute;
right: 1rem;
top: 25%;
color: #888;
font-size: 0.8125rem;
}
2018-08-06 18:29:12 +08:00
.wiki-pages-container {
flex: 1;
2018-08-06 18:29:12 +08:00
overflow: hidden;
padding-bottom: 10px;
}
.wiki-pages-container:hover {
overflow: auto;
}
.wiki-pages-container .tree-view {
margin-left: -10px;
2018-08-06 18:29:12 +08:00
padding-left:0;
}
.wiki-pages-container .article {
padding: 0 20px;
}
.wiki-pages-container .tree-view {
margin-top: 14px;
}
2018-08-06 18:29:12 +08:00
.wiki-md-viewer-rendered-content {
padding: 30px 0 0;
}
2018-09-04 17:16:50 +08:00
2018-08-10 17:05:29 +08:00
img[src=""] {
opacity: 0;
}
.wiki-side-panel {
flex: 0 0 20%;
display:flex;
flex-direction:column;
overflow:hidden;
}
2018-09-21 14:16:15 +08:00
.wiki-main-panel {
flex: 1 0 80%;
display:flex;
flex-direction:column;
2018-08-29 12:25:22 +08:00
min-height: 0;
}
2018-08-10 17:05:29 +08:00
2019-01-15 19:58:25 +08:00
.cur-view-content {
display: flex;
flex-direction: column;
2019-10-14 11:52:02 +08:00
overflow: hidden;
2019-01-15 19:58:25 +08:00
}
.cur-view-content .wiki-page-container {
2019-01-15 19:58:25 +08:00
margin: -0.625rem -1rem -1.25rem;
padding: 0.625rem 1rem 1.25rem;
2018-08-10 17:05:29 +08:00
display: flex;
2018-08-10 17:26:37 +08:00
flex: 1;
padding-left: 30px;
2019-07-16 10:39:46 +08:00
overflow-y: auto;
}
.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;
2018-08-10 17:05:29 +08:00
}
2019-01-15 19:58:25 +08:00
.cur-view-content .wiki-page-content {
width: calc(100% - 200px);
padding-right: 30px;
2018-08-10 17:05:29 +08:00
}
2018-09-21 14:16:15 +08:00
.cur-view-content .markdown-outline {
2018-08-29 12:25:22 +08:00
position: fixed;
2018-11-22 11:05:47 +08:00
padding-right: 1rem;
2018-08-29 12:25:22 +08:00
top: 97px;
right: 0;
2018-08-10 17:05:29 +08:00
width: 200px;
2018-08-29 12:25:22 +08:00
overflow: hidden;
2018-08-10 17:05:29 +08:00
}
.wiki-hide {
display: none !important;
}
@media (max-width: 991.98px) {
2019-01-15 19:58:25 +08:00
.cur-view-content .wiki-page-container {
2019-07-16 12:59:23 +08:00
padding: 0 14px;
2018-08-10 17:05:29 +08:00
}
2019-01-15 19:58:25 +08:00
.cur-view-content .wiki-page-content {
2018-08-29 12:25:22 +08:00
width: 100%;
2018-08-10 17:05:29 +08:00
padding-right: 0;
}
2019-05-29 11:48:00 +08:00
.cur-view-content .seafile-markdown-outline {
2018-08-10 17:05:29 +08:00
display: none;
}
}
.wiki-main .wiki-viewer-outline {
position: relative;
top: 0;
padding: 0;
list-style: none;
border-left: solid 1px #eee;
}
.textindent-2 {
text-indent: 18px;
}
.wiki-main .wiki-outline-item {
padding: 3px 15px;
font-size: 14px;
}
.wiki-outline-item a {
display: block;
color: #444;
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.wiki-outline-item a:hover {
color: #eb8205;
text-decoration: underline;
}
.wiki-outline-item-active {
border-left: 1px solid #eb8205;
}
.wiki-outline-item-active a {
color: #eb8205 !important;
2018-08-06 18:29:12 +08:00
}
.wiki-page-ops {
position:fixed;
top:10px;
}
@media (min-width: 768px) {
.wiki-page-ops:before {
content:'';
border-left:1px solid #ddd;
position:absolute;
top:3px;
left:-16px;
bottom:3px;
}
}
.wiki-page-list-item {
word-break:break-all;
line-height:1.6;
margin:3px 0;
}
.wiki-page-link,
.wiki-page-link:hover {
font-size:1.15em;
font-weight:normal;
color:#444;
margin-left:5px;
}
#wiki-page-last-modified {
2018-12-18 16:29:57 +08:00
padding: 40px 10px;
2018-08-06 18:29:12 +08:00
font-size:12px;
color: #666;
}
2018-08-06 23:58:23 +08:00
.wiki-md-viewer-rendered-content.article h1 {
margin-top: 0;
2018-09-04 17:16:50 +08:00
}
2018-12-12 02:34:58 +00:00
2019-01-15 19:58:25 +08:00
.wiki-page-content a {
2018-12-12 02:34:58 +00:00
cursor: pointer;
}
2019-01-15 19:58:25 +08:00
.wiki-side-nav .wiki-page-content a {
color: #212529;
cursor: pointer;
}
.index-edit {
position: absolute;
right: 0.25rem;
top: 0.25rem;
}
2019-01-15 19:58:25 +08:00
.wiki-main-panel .wiki-page-content .ml-2 {
2018-12-17 04:08:37 +00:00
text-decoration: underline;
}
2019-01-15 19:58:25 +08:00
.wiki-main-panel .wiki-page-content .ml-2:hover {
2018-12-17 04:08:37 +00:00
text-decoration: underline;
color:#eb8205;
}