Comment

Create comments, for example about articles.

Usage

The Comment component consists of a comment header, including an avatar, a title and meta data, and a comment body.

Class Description
.f-comment Add this class to define the Comment component.
.f-comment-header Add this class to create a comment header.
.f-comment-avatar Add this class to an <img> element to create an avatar for the comment author.
.f-comment-title Add this class to a heading to create a comment title.
.f-comment-meta Add this class to a paragraph to create meta data about your comment.
.f-comment-body Add this class to a <div> element to create comment body.

Example

Author

12 days ago | Profile | #

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Markup

<article class="f-comment">
	<header class="f-comment-header">
		<img class="f-comment-avatar" src="" alt="">
		<h4 class="f-comment-title">...</h4>
		<div class="f-comment-meta">...</div>
	</header>
	<div class="f-comment-body">...</div>
</article>

Comment lists

Add the .f-comment-list class to a <ul> element to create a list of comments. You can nest any number of <ul> elements inside a comment list.

Example

  • Author

    12 days ago | Profile | #

    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

    • Author

      12 days ago | Profile | #

      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.

Markup

<ul class="f-comment-list">
	<li>
		<article class="f-comment">...</article>
		<ul>
			<li><article class="f-comment">...</article></li>
		</ul>
	</li>
	<li><article class="f-comment">...</article></li>
</ul>

Color modifier

To style a comment differently, for example to highlight it as the admin's comment, just add the .f-comment-primary class.

Example

Author

12 days ago | Profile | #

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Markup

<article class="f-comment f-comment-primary">...</article>

You can also use a subnav from the Subnav component to display the comment's meta data.

Example

Markup

<ul class="f-comment-meta f-subnav f-subnav-line">
	<li>...</li>
</ul>