silverstripe-comments/scss/comments.scss

186 lines
2.6 KiB
SCSS
Raw Normal View History

2015-04-22 04:05:51 +02:00
.comments-holder-container {
clear: both;
.field {
clear: left;
}
.num,
.author {
font-size: 1.3em;
}
.num {
color: #999;
margin-right: 5px;
}
.num-total {
line-height: 40px;
margin-bottom: 0;
}
.comments-list {
margin: 0;
}
.comment-count {
margin: 15px 0;
}
// The comment form
.commenting-area {
margin-top: 50px;
label.left{
font-weight: normal;
}
}
.commenting-rss-feed {
margin-top: 4em;
text-align: right;
.action-links {
margin: 20px 0 10px;
li {
display: inline;
list-style-type: none;
margin-left: 20px;
&:first-child {
margin-left: 0;
}
&.comment-reply-action {
float: right;
}
}
2015-04-22 04:05:51 +02:00
a {
background-image: none;
&::first-letter {
text-transform: capitalize;
}
}
2015-04-22 04:05:51 +02:00
}
}
2015-04-22 04:05:51 +02:00
.no-comments-yet {
display: inline-block;
margin-top: 10px;
}
}
// A published comment
.comment {
clear:both;
list-style-type: none;
overflow: hidden;
padding: 20px 0 10px;
position: relative;
&.author-comment {
&:after {
content: 'Author';
float: right;
position: absolute;
top: 1.5em;
right: 0.5em;
font-size: 1em;
font-weight: bold;
}
2015-04-22 04:05:51 +02:00
> .comment-text {
border: 1px solid blue;
}
2015-04-22 04:05:51 +02:00
}
&.spam {
.comment-text {
2015-04-22 04:05:51 +02:00
border: 1px dashed orange;
}
2015-04-22 04:05:51 +02:00
}
.comment-text {
background-color: #fff;
border: 1px solid #ddd;
box-shadow: none;
margin: 0;
padding: 0 15% 0 20px;
white-space: pre;
white-space: pre-wrap;
white-space: pre-line;
word-wrap: break-word;
p:last-child {
margin-bottom: 0;
}
}
2015-04-22 04:05:51 +02:00
.date {
font-size: 16px;
2015-04-22 04:05:51 +02:00
&:before {
content: '\0000a0\0000a0\0000a0\0000a0';
}
2015-04-22 04:05:51 +02:00
}
2015-04-22 04:05:51 +02:00
&.unmoderated {
> .comment-text {
border: 1px solid yellow;
}
2015-04-22 04:05:51 +02:00
}
.info {
margin-bottom: 10px;
}
&.spam .comment {
border: 1px dashed orange;
border-radius: 4px;
padding: 2.5em 1em 1em;
}
.comment-replies-container {
clear: both;
padding-left: 10px;
margin: 80px 0 0 0;
border-left: 1px dashed #999;
.comment-reply-form-holder {
padding: 0 10px; // Prevent clipping issues on slideUp/Down
}
.comment-replies-holder {
padding: 0 0 0 10px;
}
}
}
.comments-list.root-level {
margin-left: 0;
}
.comment-reply-link {
float: right;
}
.comment-moderation-options {
float: left;
}
.comment-action-links {
margin: 20px 0 10px;
a:not(:last-child) {
margin-right: 12px;
}
}
.commenting-rss-feed ul {
list-style: none;
}