added print.css and other media types to the default one with a little hack; in a future version this will be redesigned

This commit is contained in:
real_nowhereman 2008-03-24 20:18:56 +00:00
parent dd63a10b0d
commit a05652c00b
4 changed files with 117 additions and 10 deletions

View File

@ -149,17 +149,14 @@
echo "\n<!-- FP STD HEADER -->\n";
// echo "\n<link media=\"screen\" href=\"interface/templates/form.css\" type=\"text/css\" rel=\"stylesheet\" />";
echo "\n<meta name=\"generator\" content=\"FlatPress ". system_ver() ."\" />\n";
//echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Get RSS 2.0 Feed\" href=\"{$fp_config['general']['www']}rss.php\" />\n";
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Get RSS 2.0 Feed\" href=\"".
theme_feed_link('rss2')
."\" />\n";
."\" />\n";
echo "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"Get Atom 1.0 Feed\" href=\"".
theme_feed_link('atom')
."\" />\n";
."\" />\n";
echo "<!-- EOF FP STD HEADER -->\n";
}
@ -170,7 +167,7 @@
echo "\n<!-- FP STD STYLESHEET -->\n";
echo '<link media="screen" href="';
echo '<link media="screen,projection,handheld" href="';
echo BLOG_BASEURL . THEMES_DIR . THE_THEME;
@ -180,6 +177,12 @@
$substyle = '/'. (isset($fp_config['general']['style'])? $fp_config['general']['style'].'/' : '');
echo $substyle . 'res/'. $css .'" type="text/css" rel="stylesheet" />';
if (@$theme['style']['style_print']) {
echo '<link media="print" href="';
echo BLOG_BASEURL . THEMES_DIR . THE_THEME;
echo $substyle . 'res/'. $theme['style']['style_print'] .'" type="text/css" rel="stylesheet" />';
}
echo "\n<!-- FP STD STYLESHEET -->\n";

View File

@ -2,14 +2,14 @@
/*
Style Name: FlatMaas Revisited
Style URI: http://www.flatpress.org/
Description: (UNFINISHED) The old default of FlatPress, now coming as a Leggero style.
Description: The old default of FlatPress, now coming as a Leggero style.
Version: 0.705
Author: Drudo
Author URI: http://www.flatpress.org/
*/
$style['name'] = 'leggero';
$style['name'] = 'flatmaas-rev';
$style['author'] = 'NoWhereMan';
$style['www'] = 'http://www.flatpress.org/';
@ -17,6 +17,7 @@ Author URI: http://www.flatpress.org/
$style['style_def'] = 'style.css';
$style['style_admin'] = 'admin.css';
$style['style_print'] = '../../leggero/res/print.css';
$style['style'] = 'default';
?>

View File

@ -0,0 +1,102 @@
/*
===================
Leggero CSS Styles
===================
Ispired by: http://pluxml.org theme default
-------------------
Name: Leggero
Author: Laborix
Version: 0.1
Module: print.css
*/
body {
color: #333;
background-color: transparent;
}
a {
color: #333;
background-color: transparent;
text-decoration: none;
}
h1 {
font-size: 130%;
}
h2 {
font-size: 130%;
}
h3 {
font-size: 100%;
}
h4 {
font-size: 100%;
}
.date {
font-size: 100%;
}
#column {
display: none;
}
.admincontrols {
display: none;
}
.readmore {
display: none;
}
.navigation {
display: none;
}
.entry-footer {
clear: both;
font-size: 80%;
margin: 2em 0 3em 0;
}
blockquote {
margin: 1em 1em;
padding: 0 10px;
width: 90%;
color: #333;
background-color: transparent;
font-style: italic;
border-left: 5px solid #bbb;
}
pre {
clear: both;
margin: 0.5em 0 0.5em 0;
padding: 0.5em;
width: 90%;
color: #333;
background-color: #eee;
font-size: 70%;
border: 1px dotted #333;
}
.link-comments {
display: none;
}
hr {
display: none;
}
#footer {
display: none;
}
#commentform {
display: none;
}

View File

@ -19,6 +19,7 @@ Author URI: http://www.flatpress.org/
$style['style_def'] = 'style.css';
$style['style_admin'] = 'admin.css';
$style['style_print'] = 'print.css';
$style['style'] = 'default';
?>
?>