From 47afc2ad8c6337d20e0d5c41d578f46b704419c7 Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 15:31:48 -0500 Subject: [PATCH 1/9] Put secrets in another file. This commit makes it easier to make changes to the instance config without worrying about overwriting secrets and database configuration. It also mitigates some possibility of leaking secrets. --- inc/instance-config.secret.php.EXAMPLE | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 inc/instance-config.secret.php.EXAMPLE diff --git a/inc/instance-config.secret.php.EXAMPLE b/inc/instance-config.secret.php.EXAMPLE new file mode 100644 index 00000000..1c6e7c23 --- /dev/null +++ b/inc/instance-config.secret.php.EXAMPLE @@ -0,0 +1,24 @@ + Date: Sun, 17 Jan 2021 15:40:30 -0500 Subject: [PATCH 2/9] Remove secrets, require `instance-config.secret.php` --- .gitignore | 3 +++ inc/instance-config.php | 17 ++++------------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 493d4027..635c426b 100644 --- a/.gitignore +++ b/.gitignore @@ -74,3 +74,6 @@ stylesheets/fonts #Images from twemoji js/twemoji/16x16/ + +#Secrets +*.secret.php \ No newline at end of file diff --git a/inc/instance-config.php b/inc/instance-config.php index 083c499e..52559ece 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -8,6 +8,10 @@ * You can copy values from config.php (defaults) and paste them here. */ +if (file_exists("instance-config.secret.php")) { + require_once "instance-config.secret.php"; +} + /* * Front page configurations. */ @@ -67,19 +71,7 @@ $config['custom_categories'] = array( ), ); -/* - * Database and site wide configurations - */ - -$config['db']['server'] = 'localhost'; -$config['db']['database'] = 'lainchan'; -$config['db']['prefix'] = ''; -$config['db']['user'] = 'lainchan'; -$config['db']['password'] = ''; - - $config['cookies']['mod'] = 'mod'; -$config['cookies']['salt'] = 'MGYwNjhlNjU5Y2QxNWU3YjQ3MzQ1Yj'; $config['flood_time'] = 0; $config['flood_time_ip'] = 0; @@ -96,7 +88,6 @@ $config['threads_per_page'] = 10; $config['max_pages'] = 36; $config['threads_preview'] = 5; $config['root'] = '/'; -$config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW'; //Banners $config['url_banner'] = '/banners.php'; From 44ca8b3ac407ca46bc13bda6c96d3ab8a40daff6 Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 16:10:56 -0500 Subject: [PATCH 3/9] Add styles, addresses #38 --- inc/instance-config.php | 6 ++ stylesheets/anons_dark_red.css | 150 +++++++++++++++++++++++++++ stylesheets/demain_dark.css | 182 +++++++++++++++++++++++++++++++++ stylesheets/demain_light.css | 182 +++++++++++++++++++++++++++++++++ stylesheets/temp_dark.css | 103 +++++++++++++++++++ stylesheets/temp_dark_red.css | 101 ++++++++++++++++++ stylesheets/tomorrow.css | 115 +++++++++++++++++++++ 7 files changed, 839 insertions(+) create mode 100644 stylesheets/anons_dark_red.css create mode 100644 stylesheets/demain_dark.css create mode 100644 stylesheets/demain_light.css create mode 100644 stylesheets/temp_dark.css create mode 100644 stylesheets/temp_dark_red.css create mode 100644 stylesheets/tomorrow.css diff --git a/inc/instance-config.php b/inc/instance-config.php index 52559ece..2243fae7 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -275,6 +275,12 @@ $config['stylesheets']['Notsuba'] = 'notsuba.css'; $config['stylesheets']['Photon'] = 'photon.css'; $config['stylesheets']['Szalet'] = 'szalet.css'; $config['stylesheets']['Tsuki'] = 'tsuki.css'; +$config['stylesheets']['DemainLight'] = 'demain_light.css'; +$config['stylesheets']['DemainDark'] = 'demain_dark.css'; +$config['stylesheets']['TempDark'] = 'temp_dark.css'; +$config['stylesheets']['TempDarkRed'] = 'temp_dark_red.css'; +$config['stylesheets']['Tomorrow'] = 'tomorrow.css'; +$config['stylesheets']['AnonsDarkRed'] = 'anons_dark_red.css'; $config['default_stylesheet'] = array('Dark Red', $config['stylesheets']['Dark Red']); /* diff --git a/stylesheets/anons_dark_red.css b/stylesheets/anons_dark_red.css new file mode 100644 index 00000000..d8681ec4 --- /dev/null +++ b/stylesheets/anons_dark_red.css @@ -0,0 +1,150 @@ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} +/* Link colors */ +a:link, a:visited, .intro a.email span.name { + color: #81a2be; +} +a:hover, .intro a.post_no:hover { + color: #cc6666; +} +/* Board title and subtitle */ +header div.subtitle, h1 { + color: indianred; +} +/* Post number*/ +a.post_no { + color: #c5c8c6; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #282A2E; + border-color: #373b41; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #282A2E; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #5f89ac; +} +.intro span.subject { + color: #b294bb; +} +/* Greentext */ +span.quote { + color: #b5bd68 +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #373b41; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #373b41; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #1d1f21; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #1d1f21; + -moz-box-shadow: 0 0 10px #1d1f21; + -webkit-box-shadow: 0 0 10px #1d1f21; + box-shadow: 0 0 10px #1d1f21; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #81a2be!important;; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #81a2be; +} +div.pages a.selected { + color: #cc6666; +} +hr { + border-color: #373b41; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #cc6666; +} +table.modlog tr th { + background: #1d1f21; +} + +/* options.js */ +#options_div, #alert_div { + background: #151515; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #151515; +} +/* Red text */ +span.heading { + color: indianred; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} +/* name */ +.intro span.name { + color: #5f89ac; +} +/* tripcode */ +.intro span.trip { + color: #8abeb7; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner {background-color:#9988ee;} +#quick-reply th, #quick-reply td {background-color:#1F1F1F;} +#quick-reply table {border-color:#373b41} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* b5bd68*/ diff --git a/stylesheets/demain_dark.css b/stylesheets/demain_dark.css new file mode 100644 index 00000000..18ccb05d --- /dev/null +++ b/stylesheets/demain_dark.css @@ -0,0 +1,182 @@ +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* General */ +body { + background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #4c4c4c; + font-size: 11pt; + font-family: liberation.sans +} +/* Link colors */ +a:link, +a:visited, +.intro a.email span.name { + color: #477085; +} +a:hover, +.intro a.post_no:hover { + color: #5d6678; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: #d93f42; +} +/* Post number*/ +a.post_no { + color: #477085; +} +/* "Top bar" of the replies*/ +p.intro { + background: #e3e7e8; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #e9eced; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #477085; +} +.intro span.subject { + color: #6b7a1e; +} +/* Greentext */ +span.quote { + color: #6b7a1e +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, +.thread.grid-li.grid-size-large:hover { + background-color: #e9eced; + border: 1px solid #cccccc; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #e9eced; + color: #4c4c4c; + border: 1px solid #cccccc; +} +/* Input fields */ +textarea, +input:not([type="file"]):not([type="checkbox"]), +[type="submit"] { + color: #4c4c4c; + background: #e9eced; + border: 1px double #cccccc; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, +input:not([type="file"]):not([type="checkbox"]):focus, +[type="submit"]:hover { + border: 1px solid #d5dada; + -moz-box-shadow: 0 0 10px #d5dada; + -webkit-box-shadow: 0 0 10px #d5dada; + box-shadow: 0 0 10px #d5dada; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #e9eced; + border-color: #cccccc!important; + ; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #e9eced; + border-color: #cccccc; +} +div.pages a.selected { + color: #5d6678; +} +hr { + border-color: #cccccc; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #477085; +} +table.modlog tr th { + background: #e9eced; +} + +/* options.js */ +#options_div, +#alert_div { + background: #e9eced; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #e9eced; +} +/* Red text */ +span.heading { + color: #d93f42; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #617d6f; +} +/* name */ +.intro span.name { + color: #4c4c4c; +} +/* tripcode */ +.intro span.trip { + color: #5d6678; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner { + background-color: #477085; +} +#quick-reply th, +#quick-reply td { + background-color: #d5dada; +} +#quick-reply table { + border-color: #cccccc +} +/* Buggy shit */ +div.post.reply div.body a { + color: #477085; + text-decoration: none; +} diff --git a/stylesheets/demain_light.css b/stylesheets/demain_light.css new file mode 100644 index 00000000..18ccb05d --- /dev/null +++ b/stylesheets/demain_light.css @@ -0,0 +1,182 @@ +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* General */ +body { + background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #4c4c4c; + font-size: 11pt; + font-family: liberation.sans +} +/* Link colors */ +a:link, +a:visited, +.intro a.email span.name { + color: #477085; +} +a:hover, +.intro a.post_no:hover { + color: #5d6678; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: #d93f42; +} +/* Post number*/ +a.post_no { + color: #477085; +} +/* "Top bar" of the replies*/ +p.intro { + background: #e3e7e8; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #e9eced; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #477085; +} +.intro span.subject { + color: #6b7a1e; +} +/* Greentext */ +span.quote { + color: #6b7a1e +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, +.thread.grid-li.grid-size-large:hover { + background-color: #e9eced; + border: 1px solid #cccccc; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #e9eced; + color: #4c4c4c; + border: 1px solid #cccccc; +} +/* Input fields */ +textarea, +input:not([type="file"]):not([type="checkbox"]), +[type="submit"] { + color: #4c4c4c; + background: #e9eced; + border: 1px double #cccccc; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, +input:not([type="file"]):not([type="checkbox"]):focus, +[type="submit"]:hover { + border: 1px solid #d5dada; + -moz-box-shadow: 0 0 10px #d5dada; + -webkit-box-shadow: 0 0 10px #d5dada; + box-shadow: 0 0 10px #d5dada; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #e9eced; + border-color: #cccccc!important; + ; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #e9eced; + border-color: #cccccc; +} +div.pages a.selected { + color: #5d6678; +} +hr { + border-color: #cccccc; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #477085; +} +table.modlog tr th { + background: #e9eced; +} + +/* options.js */ +#options_div, +#alert_div { + background: #e9eced; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #e9eced; +} +/* Red text */ +span.heading { + color: #d93f42; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #617d6f; +} +/* name */ +.intro span.name { + color: #4c4c4c; +} +/* tripcode */ +.intro span.trip { + color: #5d6678; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner { + background-color: #477085; +} +#quick-reply th, +#quick-reply td { + background-color: #d5dada; +} +#quick-reply table { + border-color: #cccccc +} +/* Buggy shit */ +div.post.reply div.body a { + color: #477085; + text-decoration: none; +} diff --git a/stylesheets/temp_dark.css b/stylesheets/temp_dark.css new file mode 100644 index 00000000..c68980d4 --- /dev/null +++ b/stylesheets/temp_dark.css @@ -0,0 +1,103 @@ +@-moz-document domain("leftypol.org") { +/* Bunker Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #FFB300!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #acacac; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #117743; +} +div.pages a.selected { + color: #ff0000; +} +/* Thread separators */ +hr { + border-color: #117743; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #FFB300; +} +a:link:hover { + color: #d00; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #117743; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #117743; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #07371F; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #117743; + -moz-box-shadow: 0 0 10px #117743; + -webkit-box-shadow: 0 0 10px #117743; + box-shadow: 0 0 10px #117743; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #34ED3A; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #117743; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); +} +/* Buggy shit */ +div.post.reply div.body a { + color: #ff0000; + text-decoration: none; +} +} diff --git a/stylesheets/temp_dark_red.css b/stylesheets/temp_dark_red.css new file mode 100644 index 00000000..df80a931 --- /dev/null +++ b/stylesheets/temp_dark_red.css @@ -0,0 +1,101 @@ +/* Red Bunker Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #ffd700!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #acacac; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #cd0000; +} +div.pages a.selected { + color: #ff0000; +} +/* Thread separators */ +hr { + border-color: #CD0000; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #ffd700; +} +a:link:hover { + color: #d00; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #cd0000; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #cd0000; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #07371F; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #cd0000; + -moz-box-shadow: 0 0 10px #cd0000; + -webkit-box-shadow: 0 0 10px #cd0000; + box-shadow: 0 0 10px #cd0000; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #ffd700; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #cd0000; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); +} +/* Buggy shit */ +div.post.reply div.body a { + color: #ff0000; + text-decoration: none; +} diff --git a/stylesheets/tomorrow.css b/stylesheets/tomorrow.css new file mode 100644 index 00000000..b3f95226 --- /dev/null +++ b/stylesheets/tomorrow.css @@ -0,0 +1,115 @@ +/* Tomorrow Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #81a2be!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #81a2be; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #81a2be; +} +div.pages a.selected { + color: #cc6666; +} +/* Thread separators */ +hr { + border-color: #373b41; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #81a2be; +} +a:link:hover { + color: #cc6666; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #373b41; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #373b41; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #1d1f21; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #1d1f21; + -moz-box-shadow: 0 0 10px #1d1f21; + -webkit-box-shadow: 0 0 10px #1d1f21; + box-shadow: 0 0 10px #1d1f21; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} + +/* name */ +.intro span.name { + color: #5f89ac; +} + +/* tripcode */ +.intro span.trip { + color: #8abeb7; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #373b41; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: #282A2E; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} From d32094f3d470e7d1eb6541b6f0d2ceeb6c60c505 Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 16:17:37 -0500 Subject: [PATCH 4/9] Add bunker-like CSS them, adresses #145 --- inc/instance-config.php | 1 + stylesheets/bunker_like.css | 175 ++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 stylesheets/bunker_like.css diff --git a/inc/instance-config.php b/inc/instance-config.php index 2243fae7..0f74d2a5 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -281,6 +281,7 @@ $config['stylesheets']['TempDark'] = 'temp_dark.css'; $config['stylesheets']['TempDarkRed'] = 'temp_dark_red.css'; $config['stylesheets']['Tomorrow'] = 'tomorrow.css'; $config['stylesheets']['AnonsDarkRed'] = 'anons_dark_red.css'; +$config['stylesheets']['BunkerLike'] = 'bunker_like.css'; $config['default_stylesheet'] = array('Dark Red', $config['stylesheets']['Dark Red']); /* diff --git a/stylesheets/bunker_like.css b/stylesheets/bunker_like.css new file mode 100644 index 00000000..65de9e9b --- /dev/null +++ b/stylesheets/bunker_like.css @@ -0,0 +1,175 @@ +body { + background: #1D1F21; + color: #ACACAC; + font-family: Courier, monospace; + font-size: 13px; +} + +/* LINKS */ +a, a:link, a:visited, .intro a.email span.name { + color: #FFB300; + text-decoration: none; +} +a:link:hover, a:visited:hover { + color: #FFB300; + text-shadow: 0px 0px 5px #117743; +} +div.pages a.selected { + color: #FFB300; +} + +/* INTRO */ +h1, div.title, header div.subtitle { + color: #663E11; + font-family: Courier, monospace; +} +h1 { + font-size: 24pt; + font-weight: normal; + letter-spacing: 0px; +} +header div.subtitle { + font-size: 12pt; +} + +/* FORMS AND BUTTONS */ +div.banner { + background-color: inherit; + color: #ACACAC; +} +form table { + border: 1px dashed #117743; + padding-right: 1px; +} +form table tr th { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; +} +input[type="text"], input[type="password"], textarea, select { + border: 1px double #07371F; + border-radius: 5px; + background: #282A2E; + color: #ACACAC; + font-family: Courier, monospace; +} +input[type="text"]:focus, input[type="password"]:focus, textarea:focus { + box-shadow: 0px 0px 5px 2px #117743; +} +input[type="submit"] { + border: 3px double #07371F; + border-radius: 5px; + background: #16171A; + color: #ACACAC; + font-family: Courier, monospace; + font-weight: bold; +} +.dropzone { + background: #16171A; + border: 3px double #07371F; + color: #ACACAC; +} +.dropzone .file-hint { + color: #ACACAC; + font-weight: bold; +} +#quick-reply table { + background: #1D1F21 !important; +} +fieldset { + border: 1px dashed #117743; +} + +/* POST IDENTIFIERS */ +.intro span.subject { + color: #34ED3A; +} +.intro span.name { + color: #117743; +} +.intro span.trip { + color: #117743; +} +.intro a.capcode, p.intro a.nametag { + color: #FF0000; + font-weight: bold; +} +.intro a.email, p.intro a.email span.name, p.intro a.email:hover, p.intro a.email:hover span.name { + color: #34ED97; +} +.intro time { + font-weight: bold; +} +.intro a.post_no { + color: #ACACAC; + font-weight: bold; +} + +/* POST BOXES */ +div.post.reply { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; +} +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); + border: 1px solid #117743; + border-radius: 5px; +} + +/* POST CONTENT */ +div.post.reply div.body a { + color: #FFB300; +} +.quote { + color: #789922; +} + +/* BARS */ +.bar { + background-color: #151515; +} +.bar.top { + border-bottom: 1px solid #B0790A; +} +.bar.bottom { + border-top: 1px solid #B0790A; +} +div.boardlist { + color: #ACACAC; +} +hr { + border: none; + border-top: 1pt solid #117743; +} + +/* CATALOG */ +.theme-catalog h1 { + color: #ACACAC; + font-size: 18pt; + font-weight: bold; +} +.theme-catalog h1 a { + font-weight: normal; +} +.theme-catalog div.thread, .theme-catalog div.thread:hover { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; + font-size: 10pt; +} + +/* OPTIONS */ +#options_div, #alert_div { + background: #1D1F21; + border: 1px dashed #117743; +} +#options_tablist { + border-right: 1px dashed #117743; +} +.options_tab_icon { + color: #ACACAC; +} +.options_tab_icon.active { + color: #FFB300; +} From e2e328a50b86350212f5348f57f82b471f493d42 Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 16:50:11 -0500 Subject: [PATCH 5/9] Revert "Put secrets in another file." This reverts commit 47afc2ad8c6337d20e0d5c41d578f46b704419c7. --- inc/instance-config.secret.php.EXAMPLE | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 inc/instance-config.secret.php.EXAMPLE diff --git a/inc/instance-config.secret.php.EXAMPLE b/inc/instance-config.secret.php.EXAMPLE deleted file mode 100644 index 1c6e7c23..00000000 --- a/inc/instance-config.secret.php.EXAMPLE +++ /dev/null @@ -1,24 +0,0 @@ - Date: Sun, 17 Jan 2021 16:50:35 -0500 Subject: [PATCH 6/9] Revert "Remove secrets, require `instance-config.secret.php`" This reverts commit 46d987efdccc07ce43a87f61e3b50f5bec0278da. --- .gitignore | 3 --- inc/instance-config.php | 17 +++++++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 635c426b..493d4027 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,3 @@ stylesheets/fonts #Images from twemoji js/twemoji/16x16/ - -#Secrets -*.secret.php \ No newline at end of file diff --git a/inc/instance-config.php b/inc/instance-config.php index 0f74d2a5..ccf56fba 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -8,10 +8,6 @@ * You can copy values from config.php (defaults) and paste them here. */ -if (file_exists("instance-config.secret.php")) { - require_once "instance-config.secret.php"; -} - /* * Front page configurations. */ @@ -71,7 +67,19 @@ $config['custom_categories'] = array( ), ); +/* + * Database and site wide configurations + */ + +$config['db']['server'] = 'localhost'; +$config['db']['database'] = 'lainchan'; +$config['db']['prefix'] = ''; +$config['db']['user'] = 'lainchan'; +$config['db']['password'] = ''; + + $config['cookies']['mod'] = 'mod'; +$config['cookies']['salt'] = 'MGYwNjhlNjU5Y2QxNWU3YjQ3MzQ1Yj'; $config['flood_time'] = 0; $config['flood_time_ip'] = 0; @@ -88,6 +96,7 @@ $config['threads_per_page'] = 10; $config['max_pages'] = 36; $config['threads_preview'] = 5; $config['root'] = '/'; +$config['secure_trip_salt'] = 'ODQ2NDM0ODlmMmRhNzk2M2EyNjJlOW'; //Banners $config['url_banner'] = '/banners.php'; From d7f0e8a7f11457bd5bf01e3451643dbf6624d76f Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 16:10:56 -0500 Subject: [PATCH 7/9] Add styles, addresses #38 --- inc/instance-config.php | 6 ++ stylesheets/anons_dark_red.css | 150 +++++++++++++++++++++++++++ stylesheets/demain_dark.css | 182 +++++++++++++++++++++++++++++++++ stylesheets/demain_light.css | 182 +++++++++++++++++++++++++++++++++ stylesheets/temp_dark.css | 103 +++++++++++++++++++ stylesheets/temp_dark_red.css | 101 ++++++++++++++++++ stylesheets/tomorrow.css | 115 +++++++++++++++++++++ 7 files changed, 839 insertions(+) create mode 100644 stylesheets/anons_dark_red.css create mode 100644 stylesheets/demain_dark.css create mode 100644 stylesheets/demain_light.css create mode 100644 stylesheets/temp_dark.css create mode 100644 stylesheets/temp_dark_red.css create mode 100644 stylesheets/tomorrow.css diff --git a/inc/instance-config.php b/inc/instance-config.php index c70eadee..a95c26cf 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -284,6 +284,12 @@ $config['stylesheets']['Notsuba'] = 'notsuba.css'; $config['stylesheets']['Photon'] = 'photon.css'; $config['stylesheets']['Szalet'] = 'szalet.css'; $config['stylesheets']['Tsuki'] = 'tsuki.css'; +$config['stylesheets']['DemainLight'] = 'demain_light.css'; +$config['stylesheets']['DemainDark'] = 'demain_dark.css'; +$config['stylesheets']['TempDark'] = 'temp_dark.css'; +$config['stylesheets']['TempDarkRed'] = 'temp_dark_red.css'; +$config['stylesheets']['Tomorrow'] = 'tomorrow.css'; +$config['stylesheets']['AnonsDarkRed'] = 'anons_dark_red.css'; $config['default_stylesheet'] = array('Dark Red', $config['stylesheets']['Dark Red']); /* diff --git a/stylesheets/anons_dark_red.css b/stylesheets/anons_dark_red.css new file mode 100644 index 00000000..d8681ec4 --- /dev/null +++ b/stylesheets/anons_dark_red.css @@ -0,0 +1,150 @@ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} +/* Link colors */ +a:link, a:visited, .intro a.email span.name { + color: #81a2be; +} +a:hover, .intro a.post_no:hover { + color: #cc6666; +} +/* Board title and subtitle */ +header div.subtitle, h1 { + color: indianred; +} +/* Post number*/ +a.post_no { + color: #c5c8c6; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #282A2E; + border-color: #373b41; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #282A2E; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #5f89ac; +} +.intro span.subject { + color: #b294bb; +} +/* Greentext */ +span.quote { + color: #b5bd68 +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #373b41; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #373b41; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #1d1f21; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #1d1f21; + -moz-box-shadow: 0 0 10px #1d1f21; + -webkit-box-shadow: 0 0 10px #1d1f21; + box-shadow: 0 0 10px #1d1f21; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #81a2be!important;; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #81a2be; +} +div.pages a.selected { + color: #cc6666; +} +hr { + border-color: #373b41; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #cc6666; +} +table.modlog tr th { + background: #1d1f21; +} + +/* options.js */ +#options_div, #alert_div { + background: #151515; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #151515; +} +/* Red text */ +span.heading { + color: indianred; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} +/* name */ +.intro span.name { + color: #5f89ac; +} +/* tripcode */ +.intro span.trip { + color: #8abeb7; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner {background-color:#9988ee;} +#quick-reply th, #quick-reply td {background-color:#1F1F1F;} +#quick-reply table {border-color:#373b41} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* b5bd68*/ diff --git a/stylesheets/demain_dark.css b/stylesheets/demain_dark.css new file mode 100644 index 00000000..18ccb05d --- /dev/null +++ b/stylesheets/demain_dark.css @@ -0,0 +1,182 @@ +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* General */ +body { + background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #4c4c4c; + font-size: 11pt; + font-family: liberation.sans +} +/* Link colors */ +a:link, +a:visited, +.intro a.email span.name { + color: #477085; +} +a:hover, +.intro a.post_no:hover { + color: #5d6678; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: #d93f42; +} +/* Post number*/ +a.post_no { + color: #477085; +} +/* "Top bar" of the replies*/ +p.intro { + background: #e3e7e8; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #e9eced; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #477085; +} +.intro span.subject { + color: #6b7a1e; +} +/* Greentext */ +span.quote { + color: #6b7a1e +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, +.thread.grid-li.grid-size-large:hover { + background-color: #e9eced; + border: 1px solid #cccccc; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #e9eced; + color: #4c4c4c; + border: 1px solid #cccccc; +} +/* Input fields */ +textarea, +input:not([type="file"]):not([type="checkbox"]), +[type="submit"] { + color: #4c4c4c; + background: #e9eced; + border: 1px double #cccccc; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, +input:not([type="file"]):not([type="checkbox"]):focus, +[type="submit"]:hover { + border: 1px solid #d5dada; + -moz-box-shadow: 0 0 10px #d5dada; + -webkit-box-shadow: 0 0 10px #d5dada; + box-shadow: 0 0 10px #d5dada; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #e9eced; + border-color: #cccccc!important; + ; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #e9eced; + border-color: #cccccc; +} +div.pages a.selected { + color: #5d6678; +} +hr { + border-color: #cccccc; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #477085; +} +table.modlog tr th { + background: #e9eced; +} + +/* options.js */ +#options_div, +#alert_div { + background: #e9eced; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #e9eced; +} +/* Red text */ +span.heading { + color: #d93f42; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #617d6f; +} +/* name */ +.intro span.name { + color: #4c4c4c; +} +/* tripcode */ +.intro span.trip { + color: #5d6678; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner { + background-color: #477085; +} +#quick-reply th, +#quick-reply td { + background-color: #d5dada; +} +#quick-reply table { + border-color: #cccccc +} +/* Buggy shit */ +div.post.reply div.body a { + color: #477085; + text-decoration: none; +} diff --git a/stylesheets/demain_light.css b/stylesheets/demain_light.css new file mode 100644 index 00000000..18ccb05d --- /dev/null +++ b/stylesheets/demain_light.css @@ -0,0 +1,182 @@ +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* General */ +body { + background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #4c4c4c; + font-size: 11pt; + font-family: liberation.sans +} +/* Link colors */ +a:link, +a:visited, +.intro a.email span.name { + color: #477085; +} +a:hover, +.intro a.post_no:hover { + color: #5d6678; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: #d93f42; +} +/* Post number*/ +a.post_no { + color: #477085; +} +/* "Top bar" of the replies*/ +p.intro { + background: #e3e7e8; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #e9eced; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #477085; +} +.intro span.subject { + color: #6b7a1e; +} +/* Greentext */ +span.quote { + color: #6b7a1e +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, +.thread.grid-li.grid-size-large:hover { + background-color: #e9eced; + border: 1px solid #cccccc; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #e9eced; + color: #4c4c4c; + border: 1px solid #cccccc; +} +/* Input fields */ +textarea, +input:not([type="file"]):not([type="checkbox"]), +[type="submit"] { + color: #4c4c4c; + background: #e9eced; + border: 1px double #cccccc; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, +input:not([type="file"]):not([type="checkbox"]):focus, +[type="submit"]:hover { + border: 1px solid #d5dada; + -moz-box-shadow: 0 0 10px #d5dada; + -webkit-box-shadow: 0 0 10px #d5dada; + box-shadow: 0 0 10px #d5dada; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #e9eced; + border-color: #cccccc!important; + ; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #e9eced; + border-color: #cccccc; +} +div.pages a.selected { + color: #5d6678; +} +hr { + border-color: #cccccc; +} +div.boardlist { + color: #81a2be; + font-size: 14px; +} +div.boardlist a { + color: #477085; +} +table.modlog tr th { + background: #e9eced; +} + +/* options.js */ +#options_div, +#alert_div { + background: #e9eced; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #e9eced; +} +/* Red text */ +span.heading { + color: #d93f42; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #617d6f; +} +/* name */ +.intro span.name { + color: #4c4c4c; +} +/* tripcode */ +.intro span.trip { + color: #5d6678; +} +/* Quick reply */ +/* Quick reply banner */ +div.banner { + background-color: #477085; +} +#quick-reply th, +#quick-reply td { + background-color: #d5dada; +} +#quick-reply table { + border-color: #cccccc +} +/* Buggy shit */ +div.post.reply div.body a { + color: #477085; + text-decoration: none; +} diff --git a/stylesheets/temp_dark.css b/stylesheets/temp_dark.css new file mode 100644 index 00000000..c68980d4 --- /dev/null +++ b/stylesheets/temp_dark.css @@ -0,0 +1,103 @@ +@-moz-document domain("leftypol.org") { +/* Bunker Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #FFB300!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #acacac; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #117743; +} +div.pages a.selected { + color: #ff0000; +} +/* Thread separators */ +hr { + border-color: #117743; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #FFB300; +} +a:link:hover { + color: #d00; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #117743; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #117743; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #07371F; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #117743; + -moz-box-shadow: 0 0 10px #117743; + -webkit-box-shadow: 0 0 10px #117743; + box-shadow: 0 0 10px #117743; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #34ED3A; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #117743; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); +} +/* Buggy shit */ +div.post.reply div.body a { + color: #ff0000; + text-decoration: none; +} +} diff --git a/stylesheets/temp_dark_red.css b/stylesheets/temp_dark_red.css new file mode 100644 index 00000000..df80a931 --- /dev/null +++ b/stylesheets/temp_dark_red.css @@ -0,0 +1,101 @@ +/* Red Bunker Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #ffd700!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #acacac; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #cd0000; +} +div.pages a.selected { + color: #ff0000; +} +/* Thread separators */ +hr { + border-color: #CD0000; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #ffd700; +} +a:link:hover { + color: #d00; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #cd0000; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #cd0000; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #07371F; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #cd0000; + -moz-box-shadow: 0 0 10px #cd0000; + -webkit-box-shadow: 0 0 10px #cd0000; + box-shadow: 0 0 10px #cd0000; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #ffd700; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #cd0000; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); +} +/* Buggy shit */ +div.post.reply div.body a { + color: #ff0000; + text-decoration: none; +} diff --git a/stylesheets/tomorrow.css b/stylesheets/tomorrow.css new file mode 100644 index 00000000..b3f95226 --- /dev/null +++ b/stylesheets/tomorrow.css @@ -0,0 +1,115 @@ +/* Tomorrow Theme for Leftypol.org */ +/* General */ +body { + background: #1d1f21 url('img/fade-yotsuba.png') repeat-x 50% 0%; + color: #ACACAC; +} + +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #81a2be!important; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Board links */ +div.boardlist { + color: #81a2be; + font-size: 14px; +} + +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #81a2be; +} +div.pages a.selected { + color: #cc6666; +} +/* Thread separators */ +hr { + border-color: #373b41; +} + +/* Link colors, might or might not work */ +a:link, a:visited, .intro a.email span.name { + color: #81a2be; +} +a:link:hover { + color: #cc6666; +} + +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, .thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small, .thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large, .thread.grid-li.grid-size-large:hover { + background-color: #282A2E; + border: 1px solid #373b41; +} + +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #373b41; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #1d1f21; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #1d1f21; + -moz-box-shadow: 0 0 10px #1d1f21; + -webkit-box-shadow: 0 0 10px #1d1f21; + box-shadow: 0 0 10px #1d1f21; +} + +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} + +/* name */ +.intro span.name { + color: #5f89ac; +} + +/* tripcode */ +.intro span.trip { + color: #8abeb7; +} + +/* Replies */ +/* Background color and green border */ +div.post.reply { + background: #282A2E; + border-color: #373b41; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Highlighted replies */ +div.post.reply.highlighted { + background: #282A2E; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} From c79b3b1fb4555c1708f417242770d8f9b4c9273a Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 16:17:37 -0500 Subject: [PATCH 8/9] Add bunker-like CSS them, adresses #145 --- inc/instance-config.php | 1 + stylesheets/bunker_like.css | 175 ++++++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 stylesheets/bunker_like.css diff --git a/inc/instance-config.php b/inc/instance-config.php index a95c26cf..c752938f 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -290,6 +290,7 @@ $config['stylesheets']['TempDark'] = 'temp_dark.css'; $config['stylesheets']['TempDarkRed'] = 'temp_dark_red.css'; $config['stylesheets']['Tomorrow'] = 'tomorrow.css'; $config['stylesheets']['AnonsDarkRed'] = 'anons_dark_red.css'; +$config['stylesheets']['BunkerLike'] = 'bunker_like.css'; $config['default_stylesheet'] = array('Dark Red', $config['stylesheets']['Dark Red']); /* diff --git a/stylesheets/bunker_like.css b/stylesheets/bunker_like.css new file mode 100644 index 00000000..65de9e9b --- /dev/null +++ b/stylesheets/bunker_like.css @@ -0,0 +1,175 @@ +body { + background: #1D1F21; + color: #ACACAC; + font-family: Courier, monospace; + font-size: 13px; +} + +/* LINKS */ +a, a:link, a:visited, .intro a.email span.name { + color: #FFB300; + text-decoration: none; +} +a:link:hover, a:visited:hover { + color: #FFB300; + text-shadow: 0px 0px 5px #117743; +} +div.pages a.selected { + color: #FFB300; +} + +/* INTRO */ +h1, div.title, header div.subtitle { + color: #663E11; + font-family: Courier, monospace; +} +h1 { + font-size: 24pt; + font-weight: normal; + letter-spacing: 0px; +} +header div.subtitle { + font-size: 12pt; +} + +/* FORMS AND BUTTONS */ +div.banner { + background-color: inherit; + color: #ACACAC; +} +form table { + border: 1px dashed #117743; + padding-right: 1px; +} +form table tr th { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; +} +input[type="text"], input[type="password"], textarea, select { + border: 1px double #07371F; + border-radius: 5px; + background: #282A2E; + color: #ACACAC; + font-family: Courier, monospace; +} +input[type="text"]:focus, input[type="password"]:focus, textarea:focus { + box-shadow: 0px 0px 5px 2px #117743; +} +input[type="submit"] { + border: 3px double #07371F; + border-radius: 5px; + background: #16171A; + color: #ACACAC; + font-family: Courier, monospace; + font-weight: bold; +} +.dropzone { + background: #16171A; + border: 3px double #07371F; + color: #ACACAC; +} +.dropzone .file-hint { + color: #ACACAC; + font-weight: bold; +} +#quick-reply table { + background: #1D1F21 !important; +} +fieldset { + border: 1px dashed #117743; +} + +/* POST IDENTIFIERS */ +.intro span.subject { + color: #34ED3A; +} +.intro span.name { + color: #117743; +} +.intro span.trip { + color: #117743; +} +.intro a.capcode, p.intro a.nametag { + color: #FF0000; + font-weight: bold; +} +.intro a.email, p.intro a.email span.name, p.intro a.email:hover, p.intro a.email:hover span.name { + color: #34ED97; +} +.intro time { + font-weight: bold; +} +.intro a.post_no { + color: #ACACAC; + font-weight: bold; +} + +/* POST BOXES */ +div.post.reply { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; +} +div.post.reply.highlighted { + background: rgba(59, 22, 43, 0.4); + border: 1px solid #117743; + border-radius: 5px; +} + +/* POST CONTENT */ +div.post.reply div.body a { + color: #FFB300; +} +.quote { + color: #789922; +} + +/* BARS */ +.bar { + background-color: #151515; +} +.bar.top { + border-bottom: 1px solid #B0790A; +} +.bar.bottom { + border-top: 1px solid #B0790A; +} +div.boardlist { + color: #ACACAC; +} +hr { + border: none; + border-top: 1pt solid #117743; +} + +/* CATALOG */ +.theme-catalog h1 { + color: #ACACAC; + font-size: 18pt; + font-weight: bold; +} +.theme-catalog h1 a { + font-weight: normal; +} +.theme-catalog div.thread, .theme-catalog div.thread:hover { + background: #282A2E; + border: 1px solid #117743; + border-radius: 5px; + font-size: 10pt; +} + +/* OPTIONS */ +#options_div, #alert_div { + background: #1D1F21; + border: 1px dashed #117743; +} +#options_tablist { + border-right: 1px dashed #117743; +} +.options_tab_icon { + color: #ACACAC; +} +.options_tab_icon.active { + color: #FFB300; +} From aa4d90328e8922de98773bae85225e367db3ab9b Mon Sep 17 00:00:00 2001 From: Dedushka Date: Sun, 17 Jan 2021 17:01:32 -0500 Subject: [PATCH 9/9] Add updated demain stylesheets --- stylesheets/demain_dark.css | 382 ++++++++++++++++++---------------- stylesheets/demain_light.css | 389 +++++++++++++++++++---------------- 2 files changed, 407 insertions(+), 364 deletions(-) diff --git a/stylesheets/demain_dark.css b/stylesheets/demain_dark.css index 18ccb05d..cfa60f78 100644 --- a/stylesheets/demain_dark.css +++ b/stylesheets/demain_dark.css @@ -1,182 +1,200 @@ -/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ -/* Work in progress*/ -/* General */ -/* General */ -body { - background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; - color: #4c4c4c; - font-size: 11pt; - font-family: liberation.sans -} -/* Link colors */ -a:link, -a:visited, -.intro a.email span.name { - color: #477085; -} -a:hover, -.intro a.post_no:hover { - color: #5d6678; -} -/* Board title and subtitle */ -header div.subtitle, -h1 { - color: #d93f42; -} -/* Post number*/ -a.post_no { - color: #477085; -} -/* "Top bar" of the replies*/ -p.intro { - background: #e3e7e8; - border-color: #cccccc; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -/* Replies */ -/* Background color and border */ -div.post.reply { - background: #e9eced; - border-color: #cccccc; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -div.post.reply.highlighted { - background: #d5dada; - border-color: #477085; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -div.post.reply div.body a { - color: #477085; -} -.intro span.subject { - color: #6b7a1e; -} -/* Greentext */ -span.quote { - color: #6b7a1e -} -/* Catalog grids */ -/* Background color and green border */ -.thread.grid-li.grid-size-vsmall, -.thread.grid-li.grid-size-vsmall:hover, -.thread.grid-li.grid-size-small, -.thread.grid-li.grid-size-small:hover, -.thread.grid-li.grid-size-large, -.thread.grid-li.grid-size-large:hover { - background-color: #e9eced; - border: 1px solid #cccccc; -} -/* Posting form */ -/* Field names */ -form table tr th { - background: #e9eced; - color: #4c4c4c; - border: 1px solid #cccccc; -} -/* Input fields */ -textarea, -input:not([type="file"]):not([type="checkbox"]), -[type="submit"] { - color: #4c4c4c; - background: #e9eced; - border: 1px double #cccccc; - border-radius: 5px; -} -/* Input fields, focused */ -textarea:focus, -input:not([type="file"]):not([type="checkbox"]):focus, -[type="submit"]:hover { - border: 1px solid #d5dada; - -moz-box-shadow: 0 0 10px #d5dada; - -webkit-box-shadow: 0 0 10px #d5dada; - box-shadow: 0 0 10px #d5dada; -} -/* Top bar */ -/* Background, border and fade */ -.bar { - background-color: #e9eced; - border-color: #cccccc!important; - ; - /* comment these out to remove the fade */ - /* - -moz-box-shadow: 0 0 40px #FFB300; - -webkit-box-shadow: 0 0 40px #FFB300; - box-shadow: 0 0 40px #FFB300; - */ -} -/* Bottom bar, not visible in catalog mode */ -div.pages { - background: #e9eced; - border-color: #cccccc; -} -div.pages a.selected { - color: #5d6678; -} -hr { - border-color: #cccccc; -} -div.boardlist { - color: #81a2be; - font-size: 14px; -} -div.boardlist a { - color: #477085; -} -table.modlog tr th { - background: #e9eced; -} - -/* options.js */ -#options_div, -#alert_div { - background: #e9eced; -} - -.desktop-style div.boardlist:nth-child(1) { - background-color: #e9eced; -} -/* Red text */ -span.heading { - color: #d93f42; -} -/* Buggy shit */ -div.post.reply div.body a { - color: #5f89ac; - text-decoration: none; -} -/* OP */ -/* Subject */ -.intro span.subject { - color: #617d6f; -} -/* name */ -.intro span.name { - color: #4c4c4c; -} -/* tripcode */ -.intro span.trip { - color: #5d6678; -} -/* Quick reply */ -/* Quick reply banner */ -div.banner { - background-color: #477085; -} -#quick-reply th, -#quick-reply td { - background-color: #d5dada; -} -#quick-reply table { - border-color: #cccccc -} -/* Buggy shit */ -div.post.reply div.body a { - color: #477085; - text-decoration: none; -} +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* Main page */ +legend { + background: indianred +} +div.module, div.ban { + background: #1d1f21;; + border: 1px solid #373b41; + max-width: 700px; + margin: 30px auto; +} +/* Text */ +body { + background: #1d1f21; + color: #ACACAC; + font-size: 14pt; + font-family: "LiberationSansRegular"; +} +/* Link colors */ +a:link, a:visited, .intro a.email span.name { + color: #81a2be; +} +a:hover, +.intro a.post_no:hover { + color: #cc6666; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: indianred; + font-size: 20pt; + font-family: "LiberationSansRegular"; +} +header div.subtitle { + font-size: 10pt; +} +/* Post number*/ +a.post_no { + color: #c5c8c6; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #282A2E; + border-color: #373b41; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #1b1c21; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #5f89ac; +} +.intro span.subject { + color: #b294bb; +} +/* Greentext */ +span.quote { + color: #b5bd68 +} +/* Orangetext */ +span.orangeQuote { + color: #b294bb +} +/* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-large { + background-color: #282A2E; + border: 1px solid #373b41; +} +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large:hover { + background: #1b1c21; + border-color: #5f89ac; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #282A2E; + color: #ACACAC; + border: 1px solid #373b41; +} +/* Input fields */ +textarea, input:not([type="file"]):not([type="checkbox"]), [type="submit"] { + color: #ACACAC; + background: #282A2E; + border: 1px double #1d1f21; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, input:not([type="file"]):not([type="checkbox"]):focus, [type="submit"]:hover { + border: 1px solid #1d1f21; + -moz-box-shadow: 0 0 10px #1d1f21; + -webkit-box-shadow: 0 0 10px #1d1f21; + box-shadow: 0 0 10px #1d1f21; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #151515; + border-color: #81a2be!important;; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #151515; + border-color: #81a2be; +} +div.pages a.selected { + color: #cc6666; +} +hr { + border-color: #373b41; +} +div.boardlist { + color: #81a2be; + font-size: 14pt; +} +div.boardlist a { + color: #cc6666; +} +table.modlog tr th { + background: #1d1f21; +} +/* options.js */ +#options_div, #alert_div { + background: #151515; +} +.options_tab_icon { + color: gray; +} +.desktop-style div.boardlist:nth-child(1) { + background-color: #151515; +} +/* Red text */ +span.heading { + color: indianred; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} +/* name */ +.intro span.name { + color: #5f89ac; +} +.desktop-style div.boardlist:nth-child(1) { + background-color: #151515; +} +/* Red text */ +span.heading { + color: indianred; +} +/* Upper part of a post */ +div.post p { + display: block; + margin: 0; + line-height: 1.16em; + font-size: 13pt; + min-height: 1.16em; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #5f89ac; + text-decoration: none; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #b294bb; +} +/* name */ +.intro span.name { + color: #5f89ac; +} diff --git a/stylesheets/demain_light.css b/stylesheets/demain_light.css index 18ccb05d..793fa94b 100644 --- a/stylesheets/demain_light.css +++ b/stylesheets/demain_light.css @@ -1,182 +1,207 @@ -/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ -/* Work in progress*/ -/* General */ -/* General */ -body { - background: #e9eced url('img/fade-yotsuba.png') repeat-x 50% 0%; - color: #4c4c4c; - font-size: 11pt; - font-family: liberation.sans -} -/* Link colors */ -a:link, -a:visited, -.intro a.email span.name { - color: #477085; -} -a:hover, -.intro a.post_no:hover { - color: #5d6678; -} -/* Board title and subtitle */ -header div.subtitle, -h1 { - color: #d93f42; -} -/* Post number*/ -a.post_no { - color: #477085; -} -/* "Top bar" of the replies*/ -p.intro { - background: #e3e7e8; - border-color: #cccccc; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -/* Replies */ -/* Background color and border */ -div.post.reply { - background: #e9eced; - border-color: #cccccc; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -div.post.reply.highlighted { - background: #d5dada; - border-color: #477085; - border-style: solid; - border-width: 0.8px; - border-radius: 5px; -} -div.post.reply div.body a { - color: #477085; -} -.intro span.subject { - color: #6b7a1e; -} -/* Greentext */ -span.quote { - color: #6b7a1e -} -/* Catalog grids */ -/* Background color and green border */ -.thread.grid-li.grid-size-vsmall, -.thread.grid-li.grid-size-vsmall:hover, -.thread.grid-li.grid-size-small, -.thread.grid-li.grid-size-small:hover, -.thread.grid-li.grid-size-large, -.thread.grid-li.grid-size-large:hover { - background-color: #e9eced; - border: 1px solid #cccccc; -} -/* Posting form */ -/* Field names */ -form table tr th { - background: #e9eced; - color: #4c4c4c; - border: 1px solid #cccccc; -} -/* Input fields */ -textarea, -input:not([type="file"]):not([type="checkbox"]), -[type="submit"] { - color: #4c4c4c; - background: #e9eced; - border: 1px double #cccccc; - border-radius: 5px; -} -/* Input fields, focused */ -textarea:focus, -input:not([type="file"]):not([type="checkbox"]):focus, -[type="submit"]:hover { - border: 1px solid #d5dada; - -moz-box-shadow: 0 0 10px #d5dada; - -webkit-box-shadow: 0 0 10px #d5dada; - box-shadow: 0 0 10px #d5dada; -} -/* Top bar */ -/* Background, border and fade */ -.bar { - background-color: #e9eced; - border-color: #cccccc!important; - ; - /* comment these out to remove the fade */ - /* - -moz-box-shadow: 0 0 40px #FFB300; - -webkit-box-shadow: 0 0 40px #FFB300; - box-shadow: 0 0 40px #FFB300; - */ -} -/* Bottom bar, not visible in catalog mode */ -div.pages { - background: #e9eced; - border-color: #cccccc; -} -div.pages a.selected { - color: #5d6678; -} -hr { - border-color: #cccccc; -} -div.boardlist { - color: #81a2be; - font-size: 14px; -} -div.boardlist a { - color: #477085; -} -table.modlog tr th { - background: #e9eced; -} - -/* options.js */ -#options_div, -#alert_div { - background: #e9eced; -} - -.desktop-style div.boardlist:nth-child(1) { - background-color: #e9eced; -} -/* Red text */ -span.heading { - color: #d93f42; -} -/* Buggy shit */ -div.post.reply div.body a { - color: #5f89ac; - text-decoration: none; -} -/* OP */ -/* Subject */ -.intro span.subject { - color: #617d6f; -} -/* name */ -.intro span.name { - color: #4c4c4c; -} -/* tripcode */ -.intro span.trip { - color: #5d6678; -} -/* Quick reply */ -/* Quick reply banner */ -div.banner { - background-color: #477085; -} -#quick-reply th, -#quick-reply td { - background-color: #d5dada; -} -#quick-reply table { - border-color: #cccccc -} -/* Buggy shit */ -div.post.reply div.body a { - color: #477085; - text-decoration: none; -} +/* Demain_light theme for leftypol.org adapted from Seaweed theme for 4chan*/ +/* Work in progress*/ +/* General */ +/* Main page */ +legend { + background: #477085 +} +div.module, div.ban { + background: #e9eced; + border: 1px solid #cccccc; + max-width: 700px; + margin: 30px auto; +} +/* Text */ +body { + background: #e9eced; + color: #4c4c4c; + font-size: 13pt; + font-family: "Open Sans", sans-serif; +} +/* Link colors */ +a:link, +a:visited, +.intro a.email span.name { + color: #477085; +} +a:hover, +.intro a.post_no:hover { + color: #5d6678; +} +/* Board title and subtitle */ +header div.subtitle, +h1 { + color: #d93f42; + font-size: 20pt; + font-family: "Open Sans", sans-serif; +} +header div.subtitle { + font-size: 10pt; +} +/* Post number*/ +a.post_no { + color: #477085; +} +/* "Top bar" of the replies*/ +p.intro { + background: #e3e7e8; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Replies */ +/* Background color and border */ +div.post.reply { + background: #e9eced; + border-color: #cccccc; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply.highlighted { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +div.post.reply div.body a { + color: #477085; +} +.intro span.subject { + color: #6b7a1e; +} +/* Upper part of a post */ +div.post p { + display: block; + margin: 0; + line-height: 1.16em; + font-size: 13pt; + min-height: 1.16em; +} +/* Greentext */ +span.quote { + color: #6b7a1e +} +/* Orangetext */ +orangeText { + color: #ffb854 +} +* Catalog grids */ +/* Background color and green border */ +.thread.grid-li.grid-size-vsmall, +.thread.grid-li.grid-size-small, +.thread.grid-li.grid-size-large { + background-color: #e9eced; + border: 1px solid #cccccc; +} +.thread.grid-li.grid-size-vsmall:hover, +.thread.grid-li.grid-size-small:hover, +.thread.grid-li.grid-size-large:hover { + background: #d5dada; + border-color: #477085; + border-style: solid; + border-width: 0.8px; + border-radius: 5px; +} +/* Posting form */ +/* Field names */ +form table tr th { + background: #e9eced; + color: #4c4c4c; + border: 1px solid #cccccc; +} +/* Input fields */ +textarea, +input:not([type="file"]):not([type="checkbox"]), +[type="submit"] { + color: #4c4c4c; + background: #e9eced; + border: 1px double #cccccc; + border-radius: 5px; +} +/* Input fields, focused */ +textarea:focus, +input:not([type="file"]):not([type="checkbox"]):focus, +[type="submit"]:hover { + border: 1px solid #d5dada; + -moz-box-shadow: 0 0 10px #d5dada; + -webkit-box-shadow: 0 0 10px #d5dada; + box-shadow: 0 0 10px #d5dada; +} +/* Top bar */ +/* Background, border and fade */ +.bar { + background-color: #e9eced; + border-color: #cccccc!important; + ; + /* comment these out to remove the fade */ + /* + -moz-box-shadow: 0 0 40px #FFB300; + -webkit-box-shadow: 0 0 40px #FFB300; + box-shadow: 0 0 40px #FFB300; + */ +} +/* Bottom bar, not visible in catalog mode */ +div.pages { + background: #e9eced; + border-color: #cccccc; +} +div.pages a.selected { + color: #5d6678; +} +hr { + border-color: #cccccc; +} +div.boardlist { + color: #81a2be; + font-size: 14pt; +} +div.boardlist a { + color: #477085; +} +table.modlog tr th { + background: #e9eced; +} + +/* options.js */ +#options_div, +#alert_div { + background: #e9eced; +} + +.desktop-style div.boardlist:nth-child(1) { + background-color: #e9eced; +} +/* Red text */ +span.heading { + color: #d93f42; +} +/* OP */ +/* Subject */ +.intro span.subject { + color: #617d6f; +} +/* name */ +.intro span.name { + color: #4c4c4c; +} +/* tripcode */ +.intro span.trip { + color: #5d6678; +} +/* Fix OP file bleeding out of the border*/ +.post-image { + margin: 37px +} +/* Quick reply */ +/* Quick reply banner */ +div.banner { + background-color: #477085; +} +/* Buggy shit */ +div.post.reply div.body a { + color: #477085; + text-decoration: none; +}