/*!
 * # Semantic UI - Comment
 * http://github.com/semantic-org/semantic-ui/
 *
 *
 * Released under the MIT license
 * http://opensource.org/licenses/MIT
 *
 */


/*******************************
            Standard
*******************************/


/*--------------
    Comments
---------------*/

.ui.comments {
  margin: @commentMargin;
  max-width: @commentMaxWidth;
}

.ui.comments:first-child {
  margin-top: 0em;
}
.ui.comments:last-child {
  margin-bottom: 0em;
}

/*--------------
     Comment
---------------*/

.ui.comments .comment {
  position: relative;
  background: @commentCommentBackground;
  margin: @commentCommentMargin;
  padding: @commentCommentPadding;
  border: @commentCommentBorder;
  border-top: @commentCommentDivider;
  line-height: @commentCommentLineHeight;
}
.ui.comments .comment:first-child {
  margin-top: @commentFirstCommentMargin;
  padding-top: @commentFirstCommentPadding;
}


/*--------------------
    Nested Comments
---------------------*/

.ui.comments .comment .comments {
  margin: @commentNestedCommentsMargin;
  padding: @commentNestedCommentsPadding;
}
.ui.comments .comment .comments:before{
  position: absolute;
  top: 0px;
  left: 0px;
}
.ui.comments .comment .comments .comment {
  border: @commentNestedCommentBorder;
  border-top: @commentNestedCommentDivider;
  background: @commentNestedCommentBackground;
}

/*--------------
     Avatar
---------------*/

.ui.comments .comment .avatar {
  display: @commentAvatarDisplay;
  width: @commentAvatarWidth;
  height: @commentAvatarHeight;
  float: @commentAvatarFloat;
  margin: @commentAvatarMargin;
}
.ui.comments .comment img.avatar,
.ui.comments .comment .avatar img {
  display: block;
  margin: 0em auto;
  width: 100%;
  height: 100%;
  border-radius: @commentAvatarBorderRadius;
}

/*--------------
     Content
---------------*/

.ui.comments .comment > .content {
  display: block;
}
/* If there is an avatar move content over */
.ui.comments .comment > .avatar ~ .content {
  margin-left: @commentContentMargin;
}

/*--------------
     Author
---------------*/

.ui.comments .comment .author {
  font-size: @commentAuthorFontSize;
  color: @commentAuthorColor;
  font-weight: @commentAuthorFontWeight;
}
.ui.comments .comment a.author {
  cursor: pointer;
}
.ui.comments .comment a.author:hover {
  color: @commentAuthorHoverColor;
}

/*--------------
     Metadata
---------------*/

.ui.comments .comment .metadata {
  display: @commentMetadataDisplay;
  margin-left: @commentMetadataSpacing;
  color: @commentMetadataColor;
  font-size: @commentMetadataFontSize;
}
.ui.comments .comment .metadata > * {
  display: inline-block;
  margin: 0em @commentMetadataContentSpacing 0em 0em;
}
.ui.comments .comment .metadata > :last-child {
  margin-right: 0em;
}

/*--------------------
     Comment Text
---------------------*/

.ui.comments .comment .text {
  margin: @commentTextMargin;
  font-size: @commentTextFontSize;
  word-wrap: @commentTextWordWrap;
  color: @textColor;
  line-height: @commentTextLineHeight;
}


/*--------------------
     User Actions
---------------------*/

.ui.comments .comment .actions {
  font-size: @commentActionFontSize;
}
.ui.comments .comment .actions a {
  cursor: pointer;
  display: inline-block;
  margin: 0em @commentActionContentDistance 0em 0em;
  color: @commentActionLinkColor;
}
.ui.comments .comment .actions a:last-child {
  margin-right: 0em;
}
.ui.comments .comment .actions a.active,
.ui.comments .comment .actions a:hover {
  color: @commentActionLinkHoverColor;
}

/*--------------------
      Reply Form
---------------------*/

.ui.comments > .reply.form {
  margin-top: @commentReplyDistance;
}
.ui.comments .comment .reply.form {
  width: 100%;
  margin-top: @commentCommentReplyDistance;
}
.ui.comments .reply.form textarea {
  font-size: @commentReplyFontSize;
  height: @commentReplyHeight;
}

/*******************************
            State
*******************************/

.ui.collapsed.comments,
.ui.comments .collapsed.comments,
.ui.comments .collapsed.comment {
  display: none;
}


/*******************************
           Variations
*******************************/

/*--------------------
        Threaded
---------------------*/

.ui.threaded.comments .comment .comments {
  margin: @commentThreadedCommentMargin;
  padding: @commentThreadedCommentPadding;
  box-shadow: @commentThreadedCommentBoxShadow;
}

/*--------------------
        Minimal
---------------------*/

.ui.minimal.comments .comment .actions {
  opacity: 0;
  position: @commentMinimalActionPosition;
  top: @commentMinimalActionTop;
  right: @commentMinimalActionRight;
  left: @commentMinimalActionLeft;
  transition: @commentMinimalTransition;
  transition-delay: @commentMinimalTransitionDelay;
}
.ui.minimal.comments .comment > .content:hover > .actions {
  opacity: 1;
}


/*-------------------
        Sizes
--------------------*/

.ui.mini.comments {
  font-size: @mini;
}
.ui.tiny.comments {
  font-size: @tiny;
}
.ui.small.comments {
  font-size: @small;
}
.ui.comments {
  font-size: @medium;
}
.ui.large.comments {
  font-size: @large;
}
.ui.big.comments {
  font-size: @big;
}
.ui.huge.comments {
  font-size: @huge;
}
.ui.massive.comments {
  font-size: @massive;
}


