mirror of
https://github.com/picocss/pico.git
synced 2025-04-23 18:06:14 -04:00
fix: make .headings an alternative only when classes are enabled
This commit is contained in:
parent
ed120df03b
commit
56c310fe99
17 changed files with 62 additions and 32 deletions
|
@ -752,16 +752,13 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup,
|
hgroup {
|
||||||
.headings {
|
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
hgroup > *,
|
hgroup > * {
|
||||||
.headings > * {
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
hgroup > *:last-child,
|
hgroup > *:last-child {
|
||||||
.headings > *:last-child {
|
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.classless.min.css
vendored
2
css/pico.classless.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
16
css/pico.css
16
css/pico.css
|
@ -798,15 +798,25 @@ 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
|
@ -722,16 +722,13 @@ ul ~ h6 {
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
hgroup,
|
hgroup {
|
||||||
.headings {
|
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
hgroup > *,
|
hgroup > * {
|
||||||
.headings > * {
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
hgroup > *:last-child,
|
hgroup > *:last-child {
|
||||||
.headings > *:last-child {
|
|
||||||
--color: var(--muted-color);
|
--color: var(--muted-color);
|
||||||
--font-weight: unset;
|
--font-weight: unset;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.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
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,15 +727,25 @@ 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
|
@ -181,8 +181,7 @@ ul {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Heading group
|
// Heading group
|
||||||
hgroup,
|
hgroup {
|
||||||
.headings {
|
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
|
@ -197,6 +196,23 @@ hgroup,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@if $enable-classes {
|
||||||
|
.headings {
|
||||||
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
||||||
|
> * {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> *:last-child {
|
||||||
|
--color: var(--muted-color);
|
||||||
|
--font-weight: unset;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Paragraphs
|
// Paragraphs
|
||||||
p {
|
p {
|
||||||
margin-bottom: var(--typography-spacing-vertical);
|
margin-bottom: var(--typography-spacing-vertical);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue