Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLBuilder: markup section number by span #415

Merged
merged 1 commit into from
Apr 2, 2015

Conversation

akinomurasame
Copy link
Contributor

#414 の別回答になります。

章番号に限らず、セクション番号すべてを以下のようにspanでマークアップします。
使用するclass名は、W3CのSpecなどでも使われている、secnoを使用しました。

<h1 id="test"><a id="h1"></a><span class="secno">第1章 </span>this is test.</h1>
<h2 id="test"><a id="h1-1"></a><span class="secno">1.1 </span>this is test.</h2>

このようなCSSによって、h1 の装飾を図右のように変更できます。

h1 .secno {
  display: block;
  font-size: .7em;
}

2015-03-29 01 11 26

kdmsnr added a commit that referenced this pull request Apr 2, 2015
HTMLBuilder: markup section number by span
@kdmsnr kdmsnr merged commit a8cbcbb into kmuto:master Apr 2, 2015
@akinomurasame akinomurasame deleted the markup-secno branch April 2, 2015 05:25
@akinomurasame
Copy link
Contributor Author

👍

@akinomurasame akinomurasame restored the markup-secno branch April 2, 2015 05:30
@kdmsnr kdmsnr added this to the 1.6.0 milestone Apr 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants