mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 11:21:29 +00:00
optimize seafile-editor
This commit is contained in:
139
frontend/src/pages/markdown-editor/css/comments-list.css
Normal file
139
frontend/src/pages/markdown-editor/css/comments-list.css
Normal file
@@ -0,0 +1,139 @@
|
||||
.seafile-comment {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.seafile-comment-list {
|
||||
overflow-y: auto;
|
||||
}
|
||||
.seafile-comment-list .comment-vacant {
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
.seafile-comment-item {
|
||||
padding: 15px 10px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info {
|
||||
padding-bottom: 0.5em;
|
||||
height: 3em;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .reviewer-info {
|
||||
padding-left: 10px;
|
||||
max-width: 75%;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .review-time {
|
||||
font-size: 10px;
|
||||
color: #777;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown {
|
||||
margin-left: auto;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: #fff;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown .seafile-comment-dropdown-btn {
|
||||
color: #999;
|
||||
background-color: transparent;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown:hover .seafile-comment-dropdown-btn {
|
||||
color: #555;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button:hover,
|
||||
.seafile-comment-item .seafile-comment-info .seafile-comment-dropdown button:focus {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background-color: #eee;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-content {
|
||||
margin-left: 42px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-content p {
|
||||
word-break: break-all;
|
||||
}
|
||||
.seafile-comment-item blockquote {
|
||||
cursor: pointer;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-content ol,
|
||||
.seafile-comment-item .seafile-comment-content ul,
|
||||
.seafile-comment-item .seafile-comment-content li {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.seafile-comment-item .seafile-comment-content table,
|
||||
.seafile-comment-item .seafile-comment-content th,
|
||||
.seafile-comment-item .seafile-comment-content td {
|
||||
border: 1px solid #333;
|
||||
}
|
||||
.seafile-comment-item-resolved {
|
||||
background-color: #e6ffed;
|
||||
}
|
||||
.seafile-comment-footer {
|
||||
padding: 10px 10px;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 150px;
|
||||
max-height: 300px;
|
||||
}
|
||||
.seafile-comment-footer .add-comment-input,
|
||||
.seafile-edit-comment .edit-comment-input {
|
||||
border: 1px solid #e6e6dd;
|
||||
padding: 5px;
|
||||
min-height: 90px;
|
||||
border-radius: 5px;
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
}
|
||||
.seafile-comment-footer .add-comment-input {
|
||||
border-bottom: none;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
.seafile-comment-footer .add-comment-input:focus {
|
||||
outline: none;
|
||||
}
|
||||
.seafile-comment-footer .comment-submit-container {
|
||||
border: 1px solid #e6e6dd;
|
||||
border-top: none;
|
||||
border-radius: 0 0 5px 5px;
|
||||
padding: 5px;
|
||||
background: #fff;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
}
|
||||
.seafile-comment-footer .comment-submit-container::before {
|
||||
border-top: 1px solid #e6e6dd;
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
top: 0;
|
||||
}
|
||||
.seafile-comment-footer .submit-comment {
|
||||
height: 28px;
|
||||
}
|
||||
.seafile-edit-comment .comment-btn {
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
105
frontend/src/pages/markdown-editor/css/detail-list-view.css
Normal file
105
frontend/src/pages/markdown-editor/css/detail-list-view.css
Normal file
@@ -0,0 +1,105 @@
|
||||
.dirent-table-container tr {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dirent-table-container th,
|
||||
.dirent-table-container td {
|
||||
padding: 5px 3px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dirent-table-container th {
|
||||
font-size: 13px;
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
color: #9c9c9c;
|
||||
}
|
||||
|
||||
.dirent-table-container td {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.dirent-table-container .file-tag-container th {
|
||||
vertical-align: top;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.dirent-table-container .file-tag-container .tag-list {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.file-tag-list li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
max-width: 180px;
|
||||
}
|
||||
|
||||
.file-tag-list .file-tag-item {
|
||||
margin: .25rem 0;
|
||||
padding: 0 .5rem;
|
||||
width: max-content;
|
||||
cursor: pointer;
|
||||
background-color: #eee;
|
||||
border-radius: 1rem;
|
||||
}
|
||||
|
||||
.file-tag-list .file-tag-item .file-tag {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.file-tag-list .tag-name {
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
width: 80px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.file-related-files th {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.file-related-files td i {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.file-related-files td ul {
|
||||
list-style: none;
|
||||
max-height: 100px;
|
||||
overflow-y: scroll;
|
||||
white-space: nowrap;
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.file-related-files td ul li {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.file-related-files ul li a,
|
||||
.list-related-file-table tr td a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.list-related-file-body {
|
||||
min-height: 200px;
|
||||
max-height: 500px;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.detail-container .tab-content {
|
||||
height: calc(100% - 73px);
|
||||
}
|
||||
|
||||
.detail-container .nav-item .nav-link, .detail-container .nav-item .nav-link i {
|
||||
margin: 0 auto;
|
||||
}
|
125
frontend/src/pages/markdown-editor/css/rich-editor.css
Normal file
125
frontend/src/pages/markdown-editor/css/rich-editor.css
Normal file
@@ -0,0 +1,125 @@
|
||||
.seafile-markdown-editor {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
background-color: #fff;
|
||||
user-select: none;
|
||||
box-shadow: 0 3px 2px -2px rgba(200,200,200,.15);
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-toolbar .editor-btn-group {
|
||||
height: 100%;
|
||||
padding: 5px 0 5px 5px;
|
||||
font-size: 0.75rem;
|
||||
border-right: 1px solid #e5e5e5;
|
||||
color: #555555;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content .markdown-editor-wrapper {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow-x: hidden;
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
background-color: #fafaf9;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content .markdown-help-wrapper {
|
||||
width: 0;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content .markdown-help-wrapper.show {
|
||||
width: 300px;
|
||||
background-color: #fff;
|
||||
border-left: 1px solid #e6e6dd;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content .markdown-help-wrapper .file-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .markdown-editor-content .markdown-help-wrapper .help-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor ::-webkit-scrollbar{
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor ::-webkit-scrollbar-button {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor ::-webkit-scrollbar-thumb {
|
||||
background-color: rgb(206, 206, 212);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
@media (max-width: 991.8px) {
|
||||
.seafile-editor {
|
||||
min-width: calc(100% - 40px);
|
||||
}
|
||||
|
||||
.seafile-editor-main-panel {
|
||||
width: calc(100% - 200px);
|
||||
}
|
||||
|
||||
.seafile-editor-side-panel {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.editor-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-container .editor {
|
||||
margin: 20px !important;
|
||||
padding: 20px 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.editor-container .editor {
|
||||
margin: 0 !important;
|
||||
padding: 10px 15px;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.full-screen .editor-container .article {
|
||||
margin: 20px auto;
|
||||
max-width: 950px;
|
||||
}
|
89
frontend/src/pages/markdown-editor/css/side-panel.css
Normal file
89
frontend/src/pages/markdown-editor/css/side-panel.css
Normal file
@@ -0,0 +1,89 @@
|
||||
.seafile-markdown-editor .markdown-help-wrapper .side-panel {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #f5f5f5;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav {
|
||||
padding: 10px 0;
|
||||
min-width: 125px;
|
||||
border-bottom: 1px solid #eee;
|
||||
height: 36px;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav .nav-item {
|
||||
padding: 0 0.75rem;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav .nav-link {
|
||||
padding: 0 0.75rem;
|
||||
transition: 0.3s color;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav-link {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav .nav-link.active {
|
||||
color: #f19645;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel .nav .iconfont {
|
||||
font-weight: 700;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel-content {
|
||||
font-size: 0.937rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.seafile-markdown-editor .side-panel-content:hover {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.image-view {
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
z-index: 1004;
|
||||
box-shadow: 0 0 10px #aaa;
|
||||
border-radius: 3px;
|
||||
line-height: 150px;
|
||||
overflow: hidden;
|
||||
font-size: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.image-view img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
.image-view i {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
line-height: 150px;
|
||||
font-size: 30px;
|
||||
color: #eb8205;
|
||||
-moz-animation: rotate 1.5s ease infinite;
|
||||
-webkit-animation: rotate 1.5s ease infinite;
|
||||
animation: rotate 1.5s ease infinite;
|
||||
}
|
||||
|
||||
@keyframes rotate {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user