1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-18 17:22:05 +00:00
seahub/frontend/src/css/markdown-viewer/markdown-editor.css

126 lines
2.7 KiB
CSS
Raw Normal View History

.seafile-md-viewer {
height: 100%;
flex-direction: row;
2019-03-14 10:14:11 +00:00
position: relative;
float: none;
}
.sf-md-viewer-topbar-first {
padding: 4px 10px;
background-color: #fff;
border-bottom: 1px solid #e5e5e5;
box-shadow: 0 3px 2px -2px rgba(200,200,200,.15);
flex-shrink:0;
align-items: center;
}
.seafile-md-viewer-container {
2019-03-15 04:11:32 +00:00
width: 100%;
background-color: #fafaf9;
2019-03-14 10:14:11 +00:00
height: 100%;
2019-03-15 04:11:32 +00:00
position: relative;
2019-03-14 10:14:11 +00:00
overflow: auto;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-container.side-panel-on {
width: 70%;
}
2019-03-14 10:14:11 +00:00
.seafile-md-viewer-slate {
flex: auto;
position: relative;
margin: 20px 40px;
2019-03-15 04:11:32 +00:00
margin-right: 30%;
}
.seafile-md-viewer-main {
2019-03-15 04:11:32 +00:00
flex: auto;
overflow: auto;
background:#fafaf9;
width: 70%;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-slate.side-panel-on {
margin-right: 40px;
}
/* outline */
.seafile-md-viewer .seafile-editor-outline {
background-color: #fafaf9;
margin: 40px;
border-left: 0;
width: 20%;
position: fixed;
top: 68px;
overflow-y: auto;
right: 5%;
z-index: 1;
height: 80%;
}
.seafile-md-viewer .seafile-editor-outline .active {
color: #eb8205;
border-left: 1px solid #eb8205;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer .seafile-editor-outline-heading {
padding: 7px 0;
border-bottom: 1px solid #eee;
color: #a0a0a0;
}
2019-03-14 10:14:11 +00:00
.seafile-editor-outline .outline-h2, .seafile-editor-outline .outline-h3 {
height: 30px;
margin-left: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
}
2019-03-14 10:14:11 +00:00
.seafile-editor-outline .outline-h2 {
padding-left: 20px;
}
2019-03-14 10:14:11 +00:00
.seafile-editor-outline .outline-h3 {
padding-left: 40px;
}
/* side-panel */
.seafile-md-viewer-side-panel {
height: 100%;
2019-03-15 04:11:32 +00:00
overflow: hidden;
2019-03-14 10:14:11 +00:00
width: 30%;
2019-03-15 04:11:32 +00:00
position: fixed;
right: 0;
top: 87px;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-side-panel .seafile-comment,
.seafile-md-viewer-side-panel .seafile-history-side-panel {
width: 100%;
height: 100%;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-side-panel .seafile-comment .add-comment-input,
.seafile-md-viewer-side-panel .seafile-comment .edit-comment-input {
background-color: #fff;
2019-03-15 04:11:32 +00:00
width: 100%;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-side-panel .seafile-history-side-panel {
border-left: 1px solid #e6e6dd;
}
.seafile-viewer-comment-btn {
position: absolute;
top: 0;
right: 5000px;
border: 1px solid rgba(0, 40, 100, 0.12);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 3px;
background-color: #fff;
padding: 5px;
}
.seafile-viewer-comment-btn:hover {
cursor: pointer;
background-color: #eee;
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer .seafile-comment .seafile-comment-footer {
min-height: 230px;
}
.seafile-md-viewer .seafile-comment-toggle-resolved {
width: 100%;
}
@media (max-width:991.8px) {
2019-03-14 10:14:11 +00:00
.seafile-editor-outline {
display: none;
}
.seafile-md-viewer-slate {
width: calc(100% - 80px);
margin: 20px 40px;
}
}