Skip to content

Commit

Permalink
Drop selectors for h1 as subheading.
Browse files Browse the repository at this point in the history
  • Loading branch information
smnscp committed Aug 10, 2022
1 parent 9b63c45 commit 48b8e4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 28 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes to n’ize.css

### 0.3.4 (August 10, 2022)

* Drop selectors for `h1` as subheading. This technique has been [removed](https://github.com/whatwg/html/pull/7829/files#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947dL16657-L16660) from [the specs](https://html.spec.whatwg.org/multipage/sections.html#headings-and-outlines).

### 0.3.3 (August 10, 2022)

* Replace `titling` with `heading` in tokens.
Expand Down
34 changes: 7 additions & 27 deletions n’ize.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! n’ize.css v0.3.3 | MIT License | github.com/smnscp/n-ize.css */
/*! n’ize.css v0.3.4 | MIT License | github.com/smnscp/n-ize.css */

/**
* ## Document
Expand Down Expand Up @@ -40,8 +40,6 @@ body {

/**
* Generic typography for headings.
* Include selectors for `h1` as subheading:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#multiple_h1_elements_on_one_page
* Use common block margin to help establishing a baseline grid.
*/

Expand All @@ -55,45 +53,27 @@ h6 {
font-weight: var(--weight-heading);
margin-block: var(--spacing-block-heading);
}
h1,
.h1 {
h1 {
font-size: var(--scale-3);
line-height: var(--line-3);
}
h2,
:is(article, aside, nav, section) h1 {
h2 {
font-size: var(--scale-2);
line-height: var(--line-2);
}
h3,
:is(article, aside, nav, section) :is(article, aside, nav, section) h1 {
h3 {
font-size: var(--scale-1);
line-height: var(--line-1);
}
h4,
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
h1 {
h4 {
font-size: var(--scale-0);
line-height: var(--line-0);
}
h5,
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
h1 {
h5 {
font-size: var(--scale--1);
line-height: var(--line--1);
}
h6,
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
:is(article, aside, nav, section)
h1 {
h6 {
font-size: var(--scale--2);
line-height: var(--line--2);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n-ize.css",
"version": "0.3.3",
"version": "0.3.4",
"description": "An add-on to CSS normalization. With slots for your design system.",
"keywords": [
"css",
Expand Down

0 comments on commit 48b8e4c

Please sign in to comment.