PC-vote/assets/css/DetailsComments.less
2025-02-17 19:01:20 +08:00

746 lines
20 KiB
Plaintext

.comment-box {
padding-top: 22px;
padding-left: 42px;
.edit-comment {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 12;
.box {
width: 650px;
// height: 500px;
border-radius: 10px;
background: #fff;
padding: 20px 15px;
.text {
font-size: 18px;
font-weight: 650;
margin-bottom: 15px;
color: #000;
}
.input-box {
margin-right: 0;
.bottom {
border-top: 1px solid #ebebeb;
}
}
.btn-list {
padding: 15px 0;
justify-content: flex-end;
.btn {
font-size: 14px;
color: #333;
width: 80px;
height: 28px;
line-height: 28px;
text-align: center;
border-radius: 43px;
cursor: pointer;
background-color: #fff;
border: 1px solid #ebebeb;
margin-left: 20px;
&.send {
background-color: #fddf6d;
border: 1px solid #fddf6d;
}
}
}
}
}
}
.comment-title {
font-weight: 650;
color: #000000;
font-size: 16px;
margin-bottom: 16px;
.comment-amount {
color: #555;
font-weight: 400;
margin-left: 8px;
}
}
.post-comment {
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(215, 215, 215, 1);
// border-right-width: 0;
border-radius: 6px;
margin-bottom: 30px;
margin-right: 30px;
transition: all 5s;
// justify-content: space-between;
overflow: hidden;
position: relative;
&.post-comment-focus {
// // border-right-width: 1px;
.post-input {
/deep/ .el-textarea__inner {
width: 468px;
min-height: 200px !important;
max-height: 80vh;
padding-bottom: 52px;
}
/deep/ .el-input__count {
display: block;
// bottom: 42px;
left: 10px;
}
}
.post-ok {
height: 32px;
bottom: 10px;
right: 10px;
}
.post-comment-input {
width: 468px;
}
}
.post-comment-input {
width: 410px;
}
.post-input {
background-color: transparent;
font-size: 14px;
resize: none;
transition: all 0.5s;
&::placeholder {
color: #aaaaaa;
}
&::-webkit-scrollbar {
width: 0 !important;
}
scrollbar-width: none;
-ms-overflow-style: none;
border: none;
/deep/ .el-textarea__inner {
border: none;
box-shadow: none;
resize: none;
min-height: 60px !important;
// height: 60px !important;
padding: 10px;
transition: all 0.5s;
}
/deep/ .el-input__count {
display: none;
}
}
.post-ok {
width: 60px;
height: 62px;
background-color: var(--main-color);
color: #fff;
font-size: 14px;
cursor: pointer;
border-radius: 6px;
transition: all 0.5s;
position: absolute;
bottom: 0;
right: 0;
}
}
.input-box {
background-color: rgba(246, 246, 246, 1);
border-radius: 10px;
padding-top: 11px;
display: flex;
justify-content: space-between;
flex-direction: column;
margin-right: 30px;
position: relative;
.top {
padding: 0 14px;
position: relative;
.input-placeholder {
color: #7f7f7f;
pointer-events: none;
font-size: 14px;
position: absolute;
top: 0;
left: 14px;
}
.avatar {
width: 24px;
height: 24px;
border-radius: 50%;
display: block;
margin-right: 10px;
}
.input-textarea {
font-size: 14px;
border: none;
outline: none;
background-color: transparent;
min-height: 80px;
padding-bottom: 11px;
// &.placeholder::after {
// content: "说说你的看法…";
// color: #7f7f7f;
// pointer-events: none;
// }
* {
background: transparent !important;
color: #000 !important;
border: none !important;
outline: none !important;
font-size: 14px !important;
padding: 0 !important;
margin: 0 !important;
width: auto !important;
height: auto !important;
border-radius: 0 !important;
}
img {
display: none !important;
}
}
}
.picture-box {
padding-bottom: 10px;
border-bottom: 1px dotted rgba(215, 215, 215, 0.501961);
padding-left: 14px;
.picture {
position: relative;
width: fit-content;
.img {
height: 60px;
border-radius: 5px;
display: block;
}
.close {
width: 17px;
height: 17px;
position: absolute;
top: 0;
right: 0;
transform: translate(50%, -50%);
cursor: pointer;
}
}
}
.bottom {
height: 52px;
padding: 0 14px;
justify-content: space-between;
.operate {
.item {
display: inline-flex;
position: relative;
z-index: 1;
&:not(:last-of-type) {
margin-right: 20px;
}
&.pitch {
.emoji-box {
display: flex;
}
&::after {
content: "";
width: 28px;
height: 28px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
border-radius: 5px;
z-index: -1;
}
}
.icon {
width: 16px;
height: 16px;
cursor: pointer; /* 鼠标悬停时显示为可点击 */
}
.emoji-box {
width: 501px;
border-radius: 8px;
background-color: #fff;
// box-shadow: 0 0 11px rgba(0, 0, 0, 0.1);
filter: drop-shadow(0 0 11px rgba(0, 0, 0, 0.1));
top: 45px;
position: absolute;
z-index: 1;
left: -15px;
border: 1px solid rgb(235, 235, 235);
display: none;
flex-wrap: wrap;
font-size: 22px;
padding: 8px;
&::after {
content: "";
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #ffffff;
position: absolute;
top: -8px;
left: 15px;
}
.emoji-icon {
margin: 5px;
cursor: pointer;
}
}
.file {
opacity: 0; /* 隐藏输入框 */
background: transparent;
border: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
cursor: pointer;
&::after {
content: "";
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
}
&:hover .file-hint {
display: inline-block;
}
.file-hint {
font-weight: 400;
color: #ffffff;
text-align: center;
font-size: 13px;
height: 22px;
line-height: 22px;
background-color: rgba(51, 51, 51, 1);
border-radius: 137px;
padding: 0 8px;
margin-left: 9px;
display: none;
position: absolute;
width: max-content;
top: 50%;
transform: translateY(-50%);
left: 20px;
}
}
}
.btn {
font-size: 14px;
// color: #333;
width: 80px;
height: 28px;
line-height: 28px;
text-align: center;
// background-color: rgba(253, 223, 109, 1);
background-color: var(--main-color);
color: #fff;
border-radius: 43px;
cursor: pointer;
}
}
.cross {
cursor: pointer;
height: 12px;
position: absolute;
right: 8px;
top: 5px;
width: 12px;
z-index: 2;
}
}
.comment-list {
margin-bottom: 78px;
padding-top: 17px;
.input-box {
margin-bottom: 12px;
margin-right: 0;
}
.comment-item {
&:not(:first-of-type) {
.comment-avatar {
margin-top: 10px;
}
.comment-header {
padding-top: 10px;
border-top: 1px dotted #d7d7d7;
}
}
padding-right: 30px;
.comment-avatar {
width: 20px;
height: 20px;
border-radius: 50%;
margin-right: 10px;
cursor: pointer;
}
.comment-content {
.comment-header {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
.comment-header-left {
font-size: 13px;
.comments-avatar {
width: 20px;
height: 20px;
margin-right: 10px;
border-radius: 50%;
}
.comments-username {
color: #555;
margin-right: 10px;
cursor: pointer;
}
.comments-time {
color: #aaaaaa;
margin-right: 10px;
}
.comments-title {
height: 16px;
}
.comments-identity {
font-size: 12px;
color: #7f7f7f;
padding: 0 3px;
height: 20px;
background-color: rgba(240, 242, 245, 1);
border: 1px solid rgba(215, 215, 215, 1);
border-radius: 5px;
}
}
.comment-header-right {
.menu-box {
position: relative;
&:hover .operate-box {
display: block;
}
.menu-icon {
width: 14px;
height: 14px;
cursor: pointer;
}
.operate-box {
display: none;
flex-direction: column;
position: absolute;
top: 24px;
right: 0;
font-size: 12px;
color: #7f7f7f;
cursor: pointer;
width: 60px;
z-index: 2;
border-radius: 5px;
background-color: rgba(246, 246, 246, 1);
border: 1px solid rgba(215, 215, 215, 1);
.item {
height: 24px;
&:not(:last-of-type) {
border-bottom: 1px solid rgba(215, 215, 215, 1);
}
}
&::after {
content: "";
width: 58px;
height: 36px;
position: absolute;
top: -14px;
right: 0;
z-index: -1;
}
}
}
.comment-icon {
width: 14px;
height: 13px;
margin-left: 30px;
cursor: pointer;
}
.like-box {
font-size: 12px;
color: #aaa;
margin-left: 30px;
cursor: pointer;
.like-icon {
width: 14px;
height: 14px;
}
.like-quantity {
margin-left: 6px;
}
}
}
}
.comment-text {
font-size: 14px;
line-height: 22px;
color: #333;
margin-bottom: 10px;
word-break: break-all;
min-height: 22px;
cursor: pointer;
.comments-reply {
color: #92a1bf;
display: inline;
}
}
.comments-img {
width: 75px;
margin-bottom: 13px;
border-radius: 5px;
}
.alreadyVoted {
font-size: 12px;
color: #aaaaaa;
background-color: rgba(246, 246, 246, 1);
line-height: 17px;
width: fit-content;
margin-bottom: 15px;
word-break: break-word;
padding: 6px;
border-radius: 4px;
}
.comments-input-masking {
width: 100vw;
height: 100vh;
min-width: 1200px;
position: fixed;
top: 0;
left: 0;
z-index: 10;
}
.comments-input-box {
margin-top: 13px;
height: 0;
transition: all 0.3s;
position: relative;
z-index: 11;
&.comments-input-box-show {
height: 184px;
margin-bottom: 10px;
&::after {
content: "";
width: 20px;
height: 20px;
display: block;
background-color: rgba(215, 215, 215, 1);
position: absolute;
top: -2px;
left: 21px;
transform: rotate(45deg);
z-index: -1;
}
.comments-input {
border: 1px solid rgba(215, 215, 215, 1);
background-color: #fff;
/deep/ textarea {
height: 140px;
padding: 10px;
min-height: 40px !important;
overflow: auto;
}
/deep/ .el-input__count {
display: block;
}
.operate-bottom {
display: flex;
}
}
}
.comments-input {
flex: 1;
border-color: #fff;
border-radius: 8px;
position: relative;
z-index: 1;
transition: all 0.3s;
/deep/ textarea {
border: none;
outline: none;
resize: none;
border-radius: 8px;
font-size: 14px;
width: 100%;
height: 0;
padding: 0 10px;
min-height: 0 !important;
transition: all 0.2s;
overflow: hidden;
}
/deep/ .el-textarea__inner {
box-shadow: none;
}
/deep/ .el-input__count {
left: 10px;
bottom: -32px;
width: fit-content;
display: none;
}
.operate-bottom {
justify-content: flex-end;
display: none;
transition: all 0.3s;
.comments-btn {
width: 60px;
height: 32px;
border-radius: 6px;
background-color: var(--main-color);
font-size: 14px;
color: #ffffff;
cursor: pointer;
margin-right: 10px;
margin-bottom: 10px;
&.comments-btn-cancel {
border: 1px solid #cccccc;
color: #797979;
background-color: #fff;
}
}
}
}
}
}
.child-comments {
.comment-avatar {
margin-top: 10px;
}
.comment-header {
padding-top: 10px;
border-top: 1px dotted #d7d7d7;
}
.comment-item {
padding-right: 0;
}
}
.comments-also {
color: #62b1ff;
line-height: 22px;
font-size: 13px;
height: 46px;
margin-left: 30px;
cursor: pointer;
border-top: 1px dotted #d7d7d7;
.also-icon {
width: 10px;
height: 10px;
margin-left: 8px;
}
}
}
}
.comment-end {
font-size: 12px;
color: #d7d7d7;
text-align: center;
margin-bottom: 118px;
padding-right: 30px;
}
.empty-box {
padding: 80px 0 110px;
}
.detail-image-mask {
width: 100%;
height: 100%;
max-width: none;
max-height: none;
border: none;
position: fixed;
top: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.8);
z-index: 100;
.detail-image {
width: 80vw;
height: 80vh;
border-radius: 8px;
background-color: #111;
.detail-img {
max-width: 100%;
max-height: 100%;
}
}
}