NDOJ/resources/comments.scss

327 lines
5.8 KiB
SCSS
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
@import "vars";
.comment-score {
font-weight: bold;
text-align: center;
}
a {
&.upvote-link, &.downvote-link {
color: black;
}
&.voted {
text-shadow: 0 0 4px black, 0 0 9px blue;
}
}
.comment-area {
margin-right: 30px;
h2 {
margin-bottom: 20px;
}
2022-12-18 09:31:31 +00:00
.revision-text p:first-child {
margin-top: 0;
}
.revision-text p:last-child {
margin-bottom: 0;
}
.featherlight-edit .featherlight-content {
background: #FAFAFA;
padding: 10px 15px 10px 10px;
border-radius: 10px;
border: 1px solid #CCC;
}
2023-04-11 01:25:49 +00:00
.comment-img {
display: flex;
margin-right: 4px;
2023-10-11 00:37:36 +00:00
height: 1.5em;
width: 1.5em;
2023-04-11 01:25:49 +00:00
}
2022-12-18 09:31:31 +00:00
.new-comments .comment-display {
display: flex;
margin-top: -0.25em !important;
padding-left: 1em;
padding-top: 0.5em !important;
border: 1px solid #ccc;
background: #fafafa;
}
.new-comments .comment .detail {
width: 100%;
2023-04-11 01:25:49 +00:00
padding-right: 1em;
2022-12-18 09:31:31 +00:00
}
.new-comments .comment-edits {
padding-right: 0.75em;
}
.new-comments .comment .detail .header {
display: flex;
flex-wrap: wrap;
padding: 2px 0px;
font-weight: normal;
border-bottom: 1px #888 solid;
color: #888;
text-align: right;
2023-04-11 01:25:49 +00:00
align-items: center;
2022-12-18 09:31:31 +00:00
}
.previous-revision, .next-revision {
color: #444;
}
.new-comments .header i {
color: #888 !important;
}
.new-comments .info {
padding-top: 0.4em;
display: flex;
}
.new-comments .gravatar {
2023-04-11 01:25:49 +00:00
width: 1.5em;
border-radius: 50%;
2022-12-18 09:31:31 +00:00
}
.new-comments .vote {
margin-right: 1em;
height: 75px;
padding-top: 0.4em;
}
.new-comments .comment-display {
border-radius: 4px;
}
.new-comments .comment:target > .comment-display {
border: 1px solid #2980b9;
border-left: 10px solid #2980b9;
padding-left: 5px;
}
.comments.top-level-comments {
margin-bottom: -3px;
}
.bad-comment {
opacity: 0.3;
}
.bad-comment:hover {
opacity: 1;
/* This is necessary to prevent random flickering */
-webkit-transform: translatez(0);
-moz-transform: translatez(0);
-ms-transform: translatez(0);
-o-transform: translatez(0);
transform: translatez(0);
}
.reply-comment {
margin: -50px 23px 10px -40px;
padding-top: 50px;
}
2023-05-22 13:52:18 +00:00
.show_more_reply {
font-weight: bold;
display: flex;
margin: 16px 40px;
align-items: center;
svg {
margin-right: 4px;
}
}
.show_more_comment {
font-weight: bold;
display: flex;
margin: 16px -40px;
align-items: center;
svg {
margin-right: 4px;
}
}
2020-01-21 06:35:58 +00:00
}
.no-comments-message {
margin-top: -15px;
margin-left: 2.75em;
}
.comment-author {
font-weight: bold;
color: #333;
}
.comment-header {
color: rgba(1, 1, 1, 1);
background: rgba(0, 0, 0, 0.1);
padding: 5px 10px 5px 5px;
margin-left: 30px;
border: 1px solid $border_gray;
border-radius: $widget_border_radius;
display: flex;
}
.comment-lock {
width: 100%;
padding-left: 14px;
}
.comment-spacer {
flex: 1;
}
.comment-edits:not(:empty) {
padding-right: 2px;
color: #444;
}
.comment-operation {
2022-11-07 22:00:38 +00:00
flex: auto;
2020-01-21 06:35:58 +00:00
float: right;
.fa {
color: #444;
}
a + a {
padding-left: 2px;
}
}
.comments.top-level-comments {
margin-right: -26px;
}
.comment-submit {
width: 100%;
}
.comment-post-wrapper {
input, textarea {
min-width: 100%;
max-width: 100%;
2023-10-05 19:00:20 +00:00
font-size: 15px;
2020-01-21 06:35:58 +00:00
}
}
.comment-box {
border-radius: $widget_border_radius;
padding: 5px 10px 10px 15px;
border: 1px solid $border_gray;
background: rgba(0, 0, 0, 0.01);
}
.comment {
list-style: none none;
border-radius: $widget_border_radius;
margin: (-50px) -4px 10px -40px;
padding-top: 50px;
&:target > .comment-box {
border-left: 10px solid $highlight_blue;
padding-left: 5px;
}
&:before {
display: block;
content: " ";
margin-top: -50px;
height: 50px;
visibility: hidden;
}
}
.comment-author {
margin-bottom: 1em;
img {
width: 1.25em;
height: 1.25em;
border-radius: 0.2em;
vertical-align: bottom;
margin-right: 0.3em;
}
}
.comment-body {
word-wrap: break-word;
2022-12-18 09:31:31 +00:00
}
.actionbar {
display: flex;
.actionbar-button {
cursor: pointer;
padding: 0.8em;
border-radius: 5em;
font-weight: bold;
display: inherit;
2023-11-01 07:08:36 +00:00
background: lightgray;
2022-12-18 09:31:31 +00:00
}
.actionbar-block {
display: flex;
flex: 1;
justify-content: center;
}
.pagevote-score {
margin-right: 0.3em;
}
.like-button {
padding-right: 0.5em;
border-radius: 5em 0 0 5em;
}
.actionbar-button:hover {
2023-11-01 07:08:36 +00:00
background: darkgray;
2022-12-18 09:31:31 +00:00
}
.dislike-button {
padding-left: 0.5em;
border-radius: 0 5em 5em 0;
border-left: 0;
}
.like-button.voted {
color: blue;
}
.dislike-button.voted {
color: red;
}
.actionbar-text {
padding-left: 0.4em;
}
.bookmarked {
color: rgb(180, 180, 7);
}
2023-02-15 00:05:58 +00:00
}
2023-05-22 16:11:40 +00:00
.show_more_comment {
margin-left: -20px;
}
2024-01-31 04:20:55 +00:00
.pagedown-image-upload {
.submit-input {
display: flex;
min-width: inherit;
float: right;
}
.deletelink-box {
position: absolute;
top: 2px;
right: 1em;
}
}
2023-02-15 00:05:58 +00:00
@media (max-width: 799px) {
.hide_texts_on_mobile .actionbar-text {
display: none;
}
2020-07-03 02:50:31 +00:00
}