You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

129 lines
2.8 KiB

/*
* # Semantic Comment View
* http://github.com/quirkyinc/semantic
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
* Released: April 17 2013
*/
/*******************************
Standard
*******************************/
/*--------------
Comments
---------------*/
.ui.comments a {
cursor: pointer;
}
/*--------------
Comment
---------------*/
.ui.comments .comment {
position: relative;
margin-top: 0.75em;
padding-top: 0.75em;
width: 100%;
}
.ui.comments .comment:first-child {
margin-top: 0em;
padding-top: 0em;
}
/*--------------------
Avatar (Optional)
---------------------*/
.ui.comments .comment .avatar {
display: block;
float: left;
}
.ui.comments .comment .avatar,
.ui.comments .comment .avatar img {
width: 3em;
}
.ui.comments .comment .avatar img {
height: 3em;
border-radius: 500px;
}
/*--------------
Content
---------------*/
.ui.comments .comment > .content,
.ui.comments .comment > .avatar {
display: block;
}
.ui.comments .comment .avatar ~ .content {
padding: 0em 1em;
}
/* If there is an avatar move content over */
.ui.comments .comment > .avatar ~ .content {
margin-left: 3em;
}
.ui.comments .comment .metadata {
display: inline-block;
margin-left: 0.3em;
color: rgba(0, 0, 0, 0.4);
}
.ui.comments .comment .metadata > * {
display: inline-block;
margin: 0em 0.3em 0em 0em;
}
/*--------------------
Comment Text
---------------------*/
.ui.comments .comment .text {
margin: 0em 0em 0.5em;
}
/*--------------------
User Actions
---------------------*/
.ui.comments .comment .actions {
font-size: 0.9em;
}
.ui.comments .comment .actions a {
display: inline-block;
margin: 0em 0.3em 0em 0em;
color: rgba(0, 0, 0, 0.3);
}
.ui.comments .comment .actions a:hover {
color: rgba(0, 0, 0, 0.6);
}
/*--------------------
Nested Comments
---------------------*/
.ui.comments .comment .comments {
margin-top: 1em;
padding-top: 1em;
}
.ui.comments .comment .comments:before {
position: absolute;
top: 0px;
left: 0px;
}
/* One Deep */
.ui.comments > .comment .comments {
margin-left: 2em;
}
/* Two Deep */
.ui.comments > .comment > .comments > .comment > .comments {
margin-left: 1.75em;
}
/* Three Deep */
.ui.comments > .comment > .comments > .comment > .comments > .comment > .comments {
margin-left: 1.5em;
}
/* Four Deep or more */
.ui.comments > .comment > .comments > .comment > .comments > .comment > .comments > .comment .comments {
margin-left: 0.5em;
}
/*******************************
Variations
*******************************/
.ui.threaded.comments .comment .comments {
margin-left: 1.5em !important;
padding-left: 1.5em !important;
-webkit-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
-moz-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
}