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

159 lines
3.3 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 09:37:04 +00:00
display: flex;
2019-03-14 10:14:11 +00:00
}
2019-03-15 04:11:32 +00:00
.seafile-md-viewer-container.side-panel-on {
2019-03-15 09:37:04 +00:00
width: calc(100% - 260px);
2019-03-15 04:11:32 +00:00
}
2019-03-14 10:14:11 +00:00
.seafile-md-viewer-slate {
flex: auto;
position: relative;
2019-03-19 04:14:45 +00:00
margin: 20px 0px 20px 5%;
max-width: calc(90% - 260px);
2019-03-15 09:37:04 +00:00
}
.seafile-md-viewer-slate.comment-on {
2019-03-19 04:14:45 +00:00
max-width: calc(90% - 360px);
}
.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 {
2019-03-15 09:37:04 +00:00
margin: 20px 5%;
2019-03-15 04:11:32 +00:00
}
/* outline */
.seafile-md-viewer .seafile-editor-outline {
background-color: #fafaf9;
2019-03-15 09:37:04 +00:00
margin: 40px auto;
padding: 0 0.75rem 0 1.25rem;
2019-03-15 04:11:32 +00:00
border-left: 0;
2019-03-15 09:37:04 +00:00
width: 260px;
2019-03-15 04:11:32 +00:00
position: fixed;
top: 68px;
2019-03-18 06:09:40 +00:00
overflow-y: hidden;
2019-03-15 04:11:32 +00:00
right: 5%;
z-index: 1;
height: 80%;
}
2019-03-18 06:09:40 +00:00
.seafile-md-viewer .seafile-editor-outline:hover {
overflow: auto;
}
2019-03-15 04:11:32 +00:00
.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-15 09:37:04 +00:00
width: 260px;
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-history-side-panel {
width: 100%;
height: 100%;
}
2019-03-15 09:37:04 +00:00
.seafile-md-viewer .seafile-comment .add-comment-input,
.seafile-md-viewer .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;
}
2019-03-15 09:37:04 +00:00
.seafile-md-viewer .seafile-comment {
background-color: #fff;
min-height: 18.5em;
z-index: 3;
width: 380px;
height: 100%;
position: fixed;
right: 0;
}
.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%;
2019-03-15 09:37:04 +00:00
z-index: 1;
2019-03-15 04:11:32 +00:00
}
@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;
2019-03-19 04:14:45 +00:00
max-width: 100%;
}
2019-03-15 09:37:04 +00:00
}
.seafile-md-comment {
background-color: #fff;
position: absolute;
right: 1px;
height: calc(100% - 56px);
width: 30%;
}
.seafile-md-comment .seafile-comment {
height: 100%;
width: 100%;
}
.seafile-md-comment .seafile-comment .seafile-comment-toggle-resolved {
width: 100%;
}