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

188 lines
3.0 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;
background: #f5f7fa;
}
.wiki-pages-heading {
position: relative;
2018-08-06 18:29:12 +08:00
font-size: 1rem;
font-weight: normal;
text-align:center;
padding:.5rem 0rem;
border-bottom:1px solid #e8e8e8;
line-height: 1.5;
height:40px;
}
.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 {
overflow: hidden;
padding-bottom: 10px;
}
.wiki-pages-container:hover {
overflow: auto;
}
.wiki-pages-container .tree-view {
padding-left:0;
}
.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
2018-09-21 14:16:15 +08:00
.cur-view-content .markdown-container{
2018-11-22 11:05:47 +08:00
padding: 0 1.5rem;
2018-08-10 17:05:29 +08:00
display: flex;
2018-08-10 17:26:37 +08:00
flex: 1;
2018-08-10 17:05:29 +08:00
overflow: auto;
}
2018-09-21 14:16:15 +08:00
.cur-view-content .markdown-content {
2018-08-29 12:25:22 +08:00
width: calc(100% - 160px);
2018-08-10 17:05:29 +08:00
padding-right: 40px;
}
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) {
2018-09-21 14:16:15 +08:00
.cur-view-content .markdown-container {
2018-11-22 11:05:47 +08:00
padding-right: 1.5rem;
2018-08-10 17:05:29 +08:00
}
2018-09-21 14:16:15 +08:00
.cur-view-content .markdown-content {
2018-08-29 12:25:22 +08:00
width: 100%;
2018-08-10 17:05:29 +08:00
padding-right: 0;
}
2018-09-21 14:16:15 +08:00
.cur-view-content .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
.markdown-content a {
cursor: pointer;
}
2018-12-17 04:08:37 +00:00
.wiki-main-panel .markdown-content .ml-2 {
text-decoration: underline;
}
.wiki-main-panel .markdown-content .ml-2:hover {
text-decoration: underline;
color:#eb8205;
}