mg.css fully merged into core style; consistency between article and repo2html formats

master
Mike Gerwitz 2013-05-22 23:19:43 -04:00
parent 8257096d84
commit 4beb332973
6 changed files with 67 additions and 97 deletions

View File

@ -31,7 +31,7 @@ thoughts:
-t "Mike Gerwitz's Thoughts and Ramblings" \ -t "Mike Gerwitz's Thoughts and Ramblings" \
-d 'The miscellaneous thoughts and ramblings of a free software hacker' \ -d 'The miscellaneous thoughts and ramblings of a free software hacker' \
-c 'Mike Gerwitz' \ -c 'Mike Gerwitz' \
-l 'Verbatim redistribution of this document in its entirety is permitted so long as this copyright notice is preserved.' \ -l 'Verbatim redistribution of this document in its entirety is permitted provided that this copyright notice is preserved.' \
-C '/style.css' \ -C '/style.css' \
-T "$(PWD)/tpl" \ -T "$(PWD)/tpl" \
-E \ -E \
@ -44,8 +44,8 @@ thoughts:
# mgify script # mgify script
%.html: %.txt %.html: %.txt
asciidoc -fasciidoc.conf -v \ asciidoc -fasciidoc.conf -v \
-a stylesdir=$(PWD)/asciidoc-themes/ \ -a stylesdir= \
-a themedir=$(PWD)/asciidoc-themes/ \ -a themedir=$(PWD)/ \
$< $<
./tools/mgify "$@" ./tools/mgify "$@"

View File

@ -1,86 +0,0 @@
body {
margin: 0px 5em;
text-align: justify;
}
#header, #footer, #footnotes {
position: relative;
left: -3em;
margin-right: -3em;
}
body p {
line-height: 1.5em;
}
h2 {
position: relative;
border-bottom: 2px solid #babdb6;
left: -2em;
margin-right: -2em;
}
h3 {
border-bottom: 1px solid #babdb6;
}
h2, h3, h4 {
margin-bottom: 0.5em;
}
dt {
font-weight: bold;
}
dd > p:first-child {
margin-top: 0;
}
tt {
background-color: #eeeeec;
color: #000055;
}
#author {
font-size: 1.1em;
}
.listingblock {
background-color: #eeeeec;
padding: 0.5em;
}
#gnuinside {
position: absolute;
display: block;
top: 0px;
right: 0px;
width: 50px;
height: 50px;
}
#copyright {
text-align: center;
margin-top: -1.4em;
font-size: small;
}
.footnote {
font-size: small;
}
.exampleblock {
margin-left: 2em;
padding-left: 1em;
border-left: 5px solid #eeeeec;
}
#footer {
border-top: 2px solid #babdb6;
padding-top: 0.5em;
font-size: small;
}

View File

@ -6,7 +6,7 @@ textwidth=80
newline=\n newline=\n
[attributes] [attributes]
theme=mg theme=style
stylesdir=./stylesheets stylesdir=./stylesheets
linkcss=1 linkcss=1
disable-javascript=1 disable-javascript=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -7,9 +7,11 @@ body {
a { color: #0066cc; } a { color: #0066cc; }
a:visited { color: #6666cc; } a:visited { color: #6666cc; }
/* hanging */ /* hanging; ids for asciidoc styling */
header, footer { header, footer,
#header, #footer, .article #copyright {
margin: 0em -3em; margin: 0em -3em;
text-align: left;
} }
h1, h2, h3 { h1, h2, h3 {
@ -28,10 +30,13 @@ h2.date {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
h1.title { /* latter for asciidoc-generated output */
h1.title,
#header h1 {
font-size: 2em; font-size: 2em;
margin-bottom: 0.1em; margin-bottom: 0.1em;
} }
h2.desc { h2.desc {
font-size: 0.8em; font-size: 0.8em;
text-transform: uppercase; text-transform: uppercase;
@ -50,6 +55,29 @@ p.ref {
font-size: 0.9em; font-size: 0.9em;
} }
dt {
letter-spacing: 0.1em;
}
tt {
background-color: #eeeeec;
color: #000055;
}
.listingblock {
background-color: #eeeeec;
background-image: url('images/cross_scratches.png');
padding: 0.5em;
border: 1px solid #babdb6;
border-radius: 0.25em
}
.exampleblock {
margin-left: 2em;
padding-left: 1em;
border-left: 5px solid #eeeeec;
}
#gnuinside { #gnuinside {
position: absolute; position: absolute;
display: block; display: block;
@ -60,7 +88,7 @@ p.ref {
height: 50px; height: 50px;
} }
footer { footer, #footer, .article #copyright {
font-size: 0.9em; font-size: 0.9em;
margin-top: 2em; margin-top: 2em;
} }
@ -88,3 +116,32 @@ footer .commit-id {
.bimgs img:first-child { .bimgs img:first-child {
margin-left: 0em; margin-left: 0em;
} }
/** exclusively asciidoc-generated content styling **/
body.article h2 {
position: relative;
border-bottom: 2px solid #babdb6;
left: -2em;
margin-right: -2em;
}
body.article h3 {
border-bottom: 1px solid #babdb6;
}
#author {
font-size: 1.1em;
letter-spacing: 0.1em;
}
#footer {
border-top: 2px solid #babdb6;
padding-top: 0.5em;
}
.article #copyright {
margin-top: 0;
}

View File

@ -3,9 +3,8 @@
</a> </a>
<div id="copyright"> <div id="copyright">
Copyright &copy; 2012 <a href="http://mikegerwitz.com">Mike Gerwitz</a> Copyright &copy; 2012 <a href="/">Mike Gerwitz</a>.
<br /> Verbatim distribution of this document in its entirety is permitted provided
Verbatim distribution of this document in its entirety is permitted, provided
that this copyright notice is preserved. that this copyright notice is preserved.
</div> </div>