Skip to content

Commit

Permalink
updete: css カウンターがうまく動かない
Browse files Browse the repository at this point in the history
  • Loading branch information
yas-ako committed Jan 14, 2024
1 parent be60756 commit 0653ee9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion css/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,15 @@ h1 {
padding-left: 21mm;
margin-top: -1mm;

counter-increment: chapter;
string-set: chapter content(), chapter-number countent(before);
color: white;
&::before {
font-size: 7.3mm;
position: absolute;
left: -6mm;
top: 0.25mm;
content: "" counter(chapter) "";
counter-increment: chapter;
}
}

Expand Down
3 changes: 2 additions & 1 deletion css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0653ee9

Please # to comment.