1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 23:34:45 +00:00

txt-comment (#2944)

This commit is contained in:
Michael An
2019-02-14 20:10:15 +08:00
committed by Daniel Pan
parent c214b40043
commit de196e917f
4 changed files with 371 additions and 11 deletions

View File

@@ -0,0 +1,118 @@
.seafile-comment {
border-left: 1px solid #e6e6dd;
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: #fafaf9;
}
.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-toggle-resolved {
margin-top: 45px;
border-bottom: 1px solid #e5e5e5;
padding: 5px 10px;
display: flex;
position: absolute;
background-color: #fff;
justify-content: space-between;
width: 29%;
}
.seafile-comment-list {
height: calc(100% - 40px);
margin-top: 30px;
overflow-y: auto;
margin-bottom: 0;
}
.seafile-comment-list .comment-vacant {
padding: 1em;
text-align: center;
}
.seafile-comment-item {
overflow-y: hidden;
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;
}
.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;
}
.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 {
background-color: #fafaf9;
padding: 10px 10px 0;
border-top: 1px solid #e5e5e5;
display: flex;
flex-direction: column;
min-height: 150px;
}
.seafile-comment-footer .add-comment-input {
border: 1px solid #e6e6dd;
padding: 5px;
width: 23em;
min-height: 90px;
}
.seafile-comment-footer .submit-comment {
margin-top: 5px;
width: 60px;
height: 28px;
}

View File

@@ -80,4 +80,20 @@
.file-internal-link {
color: #585858;
}
}
.txt-file-view-body .txt-view-comment {
background: #fff;
display: flex;
height: 100%;
}
.txt-file-view-body .txt-view-comment .ReactCodeMirror {
width: 70%;
margin: 5px 20px;
overflow-y: auto;
}
.txt-file-view-body .txt-view-comment .seafile-comment {
width: 30%;
}