mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
191 lines
3.5 KiB
SCSS
191 lines
3.5 KiB
SCSS
|
// Colours
|
||
|
$blue: #00acee !default;
|
||
|
$blueDark: #0064cd !default;
|
||
|
$green: #46a546 !default;
|
||
|
$redLight: #DB4A39 !default;
|
||
|
$red: #9d261d !default;
|
||
|
$yellow: #ffc40d !default;
|
||
|
$orange: #f48b33 !default;
|
||
|
$pink: #c3325f !default;
|
||
|
$purple: #7a43b6 !default;
|
||
|
|
||
|
#comments-holder {
|
||
|
clear: both;
|
||
|
|
||
|
h2 {
|
||
|
margin: 30px 0 10px;
|
||
|
padding-bottom: 5px;
|
||
|
border-bottom: 1px solid #eee;
|
||
|
}
|
||
|
|
||
|
h3 {
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
|
||
|
.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;
|
||
|
}
|
||
|
|
||
|
// A published comment
|
||
|
.comment {
|
||
|
clear:both;
|
||
|
list-style-type: none;
|
||
|
overflow: auto;
|
||
|
padding: 20px 0 10px;
|
||
|
position: relative;
|
||
|
|
||
|
&.author-comment {
|
||
|
&:after {
|
||
|
content: 'Author';
|
||
|
float: right;
|
||
|
position: absolute;
|
||
|
top: 1.5em;
|
||
|
right: 0;
|
||
|
font-size: 1em;
|
||
|
font-weight: bold;
|
||
|
color: $blue;
|
||
|
}
|
||
|
|
||
|
.comment-text {
|
||
|
border: 1px solid $blue;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
&.spam {
|
||
|
.comment-text {
|
||
|
border: 1px dashed $orange;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.date {
|
||
|
font-size: 16px;
|
||
|
|
||
|
&:before {
|
||
|
content: '\0000a0\0000a0\0000a0\0000a0';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
&.unmoderated {
|
||
|
border: 2px dashed gray;
|
||
|
margin: 2em 0 4em;
|
||
|
padding: 2em;
|
||
|
|
||
|
.comment-moderation {
|
||
|
margin-bottom: 0; // Remove the margin to compensate for unmoderated comment padding.
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.info {
|
||
|
margin-bottom: 10px;
|
||
|
}
|
||
|
|
||
|
&.spam .comment{
|
||
|
border: 1px dashed $orange;
|
||
|
color: $orange;
|
||
|
border-radius: 4px;
|
||
|
padding: 2.5em 1em 1em;
|
||
|
}
|
||
|
|
||
|
.comment-replies-container {
|
||
|
margin-left: 20px;
|
||
|
padding-left: 10px;
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Admin actions
|
||
|
.comment-moderation {
|
||
|
float: right;
|
||
|
margin: 1em 0 2em;
|
||
|
|
||
|
.heading {
|
||
|
margin-bottom: 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.action-links {
|
||
|
margin: 20px 0 10px;
|
||
|
|
||
|
li {
|
||
|
display: inline;
|
||
|
list-style-type: none;
|
||
|
margin-left: 20px;
|
||
|
overflow: auto;
|
||
|
|
||
|
&:first-child {
|
||
|
margin-left: 0;
|
||
|
}
|
||
|
|
||
|
&.comment-reply-action {
|
||
|
float: right;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.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;
|
||
|
}
|
||
|
|
||
|
.no-comments-yet {
|
||
|
display: inline-block;
|
||
|
margin-top: 10px;
|
||
|
}
|
||
|
}
|