Skip to content

Commit a883970

Browse files
authored
Add Specification Numbering and build misc. (json-api#1574)
Citing the specification can be cumbersome. Following RFC numbering formats, the specification is numbered following ISO 2145 at each HEADER element, e.g., `h1`, `h2`, &tc. The numbers are CSS "generated" content and provide support for the additive focus of the specification. The paragraph glyph is repositioned absolutely, relative to the header. The `_config.yml` is updated to support building. `bundle` otherwise failed on Ruby 2.7.x. Updated the exclusions file for IntelliJ.
1 parent f7dadf5 commit a883970

File tree

5 files changed

+57
-15
lines changed

5 files changed

+57
-15
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Gemfile.lock
1212
# Ignore the build directory
1313
/public
1414

15+
# Ignore IntelliJ's config
16+
*.iml
17+
/.idea
18+
19+
# Ignore Ruby vendor
20+
/vendor
21+
1522
# Ignore Sass' cache
1623
/.sass-cache
1724

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exclude:
4444
- .gitignore
4545
- ./public
4646
- ./stylesheets/*.scss
47+
- vendor
4748

4849
port: 9876
4950

stylesheets/all.css

Lines changed: 24 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylesheets/all.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylesheets/all.sass

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ body
5555
font-size: 15px
5656
line-height: 1.6
5757
-webkit-font-smoothing: antialiased
58+
counter-reset: h2counter
5859

5960
/** Typography */
6061

@@ -74,34 +75,54 @@ h1, h2, h3, h4, h5
7475
&:hover .headerlink, .headerlink:hover
7576
font-size: inherit
7677
&::after
77-
margin-left: -.8em
78-
width: .8em
7978
position: absolute
79+
left: 0
80+
width: 1em
8081
content: ""
8182

8283
h1
8384
font-weight: 500
8485
color: $color-accent
86+
counter-reset: h2counter
8587

8688
h2
8789
margin: $h2-margin-top 0 15px 0
8890
color: $color-main
8991
font-size: 22px
9092
line-height: 1.3
93+
counter-reset: h3counter
94+
95+
&::before
96+
content: counter(h2counter) "\0000a0\0000a0"
97+
counter-increment: h2counter
9198

9299
h3
93100
margin: 30px 0 15px 0
94101
font-size: 18px
102+
counter-reset: h4counter
103+
104+
&::before
105+
content: counter(h2counter) "." counter(h3counter) "\0000a0\0000a0"
106+
counter-increment: h3counter
95107

96108
h4
97109
margin: 20px 0 10px 0
98110
font-size: 16px
111+
counter-reset: h5counter
112+
113+
&::before
114+
content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "\0000a0\0000a0"
115+
counter-increment: h4counter
99116

100117
h5
101118
margin: 20px 0 10px 0
102119
font-weight: 500
103120
font-size: inherit
104121

122+
&::before
123+
content: counter(h2counter) "." counter(h3counter) "." counter(h4counter) "." counter(h5counter) "\0000a0\0000a0"
124+
counter-increment: h5counter
125+
105126
code
106127
font-weight: 600
107128

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy