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

added a default print stylesheet

This commit is contained in:
p4bl0 2010-07-24 01:28:59 +02:00
parent c8535eb701
commit 66f3f3f1d1
4 changed files with 17 additions and 1 deletions

View file

@ -7,6 +7,7 @@
<meta name="author" content="<?fugitive-install name ?>" />
<meta name="description" content="<?fugitive-install name ?>'s blog" />
<link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" />
</head>
<body>
<div id="container">

View file

@ -7,6 +7,7 @@
<meta name="author" content="<?fugitive-install name ?>" />
<meta name="description" content="<?fugitive-install name ?>'s blog" />
<link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" charset="utf-8" />
</head>
<body>
<div id="container">

View file

@ -47,9 +47,12 @@ EOF
#INCLUDE:archives.html#
EOF
echo "done."
echo -n "Writing default css file... "
echo -n "Writing default css files... "
(base64 -d | gunzip) > fugitive.css <<EOF
#INCLUDE:fugitive.css#
EOF
(base64 -d | gunzip) > print.css <<EOF
#INCLUDE:print.css#
EOF
echo "done."
fugitive_install_hooks

11
print.css Normal file
View file

@ -0,0 +1,11 @@
#container {
width: auto;
padding: 1em;
margin: 0;
}
nav, header, footer {
display: none;
}
article header, article footer {
display: block;
}