Added margin to figures
Resets the browser defaults.
This commit is contained in:
parent
c4a5da944f
commit
c223ba0a30
7 changed files with 13 additions and 4 deletions
4
dist/mini-default.css
vendored
4
dist/mini-default.css
vendored
|
@ -207,6 +207,10 @@ sub {
|
||||||
bottom: -0.25em;
|
bottom: -0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: var(--universal-margin);
|
||||||
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
color: var(--secondary-fore-color);
|
color: var(--secondary-fore-color);
|
||||||
}
|
}
|
||||||
|
|
2
dist/mini-default.min.css
vendored
2
dist/mini-default.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,8 @@ module.exports = {
|
||||||
<span class="code-line"><span class="highlight-a"></figure></span></span></pre>`],
|
<span class="code-line"><span class="highlight-a"></figure></span></span></pre>`],
|
||||||
notes: [`While not mandatory, it is considered a good practice to always add a <code>alt</code> attribute to image elements on your web apps.`],
|
notes: [`While not mandatory, it is considered a good practice to always add a <code>alt</code> attribute to image elements on your web apps.`],
|
||||||
customization: [
|
customization: [
|
||||||
`You can change the text color of <code><figcaption></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.`
|
`You can change the text color of <code><figcaption></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.`,
|
||||||
|
`Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.`
|
||||||
],
|
],
|
||||||
modifiers: [],
|
modifiers: [],
|
||||||
dos: [],
|
dos: [],
|
||||||
|
|
|
@ -162,3 +162,4 @@
|
||||||
- Documented code and quotations.
|
- Documented code and quotations.
|
||||||
- Documented lists.
|
- Documented lists.
|
||||||
- Documented images.
|
- Documented images.
|
||||||
|
- Added `margin` to `figcaption` elements to reset the browser defaults.
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
<span class="code-line"><span class="highlight-a"></figure></span></span></pre></div>
|
<span class="code-line"><span class="highlight-a"></figure></span></span></pre></div>
|
||||||
|
|
||||||
<div class="section double-padded"><h3>Notes</h3><ul><li>While not mandatory, it is considered a good practice to always add a <code>alt</code> attribute to image elements on your web apps.</li></ul></div>
|
<div class="section double-padded"><h3>Notes</h3><ul><li>While not mandatory, it is considered a good practice to always add a <code>alt</code> attribute to image elements on your web apps.</li></ul></div>
|
||||||
<div class="section double-padded"><h3>Customization</h3><ul><li>You can change the text color of <code><figcaption></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.</li></ul></div>
|
<div class="section double-padded"><h3>Customization</h3><ul><li>You can change the text color of <code><figcaption></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li></ul></div>
|
||||||
</div><br/><div id="lists" class="card fluid">
|
</div><br/><div id="lists" class="card fluid">
|
||||||
<h2 class="section double-padded">Lists</h2>
|
<h2 class="section double-padded">Lists</h2>
|
||||||
<div class="section"><p>List elements, both unordered and ordered, are minimally styled to match with the rest of the framework's aesthetics. Their margins and padding are reset to properly align with the rest of the common HTML5 elements, providing a stable foundation for all of your web app's lists.</p></div>
|
<div class="section"><p>List elements, both unordered and ordered, are minimally styled to match with the rest of the framework's aesthetics. Their margins and padding are reset to properly align with the rest of the common HTML5 elements, providing a stable foundation for all of your web app's lists.</p></div>
|
||||||
|
|
2
docs/v3/style.min.css
vendored
2
docs/v3/style.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -283,6 +283,9 @@ sub {
|
||||||
bottom: $sub-bottom;
|
bottom: $sub-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: var(#{$universal-margin-var});
|
||||||
|
}
|
||||||
figcaption {
|
figcaption {
|
||||||
color: var(#{$secondary-fore-color-var});
|
color: var(#{$secondary-fore-color-var});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue