padding: 0.9375rem 0.9375rem 0.9375rem 0.75rem;
}
+/* Badge */
+.m-block.m-badge::after {
+ content: ' ';
+ display: block;
+ clear: both;
+}
+.m-block.m-badge h3 {
+ margin-left: 5rem;
+}
+.m-block.m-badge p {
+ margin-left: 5rem;
+ text-indent: 0;
+}
+.m-block.m-badge img {
+ width: 4rem;
+ height: 4rem;
+ border-radius: 2rem;
+ float: left;
+}
+
/* Button */
a.m-button {
display: inline-block;
</div>
</div>
+Badge
+=====
+
+Badge with lots of text and less text:
+
+.. raw:: html
+
+ <div class="m-block m-badge m-primary">
+ <img src="{filename}/static/mosra.jpg" alt="The Author" />
+ <h3>About the author</h3>
+ <p><a href="#">The Author</a> is lorem ipsum dolor sit amet, consectetur
+ adipiscing elit. Aenean id elit posuere, consectetur magna congue,
+ sagittis est. Pellentesque est neque, aliquet nec consectetur in, mattis
+ ac diam. Aliquam placerat justo ut purus interdum, ac placerat lacus
+ consequat. Mauris id suscipit mauris, in scelerisque lectus.</p>
+ </div>
+
+ <div class="m-block m-badge m-dim">
+ <img src="{filename}/static/mosra.jpg" alt="The Author" />
+ <h3>About the author</h3>
+ <p><a href="#">The Author</a> is lorem ipsum dolor sit amet, consectetur
+ adipiscing elit.</p>
+ </div>
+
Notes, frame
============
</div>
</div>
+`Badges`_
+=========
+
+Badges are blocks together with an avatar, containing for example info about
+the author of given article. Simply add :css:`.m-badge` to your colored block
+element and put an :html:`<img>` element with the avatar as the first child.
+
+.. code-figure::
+
+ .. code:: html
+
+ <div class="m-block m-badge m-success">
+ <img src="author.jpg" alt="The Author" />
+ <h3>About the author</h3>
+ <p><a href="#">The Author</a> is ...</p>
+ </div>
+
+ .. raw:: html
+
+ <div class="m-block m-badge m-success">
+ <img src="{filename}/static/mosra.jpg" alt="The Author" />
+ <h3>About the author</h3>
+ <p><a href="http://blog.mosra.cz">The Author</a> is not really
+ smiling at you from this avatar. Sorry about that. He knows that and
+ he promises to improve. Stalk him
+ <a href="https://twitter.com/czmosra">on Twitter</a> if you want to
+ get notified when he gets a better avatar.</p>
+ </div>
+
`Notes, frame`_
===============