From dcd6a596137eea49b2bc7c1ee8f454d66bfc2bff Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 7 Jul 2011 22:35:35 +1000 Subject: moved stylesheets into a new "stylesheets" directory --- default.css | 0 inc/config.php | 4 +- inc/functions.php | 12 +- style.css | 379 ------------------------------------------------ stylesheets/default.css | 0 stylesheets/style.css | 379 ++++++++++++++++++++++++++++++++++++++++++++++++ stylesheets/yotsuba.css | 56 +++++++ yotsuba.css | 56 ------- 8 files changed, 443 insertions(+), 443 deletions(-) delete mode 100644 default.css delete mode 100644 style.css create mode 100644 stylesheets/default.css create mode 100644 stylesheets/style.css create mode 100644 stylesheets/yotsuba.css delete mode 100644 yotsuba.css diff --git a/default.css b/default.css deleted file mode 100644 index e69de29b..00000000 diff --git a/inc/config.php b/inc/config.php index e495e4da..8e09ce90 100644 --- a/inc/config.php +++ b/inc/config.php @@ -682,7 +682,7 @@ 'Yotsuba' => 'yotsuba.css' ); - // The prefix for each stylesheet URI. Defaults to $config['root'] + // The prefix for each stylesheet URI. Defaults to $config['root']/stylesheets/ //$config['uri_stylesheets'] = 'http://static.example.org/stylesheets/'; // The default stylesheet to use @@ -700,7 +700,7 @@ // Set custom locations for stylesheets, scripts and maybe a banner. // This can be good for load balancing across multiple servers or hostnames. - // $config['url_stylesheet'] = 'http://static.example.org/style.css'; + // $config['url_stylesheet'] = 'http://static.example.org/style.css'; // main/base stylesheet // $config['url_javascript'] = 'http://static.example.org/main.js'; // $config['url_banner'] = '/banner.php'; // $config['url_favicon'] = '/favicon.gif'; diff --git a/inc/functions.php b/inc/functions.php index fb395686..698ad973 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -28,11 +28,6 @@ date_default_timezone_set($config['timezone']); - if(!isset($config['url_stylesheet'])) - $config['url_stylesheet'] = $config['root'] . 'style.css'; - if(!isset($config['url_javascript'])) - $config['url_javascript'] = $config['root'] . 'main.js'; - if(!isset($config['post_url'])) $config['post_url'] = $config['root'] . $config['file_post']; @@ -81,7 +76,12 @@ $config['uri_img'] = sprintf($config['uri_img'], $board['dir']); if(!isset($config['uri_stylesheets'])) - $config['uri_stylesheets'] = &$config['root']; + $config['uri_stylesheets'] = $config['root'] . 'stylesheets/'; + + if(!isset($config['url_stylesheet'])) + $config['url_stylesheet'] = $config['uri_stylesheets'] . 'style.css'; + if(!isset($config['url_javascript'])) + $config['url_javascript'] = $config['root'] . 'main.js'; if($config['root_file']) { chdir($config['root_file']); diff --git a/style.css b/style.css deleted file mode 100644 index d8d18379..00000000 --- a/style.css +++ /dev/null @@ -1,379 +0,0 @@ -body { - background: #EEF2FF url('img/fade-blue.png') repeat-x 50% 0%; - color: black; - font-family: arial, helvetica, sans-serif; - font-size: 10pt; - margin: 0 8px; - padding-left: 5px; - padding-right: 5px; -} -table * { - margin: 0; -} -a:link, a:visited { - text-decoration: underline; - color: #34345C; -} -a:link:hover, a:visited:hover { - color: #ff0000; -} -a.post_no { - color: black; - text-decoration: none; - margin: 0; - padding: 0; -} -p.intro a.post_no, p.intro a.email { - margin: 0; -} -p.intro a.email span.name { - color: #34345C; -} -p.intro a.email:hover span.name { - color: #ff0000; -} -p.intro label { - display: inline; -} -h2 { - color: #AF0A0F; - font-size: 11pt; - margin: 0px; - padding: 0px; -} -h1 { - font-family: tahoma; - letter-spacing: -2px; - font-size: 20pt; - margin-bottom: 0; -} -div.title, h1 { - color: #AF0A0F; - text-align: center; -} -div.title { - font-size: 8pt; - margin-bottom: 2em; -} -form { - margin-bottom: 4em; -} -form table { - margin: auto; -} -form table input { - height: auto; -} -input[type="text"], input[type="password"], textarea { - border: 1px solid #a9a9a9; - text-indent: 0px; - text-shadow: none; - text-transform: none; - word-spacing: normal; -} -form table tr td { - text-align: left; - margin: 0px; - padding: 0px; -} -form table tr th { - text-align: left; - padding: 4px; -} -form table tr th { - background: #98E; -} -form table tr td div { - text-align: center; - float: left; - padding-left: 3px; -} -form table tr td div input { - display: block; - margin: 2px auto 0 auto; -} -form table tr td div label { - font-size: 10px; -} -.unimportant, .unimportant * { - font-size: 10px; -} -p.fileinfo { - display: block; - margin: 0px; - padding-right: 7em; -} -div.banner { - background-color: #E04000; - font-size: 12pt; - font-weight: bold; - text-align: center; - margin: 1em 0; -} -div.banner, div.banner a { - color: white; -} -div.banner a:hover { - color: #EEF2FF; - text-decoration: none; -} -img.banner { - float: none; - margin: 4px auto 0 auto; -} -img { - display: block; - float: left; - margin: 10px 20px; - border: none; -} -div.post img { - padding: 5px; - margin: 5px 20px 0 0; -} -div.post img.icon { - display: inline; - float: none; - margin: 0 5px; - padding: 0; -} -div.post.op { - margin-right: 20px; - margin-bottom: 5px; -} -div.post.op hr { - border-color: #D9BFB7; -} -p.intro { - margin: 0.5em 0; - padding: 0; - padding-bottom: 0.2em; -} -input.delete { - float: left; - margin: 1px 6px 0 0; -} -p.intro span.subject { - color: #0F0C5D; - font-weight: bold; -} -p.intro span.name { - color: #117743; - font-weight: bold; -} -p.intro a.capcode, p.intro a.nametag { - color: #F00000; - margin-left: 0; -} -p.intro a { - margin-left: 8px; -} -div.delete { - float: right; -} -div.post.reply p { - margin: 0.3em 0 0 0; -} -div.post.reply p.body { - margin-left: 1.8em; - margin-top: 0.8em; - padding-right: 3em; - padding-bottom: 0.3em; -} -div.post.reply.highlighted { - background: #D6BAD0; -} -div.post.reply p.body a { - color: #D00; -} -div.post { - max-width: 97%; -} -div.post p.body { - word-wrap: break-word; -} -div.post.reply { - background: #D6DAF0; - margin: 0.2em 16px; - padding: 0.2em 0.3em 0.5em 0.6em; - border-width: 1px; - border-style: none solid solid none; - border-color: #B7C5D9; - display: inline-block; -} -span.trip { - color: #228854; -} -span.quote { - color: #789922; -} -span.omitted { - display: block; - margin-top: 1em; -} -br.clear { - clear: left; -} -span.controls { - float: right; - margin: 0; - padding: 0; - font-size: 80%; -} -span.controls.op { - float: none; - margin-left: 10px; -} -span.controls a { - margin: 0; -} -div#wrap { - width: 900px; - margin:0 auto; -} -div.ban { - background: white; - border: 1px solid #98E; - max-width: 700px; - margin: 30px auto; -} -div.ban p, div.ban h2 { - padding: 3px 7px; -} -div.ban h2 { - background: #98E; - color: black; - font-size: 12pt; -} -div.ban p { - font-size: 12px; - margin-bottom: 12px; -} -div.ban p.reason { - font-weight: bold; -} -span.heading { - color: #AF0A0F; - font-size: 11pt; - font-weight: bold; - display: block; -} -span.spoiler { - background: black; - color: black; -} -div.post.reply p.body span.spoiler a { - color: black; -} -span.spoiler:hover, div.post.reply p.body span.spoiler:hover a { - color: white; -} -div.styles { - float: right; - padding-bottom: 20px; -} -div.styles a { - margin: 0 10px; -} -div.styles a.selected { - text-decoration: none; -} -table.test { - width: 100%; -} -table.test td, table.test th { - text-align: left; - padding: 5px; -} -table.test tr.h th { - background: #98E; -} -table.test td img { - margin: 0; -} -fieldset label { - display: block; -} -div.pages { - color: #89A; - background: #D6DAF0; - display: inline; - padding: 8px; - border-right: 1px solid #B7C5D9; - border-bottom: 1px solid #B7C5D9; -} -div.pages a.selected { - color: black; - font-weight: bolder; -} -div.pages a:link { - text-decoration: none; -} -div.pages form { - margin: 0; - padding: 0; - display: inline; -} -div.pages form input { - margin: 0 5px; - display: inline; -} -hr { - border: none; - border-top: 1px solid #B7C5D9; - height: 0px; -} -div.boardlist { - color: #89A; - font-size: 9pt; - margin-top: 3px; -} -div.boardlist.bottom { - margin-top: 20px; -} -div.boardlist a { - text-decoration: none; -} -div.report { - color: #333; -} -table.modlog { - margin: auto; - width: 100%; -} -table.modlog tr td { - text-align: left; - margin: 0px; - padding: 4px 15px 0 0; -} -table.modlog tr th { - text-align: left; - padding: 4px 15px 5px 5px; - white-space: nowrap; -} -table.modlog tr th { - background: #98E; -} -td.minimal, th.minimal { - width: 1%; - white-space: nowrap; -} -div.top_notice { - text-align: center; - margin: 5px auto; -} -span.public_ban { - display: block; - color: red; - font-weight: bold; - margin-top: 15px; -} -span.toolong { - display: block; - margin-top: 15px; -} -div.blotter { - color: red; - font-weight: bold; - text-align: center; -} diff --git a/stylesheets/default.css b/stylesheets/default.css new file mode 100644 index 00000000..e69de29b diff --git a/stylesheets/style.css b/stylesheets/style.css new file mode 100644 index 00000000..d8d18379 --- /dev/null +++ b/stylesheets/style.css @@ -0,0 +1,379 @@ +body { + background: #EEF2FF url('img/fade-blue.png') repeat-x 50% 0%; + color: black; + font-family: arial, helvetica, sans-serif; + font-size: 10pt; + margin: 0 8px; + padding-left: 5px; + padding-right: 5px; +} +table * { + margin: 0; +} +a:link, a:visited { + text-decoration: underline; + color: #34345C; +} +a:link:hover, a:visited:hover { + color: #ff0000; +} +a.post_no { + color: black; + text-decoration: none; + margin: 0; + padding: 0; +} +p.intro a.post_no, p.intro a.email { + margin: 0; +} +p.intro a.email span.name { + color: #34345C; +} +p.intro a.email:hover span.name { + color: #ff0000; +} +p.intro label { + display: inline; +} +h2 { + color: #AF0A0F; + font-size: 11pt; + margin: 0px; + padding: 0px; +} +h1 { + font-family: tahoma; + letter-spacing: -2px; + font-size: 20pt; + margin-bottom: 0; +} +div.title, h1 { + color: #AF0A0F; + text-align: center; +} +div.title { + font-size: 8pt; + margin-bottom: 2em; +} +form { + margin-bottom: 4em; +} +form table { + margin: auto; +} +form table input { + height: auto; +} +input[type="text"], input[type="password"], textarea { + border: 1px solid #a9a9a9; + text-indent: 0px; + text-shadow: none; + text-transform: none; + word-spacing: normal; +} +form table tr td { + text-align: left; + margin: 0px; + padding: 0px; +} +form table tr th { + text-align: left; + padding: 4px; +} +form table tr th { + background: #98E; +} +form table tr td div { + text-align: center; + float: left; + padding-left: 3px; +} +form table tr td div input { + display: block; + margin: 2px auto 0 auto; +} +form table tr td div label { + font-size: 10px; +} +.unimportant, .unimportant * { + font-size: 10px; +} +p.fileinfo { + display: block; + margin: 0px; + padding-right: 7em; +} +div.banner { + background-color: #E04000; + font-size: 12pt; + font-weight: bold; + text-align: center; + margin: 1em 0; +} +div.banner, div.banner a { + color: white; +} +div.banner a:hover { + color: #EEF2FF; + text-decoration: none; +} +img.banner { + float: none; + margin: 4px auto 0 auto; +} +img { + display: block; + float: left; + margin: 10px 20px; + border: none; +} +div.post img { + padding: 5px; + margin: 5px 20px 0 0; +} +div.post img.icon { + display: inline; + float: none; + margin: 0 5px; + padding: 0; +} +div.post.op { + margin-right: 20px; + margin-bottom: 5px; +} +div.post.op hr { + border-color: #D9BFB7; +} +p.intro { + margin: 0.5em 0; + padding: 0; + padding-bottom: 0.2em; +} +input.delete { + float: left; + margin: 1px 6px 0 0; +} +p.intro span.subject { + color: #0F0C5D; + font-weight: bold; +} +p.intro span.name { + color: #117743; + font-weight: bold; +} +p.intro a.capcode, p.intro a.nametag { + color: #F00000; + margin-left: 0; +} +p.intro a { + margin-left: 8px; +} +div.delete { + float: right; +} +div.post.reply p { + margin: 0.3em 0 0 0; +} +div.post.reply p.body { + margin-left: 1.8em; + margin-top: 0.8em; + padding-right: 3em; + padding-bottom: 0.3em; +} +div.post.reply.highlighted { + background: #D6BAD0; +} +div.post.reply p.body a { + color: #D00; +} +div.post { + max-width: 97%; +} +div.post p.body { + word-wrap: break-word; +} +div.post.reply { + background: #D6DAF0; + margin: 0.2em 16px; + padding: 0.2em 0.3em 0.5em 0.6em; + border-width: 1px; + border-style: none solid solid none; + border-color: #B7C5D9; + display: inline-block; +} +span.trip { + color: #228854; +} +span.quote { + color: #789922; +} +span.omitted { + display: block; + margin-top: 1em; +} +br.clear { + clear: left; +} +span.controls { + float: right; + margin: 0; + padding: 0; + font-size: 80%; +} +span.controls.op { + float: none; + margin-left: 10px; +} +span.controls a { + margin: 0; +} +div#wrap { + width: 900px; + margin:0 auto; +} +div.ban { + background: white; + border: 1px solid #98E; + max-width: 700px; + margin: 30px auto; +} +div.ban p, div.ban h2 { + padding: 3px 7px; +} +div.ban h2 { + background: #98E; + color: black; + font-size: 12pt; +} +div.ban p { + font-size: 12px; + margin-bottom: 12px; +} +div.ban p.reason { + font-weight: bold; +} +span.heading { + color: #AF0A0F; + font-size: 11pt; + font-weight: bold; + display: block; +} +span.spoiler { + background: black; + color: black; +} +div.post.reply p.body span.spoiler a { + color: black; +} +span.spoiler:hover, div.post.reply p.body span.spoiler:hover a { + color: white; +} +div.styles { + float: right; + padding-bottom: 20px; +} +div.styles a { + margin: 0 10px; +} +div.styles a.selected { + text-decoration: none; +} +table.test { + width: 100%; +} +table.test td, table.test th { + text-align: left; + padding: 5px; +} +table.test tr.h th { + background: #98E; +} +table.test td img { + margin: 0; +} +fieldset label { + display: block; +} +div.pages { + color: #89A; + background: #D6DAF0; + display: inline; + padding: 8px; + border-right: 1px solid #B7C5D9; + border-bottom: 1px solid #B7C5D9; +} +div.pages a.selected { + color: black; + font-weight: bolder; +} +div.pages a:link { + text-decoration: none; +} +div.pages form { + margin: 0; + padding: 0; + display: inline; +} +div.pages form input { + margin: 0 5px; + display: inline; +} +hr { + border: none; + border-top: 1px solid #B7C5D9; + height: 0px; +} +div.boardlist { + color: #89A; + font-size: 9pt; + margin-top: 3px; +} +div.boardlist.bottom { + margin-top: 20px; +} +div.boardlist a { + text-decoration: none; +} +div.report { + color: #333; +} +table.modlog { + margin: auto; + width: 100%; +} +table.modlog tr td { + text-align: left; + margin: 0px; + padding: 4px 15px 0 0; +} +table.modlog tr th { + text-align: left; + padding: 4px 15px 5px 5px; + white-space: nowrap; +} +table.modlog tr th { + background: #98E; +} +td.minimal, th.minimal { + width: 1%; + white-space: nowrap; +} +div.top_notice { + text-align: center; + margin: 5px auto; +} +span.public_ban { + display: block; + color: red; + font-weight: bold; + margin-top: 15px; +} +span.toolong { + display: block; + margin-top: 15px; +} +div.blotter { + color: red; + font-weight: bold; + text-align: center; +} diff --git a/stylesheets/yotsuba.css b/stylesheets/yotsuba.css new file mode 100644 index 00000000..8a150157 --- /dev/null +++ b/stylesheets/yotsuba.css @@ -0,0 +1,56 @@ +body { + background: #ffe url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #800000; +} +a:link, a:visited, p.intro a.email span.name { + color: #0000ff; +} +a:link:hover { + color: #d00; +} +a.post_no { + color: #800000; +} +div.post.reply { + background: #f0e0d6; + border-color: #d9bfb7; +} +div.post.reply.highlighted { + background: #f0c0b0; + border-color: #d9bfb7; +} +div.post.reply p.body a { + color: navy; +} +p.intro span.subject { + color: #d00; +} +form table tr th { + background: #EA8; +} +div.ban h2 { + background: #FCA; + color: inherit; +} +div.ban { + border-color: #800; +} +div.ban p { + color: black; +} +div.pages { + background: #F0E0D6; + border-color: #D9BFB7; +} +div.pages a.selected { + color: #800; +} +hr { + border-color: #D9BFB7; +} +div.boardlist { + color: #B86; +} +div.boardlist a { + color: #800; +} \ No newline at end of file diff --git a/yotsuba.css b/yotsuba.css deleted file mode 100644 index 8a150157..00000000 --- a/yotsuba.css +++ /dev/null @@ -1,56 +0,0 @@ -body { - background: #ffe url('img/fade-yotsuba.png') repeat-x 50% 0%; - color: #800000; -} -a:link, a:visited, p.intro a.email span.name { - color: #0000ff; -} -a:link:hover { - color: #d00; -} -a.post_no { - color: #800000; -} -div.post.reply { - background: #f0e0d6; - border-color: #d9bfb7; -} -div.post.reply.highlighted { - background: #f0c0b0; - border-color: #d9bfb7; -} -div.post.reply p.body a { - color: navy; -} -p.intro span.subject { - color: #d00; -} -form table tr th { - background: #EA8; -} -div.ban h2 { - background: #FCA; - color: inherit; -} -div.ban { - border-color: #800; -} -div.ban p { - color: black; -} -div.pages { - background: #F0E0D6; - border-color: #D9BFB7; -} -div.pages a.selected { - color: #800; -} -hr { - border-color: #D9BFB7; -} -div.boardlist { - color: #B86; -} -div.boardlist a { - color: #800; -} \ No newline at end of file -- cgit v1.3