1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 14:35:32 +02:00

added style for h2, h3 and h4

This commit is contained in:
p4bl0 2010-07-24 00:42:04 +02:00
parent 58ebee0543
commit 4e3e984518

View file

@ -56,6 +56,8 @@ article {
text-align: left;
counter-reset: code;
counter-reset: figure;
counter-reset: section;
counter-reset: subsection;
}
article header {
display: block;
@ -66,7 +68,7 @@ article header {
}
article header h1 {
margin: 0;
padding: 0 0 0.2em 0;
padding: 0 0 0.1em 0;
font-size: 1.5em;
font-weight: bold;
}
@ -85,8 +87,35 @@ article > div {
line-height: 1.5em;
font-size: 1.1em;
}
article > div a {
color: #08f;
text-decoration: none;
}
article > div a:hover { text-decoration: underline; }
article > div a:visited { color: #048; }
article > div h2 {
margin: 1em 0 0.5em 0;
padding: 0;
font-size: 1.4em;
font-weight: normal;
counter-increment: section;
}
article > div h2:before {
display: inline;
content: counter(section) ". ";
counter-reset: subsection;
}
article > div h3 {
margin: 1em 0 0.5em 0;
padding: 0;
font-size: 1.2em;
font-weight: bold;
}
article > div h3:before {
display: inline;
content: counter(section) "." counter(subsection) ". ";
counter-increment: subsection;
}
article > div p:first-child:first-letter {
font-size: 1.5em;
font-weight: bold;
@ -177,10 +206,6 @@ article > div pre .type {
article > div pre .variable-name {
color: #0b0;
}
article > div a {
color: #08f;
text-decoration: none;
}
article > div figure {
display: block;
margin: 1em 0;