PlainSQLiteBlog/head.php

30 lines
1.5 KiB
PHP

<meta name="viewport" content="initial-scale=1, width=device-width" />
<style>
<?php
$strDefaults = "
/* Put in your custom CSS here: */
.header-content { margin-bottom: 3em; }
.footer-content { margin-top: 3em; }
html { background: #aaa; font-family: Georgia; }
body { max-width: 7in; margin: 0 auto; padding: 3em; background: #fff; }
hr { border: none; background: #aaa; min-height: 1px; }
textarea { width: 100%; min-width: 100%; max-width: 100%; min-height: 3in; margin-bottom: 0.5em; }
.message-danger { background: #f00; color: #fff; padding: 0.5em; }
.message-warning { background: #fd0; color: #000; padding: 0.5em; }
.message-success { background: #070; color: #fff; padding: 0.5em; }
.message-info { background: #0df; color: #000; padding: 0.5em; }
.post-container { margin-top: 3em; margin-bottom: 3em; }
.post-container > hr { border: 0; background: none; border-bottom: 2px dotted #aaa; margin-top: 3em; margin-bottom: 3em; }
.post img { max-width: 2in; }
table { margin-bottom: 1em; }
a[href], a[href]:visited { color: #07a; text-decoration: none; }
a[href]:hover { text-decoration: underline; }
";
$strDefaults = preg_replace("/[ ]{4,}/", "", $strDefaults);
$strContent = Settings::get("css", $strDefaults, true);
echo $strContent;
?>
</style>