mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-01-17 21:08:13 +01:00
Documented media object, resolves #22
This commit is contained in:
parent
cfc5907522
commit
08d07f0a98
@ -521,24 +521,69 @@
|
||||
<div class="section">
|
||||
<h3>Notes</h3>
|
||||
<ul>
|
||||
<li></li>
|
||||
<li>The media object is not a different component, but rather a popular pattern that can be implemented using the standard grid system classes.</li>
|
||||
<li>You can use many different elements for your media object. For example, you can make the right side of the media object contain a form or an input field.</li>
|
||||
</ul><hr>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<pre>...</pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> Responsive - screen-specific...</p>
|
||||
<pre><div class="row">
|
||||
<div class="col-sm-1 col-md-2 col-lg-3">
|
||||
<img src="...">
|
||||
</div>
|
||||
<div class="col-sm-11 col-md-10 col-lg-9">
|
||||
<h2>Media object heading</h2>
|
||||
<p>Media object content...</p>
|
||||
</div>
|
||||
</div></pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> You can make your media object responsive, by adding screen-specific layout classes to its columns.</p>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<pre>...</pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> Nesting and the use of rows...</p>
|
||||
<pre><div class="row">
|
||||
<div class="col-sm-1 col-sm-last">
|
||||
<img src="...">
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<h2>Media object heading</h2>
|
||||
<p>Media object content...</p>
|
||||
</div>
|
||||
</div></pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> You can align the media object's content to the left of the image (instead of the other way round), using the <code>.col-<span class="fore-primary">SCR_SZ</span>-normal</code> class, replacing <code><span class="fore-primary">SCR_SZ</span></code> with the desired screen size.</p>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<pre>...</pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> Align right using last...</p>
|
||||
<pre><div class="row">
|
||||
<div class="col-sm-2">
|
||||
<img src="...">
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<div class="row">
|
||||
<div class="col-sm">
|
||||
<h2>Parent media object</h2>
|
||||
<p>Parent media object content...</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<img src="...">
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<h2>Child media object</h2>
|
||||
<p>Child media object content...</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
<p class="do"><mark class="tertiary">Do:</mark> Media objects can be easily nested. You can use <code>.row</code> elements in the content column of the media object to make everything align perfectly.</p>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6">
|
||||
<pre>...</pre>
|
||||
<p class="dont"><mark class="secondary">Don't:</mark> Use of image or content as its own column...</p>
|
||||
<pre><div class="row">
|
||||
<img src="..." class="col-sm-1">
|
||||
<div class="col-sm">
|
||||
<h2>Media object heading</h2>
|
||||
<p>Media object content...</p>
|
||||
</div>
|
||||
</div></pre>
|
||||
<p class="dont"><mark class="secondary">Don't:</mark> Do not apply a column class directly to the media element (e.g.<code><img></code>) or the content of the media object, as this can cause problems with certain elements. Wrap your media objects columns in <code><div></code> elements and apply the grid classes to them, instead.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -834,3 +834,4 @@
|
||||
- Minor updates to `quick_reference.html` to get size a bit lower.
|
||||
- Updated existing documentation for `grid` module.
|
||||
- Setup the `media object` section of `grid.html`, just the basic demo for now.
|
||||
- Documented `media object`. Resolves #22.
|
||||
|
Loading…
x
Reference in New Issue
Block a user