mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 09:56:14 -04:00
Update .headings SCSS code and docs
This commit is contained in:
parent
56c310fe99
commit
568f3c646d
15 changed files with 33 additions and 50 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
16
css/pico.css
16
css/pico.css
|
@ -798,25 +798,15 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup {
|
hgroup,
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
|
||||||
}
|
|
||||||
hgroup > * {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
hgroup > *:last-child {
|
|
||||||
--color: var(--muted-color);
|
|
||||||
--font-weight: unset;
|
|
||||||
font-size: 1rem;
|
|
||||||
font-family: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headings {
|
.headings {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
hgroup > *,
|
||||||
.headings > * {
|
.headings > * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
hgroup > *:last-child,
|
||||||
.headings > *:last-child {
|
.headings > *:last-child {
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -727,25 +727,15 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup {
|
hgroup,
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
|
||||||
}
|
|
||||||
hgroup > * {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
hgroup > *:last-child {
|
|
||||||
--color: var(--muted-color);
|
|
||||||
--font-weight: unset;
|
|
||||||
font-size: 1rem;
|
|
||||||
font-family: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headings {
|
.headings {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
hgroup > *,
|
||||||
.headings > * {
|
.headings > * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
hgroup > *:last-child,
|
||||||
.headings > *:last-child {
|
.headings > *:last-child {
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -120,7 +120,7 @@
|
||||||
</article>
|
</article>
|
||||||
<p>
|
<p>
|
||||||
Inside a <code><<b>hgroup</b>></code> or a
|
Inside a <code><<b>hgroup</b>></code> or a
|
||||||
<code><<b>div class="headings"</b>></code> all
|
<code><<b>div</b> <i>class</i>=<u>"headings"</u>></code> all
|
||||||
<code><i>margin-bottom</i></code> are collapsed and the
|
<code><i>margin-bottom</i></code> are collapsed and the
|
||||||
<code>:last-child</code> is muted.
|
<code>:last-child</code> is muted.
|
||||||
</p>
|
</p>
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
</<b>hgroup</b>></code></pre>
|
</<b>hgroup</b>></code></pre>
|
||||||
|
|
||||||
<pre><code><<b>div class="headings"</b>>
|
<pre><code><<b>div</b> <i>class</i>=<u>"headings</u>">
|
||||||
<<b>h2</b>>Heading 2</<b>h2</b>>
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
</<b>div</b>></code></pre>
|
</<b>div</b>></code></pre>
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
<<b>h3</b>>Heading 3</<b>h3</b>>
|
<<b>h3</b>>Heading 3</<b>h3</b>>
|
||||||
<<b>h4</b>>Heading 4</<b>h4</b>>
|
<<b>h4</b>>Heading 4</<b>h4</b>>
|
||||||
<<b>h5</b>>Heading 5</<b>h5</b>>
|
<<b>h5</b>>Heading 5</<b>h5</b>>
|
||||||
<<b>h6</b>>Heading 6</<b>h6</b>></code></pre></footer></article><p>Inside a <code><<b>hgroup</b>></code> or a <code><<b>div class="headings"</b>></code> all <code><i>margin-bottom</i></code> are collapsed and the <code>:last-child</code> is muted.</p><article aria-label="Hgroup example"><div class="headings"><h2>Heading 2</h2><h3>Subtitle for heading 2</h3></div><footer class="code"><pre><code><<b>hgroup</b>>
|
<<b>h6</b>>Heading 6</<b>h6</b>></code></pre></footer></article><p>Inside a <code><<b>hgroup</b>></code> or a <code><<b>div</b> <i>class</i>=<u>"headings"</u>></code> all <code><i>margin-bottom</i></code> are collapsed and the <code>:last-child</code> is muted.</p><article aria-label="Hgroup example"><div class="headings"><h2>Heading 2</h2><h3>Subtitle for heading 2</h3></div><footer class="code"><pre><code><<b>hgroup</b>>
|
||||||
<<b>h2</b>>Heading 2</<b>h2</b>>
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
</<b>hgroup</b>></code></pre><pre><code><<b>div class="headings"</b>>
|
</<b>hgroup</b>></code></pre><pre><code><<b>div</b> <i>class</i>=<u>"headings</u>">
|
||||||
<<b>h2</b>>Heading 2</<b>h2</b>>
|
<<b>h2</b>>Heading 2</<b>h2</b>>
|
||||||
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
<<b>h3</b>>Subtitle for heading 2</<b>h3</b>>
|
||||||
</<b>div</b>></code></pre></footer></article><p>Inline text elements:</p><article aria-label="Inline text examples"><div class="grid"><div><p><abbr title="Abbreviation">Abbr.</abbr> <code>abbr</code></p><p><strong>Bold</strong> <code>strong</code> <code>b</code></p><p><em>Italic</em> <code>i</code> <code>em</code> <code>cite</code></p><p><del>Deleted</del> <code>del</code></p><p><ins>Inserted</ins> <code>ins</code></p><p><kbd>Ctrl + S</kbd> <code>kbd</code></p></div><div><p><mark>Highlighted</mark> <code>mark</code></p><p><s>Strikethrough</s> <code>s</code></p><p><small>Small </small><code>small</code></p><p>Text <sub>Sub</sub> <code>sub</code></p><p>Text <sup>Sup</sup> <code>sup</code></p><p><u>Underline</u> <code>u</code></p></div></div></article><p>Links come with <code>.secondary</code> and <code>.contrast</code> styles.</p><article aria-label="Links examples"><a href="#" onclick="event.preventDefault()">Primary</a><br/><a href="#" onclick="event.preventDefault()" class="secondary">Secondary</a><br/><a href="#" onclick="event.preventDefault()" class="contrast">Contrast</a><br/><footer class="code"><pre><code><<b>a</b> <i>href</i>=<u>"#"</u>>Primary</<b>a</b>>
|
</<b>div</b>></code></pre></footer></article><p>Inline text elements:</p><article aria-label="Inline text examples"><div class="grid"><div><p><abbr title="Abbreviation">Abbr.</abbr> <code>abbr</code></p><p><strong>Bold</strong> <code>strong</code> <code>b</code></p><p><em>Italic</em> <code>i</code> <code>em</code> <code>cite</code></p><p><del>Deleted</del> <code>del</code></p><p><ins>Inserted</ins> <code>ins</code></p><p><kbd>Ctrl + S</kbd> <code>kbd</code></p></div><div><p><mark>Highlighted</mark> <code>mark</code></p><p><s>Strikethrough</s> <code>s</code></p><p><small>Small </small><code>small</code></p><p>Text <sub>Sub</sub> <code>sub</code></p><p>Text <sup>Sup</sup> <code>sup</code></p><p><u>Underline</u> <code>u</code></p></div></div></article><p>Links come with <code>.secondary</code> and <code>.contrast</code> styles.</p><article aria-label="Links examples"><a href="#" onclick="event.preventDefault()">Primary</a><br/><a href="#" onclick="event.preventDefault()" class="secondary">Secondary</a><br/><a href="#" onclick="event.preventDefault()" class="contrast">Contrast</a><br/><footer class="code"><pre><code><<b>a</b> <i>href</i>=<u>"#"</u>>Primary</<b>a</b>>
|
||||||
|
|
|
@ -181,22 +181,25 @@ ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Heading group
|
// Heading group
|
||||||
hgroup {
|
@if $enable-classes == false {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
hgroup {
|
||||||
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> *:last-child {
|
> *:last-child {
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-family: unset;
|
font-family: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@if $enable-classes {
|
@if $enable-classes {
|
||||||
|
hgroup,
|
||||||
.headings {
|
.headings {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue