1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-06-28 12:35:27 +02:00

reformatted default css code

This commit is contained in:
p4bl0 2010-07-27 10:55:17 +02:00
parent 4deb81aa6a
commit 4dd006c377

View file

@ -54,10 +54,7 @@ header q {
article { article {
display: block; display: block;
text-align: left; text-align: left;
counter-reset: code; counter-reset: code figure example section subsection;
counter-reset: figure;
counter-reset: section;
counter-reset: subsection;
} }
article header { article header {
display: block; display: block;
@ -110,11 +107,11 @@ article > div h3 {
padding: 0; padding: 0;
font-size: 1.2em; font-size: 1.2em;
font-weight: bold; font-weight: bold;
counter-increment: subsection;
} }
article > div h3:before { article > div h3:before {
display: inline; display: inline;
content: counter(section) "." counter(subsection) ". "; content: counter(section) "." counter(subsection) ". ";
counter-increment: subsection;
} }
article > div p:first-child:first-letter { article > div p:first-child:first-letter {
font-size: 1.5em; font-size: 1.5em;
@ -147,6 +144,11 @@ article > div p.note:before {
font-weight: bold; font-weight: bold;
font-variant: small-caps; font-variant: small-caps;
} }
article > div p.example { counter-increment: example; }
article > div p.example:before {
content: "example " counter(example) ":";
font-variant: small-caps;
}
article > div ul { article > div ul {
margin: 1em 0; margin: 1em 0;
padding: 0 0 0 3em; padding: 0 0 0 3em;
@ -177,9 +179,7 @@ article > div blockquote {
background: #f2f2f2; background: #f2f2f2;
border-left: 0.1em solid #ccc; border-left: 0.1em solid #ccc;
} }
article > div blockquote p { article > div blockquote p { margin: 0.5em 0; }
margin: 0.5em 0;
}
article > div code { article > div code {
color: #eee; color: #eee;
background-color: #666; background-color: #666;
@ -202,33 +202,15 @@ article > div pre {
background-color: #333; background-color: #333;
max-height: 420px; max-height: 420px;
} }
article > div pre .comment { article > div pre .comment { color: #888; }
color: #888; article > div pre .comment-delimiter { color: #888; }
} article > div pre .constant { color: #d0d; }
article > div pre .comment-delimiter { article > div pre .function-name { color: #27d; }
color: #888; article > div pre .keyword { color: #dd0; }
} article > div pre .preprocessor { color: #9c3; }
article > div pre .constant { article > div pre .string { color: #3af; }
color: #d0d; article > div pre .type { color: #fa0; }
} article > div pre .variable-name { color: #0b0; }
article > div pre .function-name {
color: #27d;
}
article > div pre .keyword {
color: #dd0;
}
article > div pre .preprocessor {
color: #9c3;
}
article > div pre .string {
color: #3af;
}
article > div pre .type {
color: #fa0;
}
article > div pre .variable-name {
color: #0b0;
}
article > div figure { article > div figure {
display: block; display: block;
margin: 1em 0; margin: 1em 0;
@ -237,11 +219,18 @@ article > div figure {
} }
article > div figure figcaption { article > div figure figcaption {
display: block; display: block;
counter-increment: figure;
} }
article > div figure.example figcation { counter-increment: example; }
article > div figure figcaption:before { article > div figure figcaption:before {
display: inline; display: inline;
content: "figure " counter(figure) ":"; content: "figure " counter(figure) ":";
counter-increment: figure; font-variant: small-caps;
}
article > div figure.example figcaption:before {
display: inline;
content: "example " counter(example) ":";
font-variant: small-caps;
} }
article > div .left { article > div .left {
float: left; float: left;
@ -251,9 +240,7 @@ article > div .right {
float: right; float: right;
margin: 0 0 0.5em 1em; margin: 0 0 0.5em 1em;
} }
article > div .center { article > div .center { text-align: center; }
text-align: center;
}
article > div hr { article > div hr {
margin: 1.5em auto; margin: 1.5em auto;
padding: 0; padding: 0;
@ -280,4 +267,3 @@ footer p a {
color: #666; color: #666;
text-decoration: none; text-decoration: none;
} }