mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
remove comment (#5650)
* remove comment * remove useless third party lib * remove comment
This commit is contained in:
@@ -1,132 +0,0 @@
|
||||
.seafile-comment {
|
||||
background-color: #f5f5f5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.seafile-comment-title {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
min-height: 3em;
|
||||
line-height: 3em;
|
||||
padding: 0 1em;
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
}
|
||||
.seafile-comment-title .seafile-comment-title-text {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
}
|
||||
.seafile-comment-title .seafile-comment-title-close {
|
||||
color: #b9b9b9;
|
||||
}
|
||||
.seafile-comment-title .seafile-comment-title-close:hover {
|
||||
color: #888;
|
||||
}
|
||||
.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;
|
||||
margin: 0;
|
||||
}
|
||||
.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;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.seafile-comment-footer .add-comment-input,
|
||||
.seafile-edit-comment .edit-comment-input {
|
||||
border: 1px solid #e6e6dd;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
min-height: 90px;
|
||||
border-radius: 5px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
@@ -59,12 +59,10 @@
|
||||
display: flex;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.seafile-toggle-diff .custom-switch .custom-switch-indicator,
|
||||
.seafile-comment-title-toggle .custom-switch .custom-switch-indicator {
|
||||
.seafile-toggle-diff .custom-switch .custom-switch-indicator {
|
||||
border: 1px solid #e9ecef;
|
||||
}
|
||||
.seafile-toggle-diff .custom-switch-input:checked ~ .custom-switch-indicator,
|
||||
.seafile-comment-title-toggle .custom-switch-input:checked ~ .custom-switch-indicator {
|
||||
.seafile-toggle-diff .custom-switch-input:checked ~ .custom-switch-indicator {
|
||||
background-color: #f19645;
|
||||
}
|
||||
|
||||
@@ -143,35 +141,6 @@
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.review-comment-btn {
|
||||
position: absolute;
|
||||
top: -1000px;
|
||||
right: 0;
|
||||
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;
|
||||
}
|
||||
.review-comment-btn:hover {
|
||||
cursor: pointer;
|
||||
background-color: #eee;
|
||||
}
|
||||
.comments-number {
|
||||
font-size: 12px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 8px;
|
||||
text-align: center;
|
||||
line-height: 16px;
|
||||
font-weight: 600;
|
||||
background-color: #f19645;
|
||||
position: absolute;
|
||||
top: 10%;
|
||||
right: 30%;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.review-side-panel-nav {
|
||||
margin: 0;
|
||||
}
|
||||
@@ -194,7 +163,6 @@
|
||||
.review-side-panel .tab-content {
|
||||
height: calc(100% - 38px);
|
||||
}
|
||||
.review-side-panel .tab-content .comments,
|
||||
.review-side-panel .tab-content .tab-pane {
|
||||
height: 100%;
|
||||
}
|
||||
|
@@ -1,45 +0,0 @@
|
||||
.comment-dialog {
|
||||
width: 500px;
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
right: 0;
|
||||
padding: 15px;
|
||||
background-color: #fafafa;
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
border-radius: .3rem;
|
||||
box-shadow: 0 0 3px #ccc;
|
||||
z-index: 1000;
|
||||
}
|
||||
.comment-dialog-triangle {
|
||||
position: absolute;
|
||||
left: -5px;
|
||||
top: 50%;
|
||||
transform: rotate(45deg);
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
border-top: none;
|
||||
border-right: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #fafafa;
|
||||
box-shadow: -1px 1px #ccc;
|
||||
}
|
||||
.comment-dialog textarea {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
max-height: 300px;
|
||||
padding: 5px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.comment-dialog .button-group .btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.comment-dialog .comment-dialog-quote {
|
||||
margin-top: 10px;
|
||||
max-height: 6rem;
|
||||
overflow: auto;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.comment-dialog .comment-dialog-quote ul,
|
||||
.comment-dialog .comment-dialog-quote ol {
|
||||
padding-left: 1rem;
|
||||
}
|
@@ -37,9 +37,6 @@
|
||||
margin: 20px 0px 20px 5%;
|
||||
max-width: calc(90% - 260px);
|
||||
}
|
||||
.seafile-md-viewer-slate.comment-on {
|
||||
max-width: calc(90% - 360px);
|
||||
}
|
||||
.seafile-md-viewer-main {
|
||||
flex: auto;
|
||||
overflow: auto;
|
||||
@@ -102,44 +99,9 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.seafile-md-viewer .seafile-comment .add-comment-input,
|
||||
.seafile-md-viewer .seafile-comment .edit-comment-input {
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
}
|
||||
.seafile-md-viewer-side-panel .seafile-history-side-panel {
|
||||
border-left: 1px solid #e6e6dd;
|
||||
}
|
||||
.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;
|
||||
}
|
||||
.seafile-md-viewer .seafile-comment .seafile-comment-footer {
|
||||
min-height: 230px;
|
||||
}
|
||||
.seafile-md-viewer .seafile-comment-toggle-resolved {
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
@media (max-width:991.8px) {
|
||||
.seafile-editor-outline {
|
||||
display: none;
|
||||
@@ -150,20 +112,6 @@
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.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%;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sf-md-viewer-topbar-first {
|
||||
@@ -176,10 +124,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.seafile-editor-side-panel .seafile-comment {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* toolbar */
|
||||
.topbar-file-info {
|
||||
display: inline-block;
|
||||
|
81
frontend/src/css/react-mentions-default-style.js
vendored
81
frontend/src/css/react-mentions-default-style.js
vendored
@@ -1,81 +0,0 @@
|
||||
const defaultStyle = {
|
||||
control: {
|
||||
backgroundColor: '#fff',
|
||||
fontSize: 14,
|
||||
fontWeight: 'normal',
|
||||
},
|
||||
highlighter: {
|
||||
overflow: 'hidden',
|
||||
},
|
||||
input: {
|
||||
margin: 0,
|
||||
},
|
||||
'&singleLine': {
|
||||
control: {
|
||||
display: 'inline-block',
|
||||
width: 130,
|
||||
},
|
||||
highlighter: {
|
||||
padding: 1,
|
||||
border: '2px inset transparent',
|
||||
},
|
||||
input: {
|
||||
padding: 1,
|
||||
border: '2px inset',
|
||||
},
|
||||
},
|
||||
'&multiLine': {
|
||||
control: {
|
||||
},
|
||||
highlighter: {
|
||||
padding: 9,
|
||||
},
|
||||
input: {
|
||||
padding: '8px 6px',
|
||||
minHeight: 90,
|
||||
height: 90,
|
||||
border: '1px solid #e6e6dd',
|
||||
borderBottom: 'none',
|
||||
borderRadius: '5px 5px 0 0',
|
||||
overfflowY: 'auto',
|
||||
outline: 'none',
|
||||
'&focused': {
|
||||
/*
|
||||
backgroundColor: '#cee4e5',
|
||||
outlineOffset: '-2px',
|
||||
outlineColor: '-webkit-focus-ring-color',
|
||||
outlineStyle: 'auto',
|
||||
outlineWidth: '5px',
|
||||
*/
|
||||
},
|
||||
},
|
||||
},
|
||||
suggestions: {
|
||||
list: {
|
||||
backgroundColor: 'white',
|
||||
border: '1px solid rgba(0,0,0,0.15)',
|
||||
fontSize: 14,
|
||||
maxHeight: 200,
|
||||
overflow: 'auto',
|
||||
position: 'absolute',
|
||||
bottom: 14,
|
||||
width: '150px',
|
||||
},
|
||||
item: {
|
||||
width: 'auto',
|
||||
padding: '5px 15px',
|
||||
overflowX: 'auto',
|
||||
borderBottom: '1px solid rgba(0,0,0,0.15)',
|
||||
'&focused': {
|
||||
backgroundColor: '#f19654',
|
||||
color: '#fff',
|
||||
fontWeight: '400',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const defaultMentionStyle = {
|
||||
};
|
||||
|
||||
export { defaultStyle, defaultMentionStyle };
|
@@ -1,44 +0,0 @@
|
||||
.review-comment-dialog {
|
||||
width: 500px;
|
||||
position: absolute;
|
||||
top: 30%;
|
||||
right: 0;
|
||||
padding: 15px;
|
||||
background-color: #fafafa;
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
border-radius: .3rem;
|
||||
box-shadow: 0 0 3px #ccc;
|
||||
z-index: 1000;
|
||||
}
|
||||
.review-comment-dialog-triangle {
|
||||
position: absolute;
|
||||
left: -5px;
|
||||
top: 50%;
|
||||
transform: rotate(45deg);
|
||||
border: 1px solid rgba(0,0,0,.2);
|
||||
border-top: none;
|
||||
border-right: none;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #fafafa;
|
||||
box-shadow: -1px 1px #ccc;
|
||||
}
|
||||
.review-comment-dialog textarea {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
max-height: 300px;
|
||||
padding: 5px;
|
||||
}
|
||||
.review-comment-dialog .button-group .btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
.review-comment-dialog .review-comment-dialog-quote {
|
||||
margin-top: 10px;
|
||||
max-height: 6rem;
|
||||
overflow: auto;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
.review-comment-dialog .review-comment-dialog-quote ul,
|
||||
.review-comment-dialog .review-comment-dialog-quote ol {
|
||||
padding-left: 1rem;
|
||||
}
|
Reference in New Issue
Block a user