Skip to content

Commit

Permalink
Meta: use <p> for subheading instead of <h2>
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and pmeenan committed Dec 2, 2022
1 parent 197f524 commit ffe9834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions dev/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ h1 {
font-size: 300%;
}

h2:not(#dev-edition-h2):not(#about-dev-edition) {
h2:not(#about-dev-edition) {
font-size: 160%;
text-transform: uppercase;
letter-spacing: 0.2em;
Expand Down Expand Up @@ -349,7 +349,7 @@ header#head h1 a:hover {
text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

header#head h2 {
header#head hgroup p {
font-size: 12px;
margin-bottom: 0.5em;
font-family: "Droid Serif", Georgia, serif;
Expand Down Expand Up @@ -513,7 +513,7 @@ html:not(.index) ol.toc ol {
height: auto;
}

h2:not(#dev-edition-h2) {
h2 {
font-size: 18px;
}

Expand Down
14 changes: 4 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,13 @@
<a href="https://whatwg.org/" class="logo"><img crossorigin width="100" height="100" alt="WHATWG" src="https://resources.whatwg.org/logo.svg"></a>
<hgroup w-nodev>
<h1 class="allcaps">HTML</h1>
<h2 w-nosnap w-noreview id="living-standard" class="no-num no-toc">Living Standard &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
<h2 w-nohtml w-noreview id="living-standard" class="no-num no-toc">Commit Snapshot &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
<h2 w-nohtml w-nosnap id="living-standard" class="no-num no-toc">Review Draft &mdash; Published <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
<!-- FIXME: once the spec is changed to allow p elements in hgroup to pass validation,
the h2s above needs to be changed to p elements, and the appropriate style sheets updated.
-->
<p w-nosnap w-noreview id="living-standard">Living Standard &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
<p w-nohtml w-noreview id="living-standard">Commit Snapshot &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
<p w-nohtml w-nosnap id="living-standard">Review Draft &mdash; Published <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
</hgroup>
<hgroup w-dev>
<h1><a href="/dev/" rel=home>HTML: The Living Standard</a></h1>
<h2 class="no-num no-toc" id="dev-edition-h2">Edition for Web Developers &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></h2>
<!-- FIXME: once the spec is changed to allow p elements in hgroup to pass validation,
the h2 above needs to be changed to p elements, and the appropriate style sheets updated.
-->
<p id="dev-edition-h2">Edition for Web Developers &mdash; Last Updated <span class="pubdate">[DATE: 01 Jan 1901]</span></p>
</hgroup>
<nav w-nosplit w-nodev w-noreview>
<!-- Note: be sure to keep an even number of <a>s, for small screens where they appear in two columns. -->
Expand Down

0 comments on commit ffe9834

Please sign in to comment.