ensl.org/app/assets/stylesheets/components/_comments.scss

116 lines
1.8 KiB
SCSS
Raw Normal View History

/*
Thread List
*/
#comments-thread {
@include span-columns(12);
h3 {
margin: 1em 0;
}
}
/*
Comment
*/
2014-04-06 14:14:03 +00:00
.comment {
$comment-gutter: 1.4em;
$comment-image-padding: .7em;
$comment-image-width: 4em;
$comment-color: $base-font-color;
2014-04-18 00:07:07 +00:00
$comment-background: $light-gray;
2014-04-06 14:14:03 +00:00
$comment-detail-color: transparentize($comment-color, .5);
$comment-image-vert-alignment: top;
position: relative;
2014-04-06 14:14:03 +00:00
width: 100%;
margin-bottom: $base-line-height;
padding-bottom: 1em;
border-bottom: 1px solid transparentize($comment-color, .9);
.comment-image,
.comment-content {
display: table-cell;
vertical-align: $comment-image-vert-alignment;
}
.comment-image {
padding-right: $comment-gutter;
> img {
width: $comment-image-width;
height: auto;
border-radius: $base-border-radius;
padding: $comment-image-padding;
background: $comment-background;
display: block;
max-width: none;
}
.comment-reverse-order & {
padding-right: 0;
padding-left: 10px;
}
}
.comment-content {
width: 100%;
position: relative;
h1 {
font-size: 1em;
margin-bottom: .5em;
}
a.user,
a.team {
display: inline-block;
}
a.user {
margin-right: em(10);
}
a.team {
margin-left: em(10);
}
2014-04-06 14:14:03 +00:00
p {
margin-bottom: .5em;
}
p.comment-detail {
font-style: italic;
font-size: .9em;
color: $comment-detail-color;
margin-top: em(10);
2014-04-06 14:14:03 +00:00
}
.controls {
position: absolute;
top: - em(5);
2014-04-06 14:14:03 +00:00
right: 0;
}
}
}
/*
Comment Form
*/
.comment-form {
@include span-columns(12);
margin-bottom: em(20);
h1,
h5 {
margin-top: 0;
margin-bottom: 1em;
}
.fields {
margin-bottom: em(20);
}
}