Minor fixes in grid.html
This commit is contained in:
parent
c7d9193309
commit
25b0fd76c0
2 changed files with 37 additions and 38 deletions
|
@ -337,7 +337,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm col-lg-10 col-lg-offset-1">
|
<div class="col-sm col-lg-10 col-lg-offset-1">
|
||||||
<div class="card fluid">
|
<div class="card fluid">
|
||||||
|
@ -369,24 +368,24 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
<pre><div class="row cols-sm-12 cols-md-6">
|
<pre><div class="row cols-sm-12 cols-md-6">
|
||||||
<div>
|
<div>
|
||||||
<p>col-sm-12, col-md-6</p>
|
<p>col-sm-12, col-md-6</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>col-sm-12, col-md-6</p>
|
<p>col-sm-12, col-md-6</p>
|
||||||
</div>
|
</div>
|
||||||
</div></pre>
|
</div></pre>
|
||||||
<p class="do"><mark class="tertiary">Do:</mark> You can add multiple predefined layout classes for different screen sizes, allowing you to build responsive predefined layouts.</p>
|
<p class="do"><mark class="tertiary">Do:</mark> You can add multiple predefined layout classes for different screen sizes, allowing you to build responsive predefined layouts.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
<pre><div class="row cols-sm-6">
|
<pre><div class="row cols-sm-6">
|
||||||
<div class="row cols-sm-7">
|
<div class="row cols-sm-7">
|
||||||
<p>col-sm-6</p>
|
<p>col-sm-6</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="row cols-sm-5">
|
<div class="row cols-sm-5">
|
||||||
<p>col-sm-6</p>
|
<p>col-sm-6</p>
|
||||||
</div>
|
</div>
|
||||||
</div></pre>
|
</div></pre>
|
||||||
<p class="dont"><mark class="secondary">Don't:</mark> Avoid using the normal column classes in conjunction with predefined layouts, as they will most likely not apply and can sometimes cause unexpected behavior.</p>
|
<p class="dont"><mark class="secondary">Don't:</mark> Avoid using the normal column classes in conjunction with predefined layouts, as they will most likely not apply and can sometimes cause unexpected behavior.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -394,7 +393,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm col-lg-10 col-lg-offset-1">
|
<div class="col-sm col-lg-10 col-lg-offset-1">
|
||||||
<div class="card fluid">
|
<div class="card fluid">
|
||||||
|
@ -584,26 +582,26 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
<pre><div class="row">
|
<pre><div class="row">
|
||||||
<div class="col-sm-1 col-md-2 col-lg-3">
|
<div class="col-sm-1 col-md-2 col-lg-3">
|
||||||
<img src="...">
|
<img src="...">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-11 col-md-10 col-lg-9">
|
<div class="col-sm-11 col-md-10 col-lg-9">
|
||||||
<h2>Media object heading</h2>
|
<h2>Media object heading</h2>
|
||||||
<p>Media object content...</p>
|
<p>Media object content...</p>
|
||||||
</div>
|
</div>
|
||||||
</div></pre>
|
</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>
|
<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>
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
<pre><div class="row">
|
<pre><div class="row">
|
||||||
<div class="col-sm-1 col-sm-last">
|
<div class="col-sm-1 col-sm-last">
|
||||||
<img src="...">
|
<img src="...">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<h2>Media object heading</h2>
|
<h2>Media object heading</h2>
|
||||||
<p>Media object content...</p>
|
<p>Media object content...</p>
|
||||||
</div>
|
</div>
|
||||||
</div></pre>
|
</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>
|
<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>
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
|
@ -634,12 +632,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 col-md-6">
|
<div class="col-sm-12 col-md-6">
|
||||||
<pre><div class="row">
|
<pre><div class="row">
|
||||||
<img src="..." class="col-sm-1">
|
<img src="..." class="col-sm-1">
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<h2>Media object heading</h2>
|
<h2>Media object heading</h2>
|
||||||
<p>Media object content...</p>
|
<p>Media object content...</p>
|
||||||
</div>
|
</div>
|
||||||
</div></pre>
|
</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>
|
<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>
|
</div>
|
||||||
|
|
|
@ -841,3 +841,4 @@
|
||||||
- Updated `#header-logo` styling in order to make the framework's logo display properly in Chrome.
|
- Updated `#header-logo` styling in order to make the framework's logo display properly in Chrome.
|
||||||
- Updated `header`s `logo` element styling to make sure that it does not *jump* in Chrome.
|
- Updated `header`s `logo` element styling to make sure that it does not *jump* in Chrome.
|
||||||
- Documented predefined layouts in `grid.html`.
|
- Documented predefined layouts in `grid.html`.
|
||||||
|
- Fixed the `pre` segments in `grid.html`.
|
||||||
|
|
Loading…
Reference in a new issue