Fixing and testing themes.

This commit is contained in:
Ghommie
2019-09-11 23:30:04 +02:00
parent 47b673a249
commit cbf041663f
10 changed files with 406 additions and 415 deletions

View File

@@ -4,14 +4,14 @@
#define COLOR_INPUT_ENABLED "#D3B5B5" #define COLOR_INPUT_ENABLED "#D3B5B5"
#define COLOR_DARKMODE_INFO_BUTTONS_BG "#40628A" #define COLOR_DARKMODE_INFO_BUTTONS_BG "#40628A"
#define COLOR_DARKMODE_ISSUE_BUTTON_BG "#CE4242" #define COLOR_DARKMODE_ISSUE_BUTTON_BG "#A92C2C"
#define COLOR_DARKMODE_BACKGROUND "#202020" #define COLOR_DARKMODE_BACKGROUND "#272727"
#define COLOR_DARKMODE_DARKBACKGROUND "#171717" #define COLOR_DARKMODE_DARKBACKGROUND "#242424"
#define COLOR_DARKMODE_TEXT "#A4BAD6" #define COLOR_DARKMODE_TEXT "#E0E0E0"
#define COLOR_WHITEMODE_INFO_BUTTONS_BG "#90B3DD" #define COLOR_WHITEMODE_INFO_BUTTONS_BG "#90B3DD"
#define COLOR_WHITEMODE_ISSUE_BUTTON_BG "#EF7F7F" #define COLOR_WHITEMODE_ISSUE_BUTTON_BG "#EF7F7F"
#define COLOR_WHITEMODE_BACKGROUND "F2F2F2" #define COLOR_WHITEMODE_BACKGROUND "#F0F0F0"
#define COLOR_WHITEMODE_DARKBACKGROUND "#E6E6E6" #define COLOR_WHITEMODE_DARKBACKGROUND "#E6E6E6"
#define COLOR_WHITEMODE_TEXT "#000000" #define COLOR_WHITEMODE_TEXT "#000000"

View File

@@ -571,6 +571,7 @@ GLOBAL_LIST_EMPTY(asset_datums)
"fontawesome-webfont.woff" = 'tgui/assets/fonts/fontawesome-webfont.woff', "fontawesome-webfont.woff" = 'tgui/assets/fonts/fontawesome-webfont.woff',
"font-awesome.css" = 'code/modules/goonchat/browserassets/css/font-awesome.css', "font-awesome.css" = 'code/modules/goonchat/browserassets/css/font-awesome.css',
"browserOutput.css" = 'code/modules/goonchat/browserassets/css/browserOutput.css', "browserOutput.css" = 'code/modules/goonchat/browserassets/css/browserOutput.css',
"browserOutput_dark.css" = 'code/modules/goonchat/browserassets/css/browserOutput_dark.css',
) )
/datum/asset/spritesheet/goonchat /datum/asset/spritesheet/goonchat

View File

@@ -16,7 +16,7 @@ Thanks to spacemaniac and mcdonald for help with the JS side of this.
//Main windows //Main windows
winset(src, "infowindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "infowindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "info", "background-color = [COLOR_WHITEMODE_BACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "info", "background-color = [COLOR_WHITEMODE_BACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "browseroutput", "background-color = [COLOR_DARKMODE_INFO_BUTTONS_BG];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "browseroutput", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "outputwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "outputwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "mainwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND]") winset(src, "mainwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND]")
winset(src, "split", "background-color = [COLOR_WHITEMODE_BACKGROUND]") winset(src, "split", "background-color = [COLOR_WHITEMODE_BACKGROUND]")
@@ -30,7 +30,9 @@ Thanks to spacemaniac and mcdonald for help with the JS side of this.
//Status and verb tabs //Status and verb tabs
winset(src, "output", "background-color = [COLOR_WHITEMODE_BACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "output", "background-color = [COLOR_WHITEMODE_BACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "statwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "statwindow", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "stat", "background-color = [COLOR_WHITEMODE_BACKGROUND];tab-background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT];tab-text-color = [COLOR_WHITEMODE_TEXT];prefix-color = [COLOR_WHITEMODE_TEXT];suffix-color = [COLOR_WHITEMODE_TEXT]") winset(src, "stat", "background-color = [COLOR_WHITEMODE_BACKGROUND];tab-background-color = [COLOR_WHITEMODE_DARKBACKGROUND];\
text-color = [COLOR_WHITEMODE_TEXT];tab-text-color = [COLOR_WHITEMODE_TEXT];\
prefix-color = [COLOR_WHITEMODE_TEXT];suffix-color = [COLOR_WHITEMODE_TEXT]")
//Etc. //Etc.
winset(src, "say", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "say", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
winset(src, "asset_cache_browser", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]") winset(src, "asset_cache_browser", "background-color = [COLOR_WHITEMODE_DARKBACKGROUND];text-color = [COLOR_WHITEMODE_TEXT]")
@@ -54,24 +56,10 @@ Thanks to spacemaniac and mcdonald for help with the JS side of this.
//Status and verb tabs //Status and verb tabs
winset(src, "output", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]") winset(src, "output", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]")
winset(src, "statwindow", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];text-color = [COLOR_DARKMODE_TEXT]") winset(src, "statwindow", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];text-color = [COLOR_DARKMODE_TEXT]")
winset(src, "stat", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];tab-background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT];tab-text-color = [COLOR_DARKMODE_TEXT];prefix-color = [COLOR_DARKMODE_TEXT];suffix-color = [COLOR_DARKMODE_TEXT]") winset(src, "stat", "background-color = [COLOR_DARKMODE_DARKBACKGROUND];tab-background-color = [COLOR_DARKMODE_BACKGROUND];\
text-color = [COLOR_DARKMODE_TEXT];tab-text-color = [COLOR_DARKMODE_TEXT];\
prefix-color = [COLOR_DARKMODE_TEXT];suffix-color = [COLOR_DARKMODE_TEXT]")
//Etc. //Etc.
winset(src, "say", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]") winset(src, "say", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]")
winset(src, "asset_cache_browser", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]") winset(src, "asset_cache_browser", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]")
winset(src, "tooltip", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]") winset(src, "tooltip", "background-color = [COLOR_DARKMODE_BACKGROUND];text-color = [COLOR_DARKMODE_TEXT]")
/datum/asset/simple/goonchat
verify = FALSE
assets = list(
"json2.min.js" = 'code/modules/goonchat/browserassets/js/json2.min.js',
"errorHandler.js" = 'code/modules/goonchat/browserassets/js/errorHandler.js',
"browserOutput.js" = 'code/modules/goonchat/browserassets/js/browserOutput.js',
"fontawesome-webfont.eot" = 'tgui/assets/fonts/fontawesome-webfont.eot',
"fontawesome-webfont.svg" = 'tgui/assets/fonts/fontawesome-webfont.svg',
"fontawesome-webfont.ttf" = 'tgui/assets/fonts/fontawesome-webfont.ttf',
"fontawesome-webfont.woff" = 'tgui/assets/fonts/fontawesome-webfont.woff',
"font-awesome.css" = 'code/modules/goonchat/browserassets/css/font-awesome.css',
"browserOutput.css" = 'code/modules/goonchat/browserassets/css/browserOutput.css',
"browserOutput_white.css" = 'code/modules/goonchat/browserassets/css/browserOutput_white.css',
)

View File

@@ -82,11 +82,13 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("tmp/iconCache.sav")) //Cache of ico
if("setMusicVolume") if("setMusicVolume")
data = setMusicVolume(arglist(params)) data = setMusicVolume(arglist(params))
if("swaptodarkmode") if("colorPresetPost") //User just swapped color presets in their goonchat preferences. Do we do anything else?
swaptodarkmode() switch(href_list["preset"])
if("light")
owner.force_white_theme()
if("dark" || "normal")
owner.force_dark_theme()
if("swaptolightmode")
swaptolightmode()
if(data) if(data)
ehjax_send(data = data) ehjax_send(data = data)
@@ -246,10 +248,3 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("tmp/iconCache.sav")) //Cache of ico
// url_encode it TWICE, this way any UTF-8 characters are able to be decoded by the Javascript. // url_encode it TWICE, this way any UTF-8 characters are able to be decoded by the Javascript.
C << output(url_encode(url_encode(message)), "browseroutput:output") C << output(url_encode(url_encode(message)), "browseroutput:output")
/datum/chatOutput/proc/swaptolightmode() //Dark mode light mode stuff. Yell at KMC if this breaks! (See darkmode.dm for documentation)
owner.force_white_theme()
/datum/chatOutput/proc/swaptodarkmode()
owner.force_dark_theme()

View File

@@ -7,20 +7,16 @@ html, body {
padding: 0; padding: 0;
margin: 0; margin: 0;
height: 100%; height: 100%;
color: #A4BAD6; color: #000000;
} }
body { body {
background: #171717; background: #E0E0E0; /*CIT CHANGE - darkens chatbox a lil*/
font-family: Verdana, sans-serif; font-family: Verdana, sans-serif;
font-size: 9pt; font-size: 9pt;
font-color: #f0f0f0;
line-height: 1.2; line-height: 1.2;
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
word-wrap: break-word; word-wrap: break-word;
scrollbar-face-color:#1A1A1A;
scrollbar-track-color:#171717;
scrollbar-highlight-color:#171717;
} }
em { em {
@@ -60,9 +56,9 @@ img.icon {
border-radius: 10px; border-radius: 10px;
} }
a {color: #397ea5;} a {color: #0000ff;}
a.visited {color: #7c00e6;} a.visited {color: #ff00ff;}
a:visited {color: #7c00e6;} a:visited {color: #ff00ff;}
a.popt {text-decoration: none;} a.popt {text-decoration: none;}
/***************************************** /*****************************************
@@ -93,21 +89,21 @@ a.popt {text-decoration: none;}
bottom: 0; bottom: 0;
right: 0; right: 0;
padding: 8px; padding: 8px;
background: #202020; background: #d0d0d0;
text-decoration: none; text-decoration: none;
font-variant: small-caps; font-variant: small-caps;
font-size: 1.1em; font-size: 1.1em;
font-weight: bold; font-weight: bold;
color: #a4bad6; color: #333;
} }
#newMessages:hover {background: #171717;} #newMessages:hover {background: #ccc;}
#newMessages i {vertical-align: middle; padding-left: 3px;} #newMessages i {vertical-align: middle; padding-left: 3px;}
#ping { #ping {
position: fixed; position: fixed;
top: 0; top: 0;
right: 115px; right: 115px;
width: 45px; width: 45px;
background: #202020; background: #d0d0d0;
height: 30px; height: 30px;
padding: 8px 0 2px 0; padding: 8px 0 2px 0;
} }
@@ -124,19 +120,19 @@ a.popt {text-decoration: none;}
right: 0; right: 0;
} }
#userBar .subCell { #userBar .subCell {
background: #202020; background: #d0d0d0;
height: 30px; height: 30px;
padding: 5px 0; padding: 5px 0;
display: block; display: block;
color: #a4bad6; color: #333;
text-decoration: none; text-decoration: none;
line-height: 28px; line-height: 28px;
border-top: 1px solid #171717; border-top: 1px solid #b4b4b4;
} }
#userBar .subCell:hover {background: #202020;} #userBar .subCell:hover {background: #ccc;}
#userBar .toggle { #userBar .toggle {
width: 40px; width: 40px;
background: #202020; background: #ccc;
border-top: 0; border-top: 0;
float: right; float: right;
text-align: center; text-align: center;
@@ -172,7 +168,7 @@ a.popt {text-decoration: none;}
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
background: #ddd; background: #d0d0d0;
} }
.popup .close { .popup .close {
position: absolute; position: absolute;
@@ -189,7 +185,7 @@ a.popt {text-decoration: none;}
.popup .close:hover {background: #999;} .popup .close:hover {background: #999;}
.popup .head { .popup .head {
background: #999; background: #999;
color: #ddd; color: #d0d0d0;
padding: 0 10px; padding: 0 10px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
@@ -200,7 +196,7 @@ a.popt {text-decoration: none;}
} }
.popup input {border: 1px solid #999; background: #fff; margin: 0; padding: 5px; outline: none; color: #333;} .popup input {border: 1px solid #999; background: #fff; margin: 0; padding: 5px; outline: none; color: #333;}
.popup input[type=text]:hover, .popup input[type=text]:active, .popup input[type=text]:focus {border-color: green;} .popup input[type=text]:hover, .popup input[type=text]:active, .popup input[type=text]:focus {border-color: green;}
.popup input[type=submit] {padding: 5px 10px; background: #999; color: #ddd; text-transform: uppercase; font-size: 0.9em; font-weight: bold;} .popup input[type=submit] {padding: 5px 10px; background: #999; color: #d0d0d0; text-transform: uppercase; font-size: 0.9em; font-weight: bold;}
.popup input[type=submit]:hover, .popup input[type=submit]:focus, .popup input[type=submit]:active {background: #aaa; cursor: pointer;} .popup input[type=submit]:hover, .popup input[type=submit]:focus, .popup input[type=submit]:active {background: #aaa; cursor: pointer;}
.changeFont {padding: 10px;} .changeFont {padding: 10px;}
@@ -214,7 +210,7 @@ a.popt {text-decoration: none;}
/* ADMIN CONTEXT MENU */ /* ADMIN CONTEXT MENU */
.contextMenu { .contextMenu {
background-color: #ddd; background-color: #d0d0d0;
position: fixed; position: fixed;
margin: 2px; margin: 2px;
width: 150px; width: 150px;
@@ -246,9 +242,9 @@ a.popt {text-decoration: none;}
******************************************/ ******************************************/
/* MOTD */ /* MOTD */
.motd {color: #a4bad6; font-family: Verdana, sans-serif;} .motd {color: #638500; font-family: Verdana, sans-serif;}
.motd h1, .motd h2, .motd h3, .motd h4, .motd h5, .motd h6 {color: #a4bad6; text-decoration: underline;} .motd h1, .motd h2, .motd h3, .motd h4, .motd h5, .motd h6 {color: #638500; text-decoration: underline;}
.motd a, .motd a:link, .motd a:visited, .motd a:active, .motd a:hover {color: #a4bad6;} .motd a, .motd a:link, .motd a:visited, .motd a:active, .motd a:hover {color: #638500;}
/* ADD HERE FOR BOLD */ /* ADD HERE FOR BOLD */
.bold, .name, .prefix, .ooc, .looc, .adminooc, .admin, .medal, .yell {font-weight: bold;} .bold, .name, .prefix, .ooc, .looc, .adminooc, .admin, .medal, .yell {font-weight: bold;}
@@ -259,91 +255,91 @@ a.popt {text-decoration: none;}
/* OUTPUT COLORS */ /* OUTPUT COLORS */
.highlight {background: yellow;} .highlight {background: yellow;}
h1, h2, h3, h4, h5, h6 {color: #a4bad6;font-family: Georgia, Verdana, sans-serif;} h1, h2, h3, h4, h5, h6 {color: #0000ff;font-family: Georgia, Verdana, sans-serif;}
h1.alert, h2.alert {color: #a4bad6;} h1.alert, h2.alert {color: #000000;}
em {font-style: normal; font-weight: bold;} em {font-style: normal; font-weight: bold;}
.ooc {color: #cca300; font-weight: bold;} .ooc {color: #002eb8; font-weight: bold;}
.looc {color: #d8b555; font-weight: bold;} .looc {color: #6699CC; font-weight: bold;}
.antagooc {color: #ce254f; font-weight: bold;} .antagooc {color: #b8002e; font-weight: bold;}
.adminobserverooc {color: #0099cc; font-weight: bold;} .adminobserverooc {color: #0099cc; font-weight: bold;}
.adminooc {color: #3d5bc3; font-weight: bold;} .adminooc {color: #700038; font-weight: bold;}
.adminsay {color: #ff4500; font-weight: bold;} .adminsay {color: #FF4500}
.admin {color: #5975da; font-weight: bold;} .admin {color: #386aff; font-weight: bold;}
.name { font-weight: bold;} .name { font-weight: bold;}
.say {} .say {}
.deadsay {color: #e2c1ff;} .deadsay {color: #5c00e6;}
.binarysay {color: #20c20e; background-color: #000000; display: block;} .binarysay {color: #20c20e; background-color: #000000; display: block;}
.binarysay a {color: #00ff00;} .binarysay a {color: #00ff00;}
.binarysay a:active, .binarysay a:visited {color: #88ff88;} .binarysay a:active, .binarysay a:visited {color: #88ff88;}
.radio {color: #1ecc43;} .radio {color: #008000;}
.sciradio {color: #c68cfa;} .sciradio {color: #993399;}
.comradio {color: #5177ff;} .comradio {color: #948f02;}
.secradio {color: #dd3535;} .secradio {color: #a30000;}
.medradio {color: #57b8f0;} .medradio {color: #337296;}
.engradio {color: #f37746;} .engradio {color: #fb5613;}
.suppradio {color: #b88646;} .suppradio {color: #a8732b;}
.servradio {color: #6ca729;} .servradio {color: #6eaa2c;}
.syndradio {color: #8f4a4b;} .syndradio {color: #6d3f40;}
.centcomradio {color: #2681a5;} .centcomradio {color: #686868;}
.aiprivradio {color: #d65d95;} .aiprivradio {color: #ff00ff;}
.redteamradio {color: #ff4444;} .redteamradio {color: #ff0000;}
.blueteamradio {color: #3434fd;} .blueteamradio {color: #0000ff;}
.yell { font-weight: bold;} .yell { font-weight: bold;}
.alert {color: #d82020;} .alert {color: #ff0000;}
h1.alert, h2.alert {color: #99aab5;} h1.alert, h2.alert {color: #000000;}
.emote { font-style: italic;} .emote { font-style: italic;}
.selecteddna {color: #ffffff; background-color: #001B1B} .selecteddna {color: #ffffff; background-color: #001B1B}
.attack {color: #e01c1c;} .attack {color: #ff0000;}
.disarm {color: #b42525;} .disarm {color: #990000;}
.passive {color: #a00f0f;} .passive {color: #660000;}
.userdanger {color: #c51e1e; font-weight: bold; font-size: 24px;} .userdanger {color: #ff0000; font-weight: bold; font-size: 24px;}
.danger {color: #c51e1e;} .danger {color: #ff0000;}
.warning {color: #c51e1e; font-style: italic;} .warning {color: #ff0000; font-style: italic;}
.alertwarning {color: #FF0000; font-weight: bold} .alertwarning {color: #FF0000; font-weight: bold}
.boldwarning {color: #c51e1e; font-style: italic; font-weight: bold} .boldwarning {color: #ff0000; font-style: italic; font-weight: bold}
.announce {color: #c51e1e; font-weight: bold;} .announce {color: #228b22; font-weight: bold;}
.boldannounce {color: #c51e1e; font-weight: bold;} .boldannounce {color: #ff0000; font-weight: bold;}
.greenannounce {color: #059223; font-weight: bold;} .greenannounce {color: #00ff00; font-weight: bold;}
.rose {color: #ff5050;} .rose {color: #ff5050;}
.info {color: #6685f5;} .info {color: #0000CC;}
.notice {color: #6685f5;} .notice {color: #000099;}
.boldnotice {color: #6685f5; font-weight: bold;} .boldnotice {color: #000099; font-weight: bold;}
.adminnotice {color: #6685f5;} .adminnotice {color: #0000ff;}
.adminhelp {color: #ff0000; font-weight: bold;} .adminhelp {color: #ff0000; font-weight: bold;}
.unconscious {color: #a4bad6; font-weight: bold;} .unconscious {color: #0000ff; font-weight: bold;}
.suicide {color: #ff5050; font-style: italic;} .suicide {color: #ff5050; font-style: italic;}
.red {color: #FF0000} .green {color: #03ff39;}
.pink {color: #ff70c1;} .red {color: #FF0000;}
.blue {color: #215cff} .pink {color: #FF69Bf;}
.green {color: #059223;} .blue {color: #0000FF;}
.nicegreen {color: #059223;} .nicegreen {color: #14a833;}
.userlove {color: #ff42a6; font-style: italic; font-weight: bold; text-shadow: 0 0 6px #82365e;} .userlove {color: #FF1493; font-style: italic; font-weight: bold; text-shadow: 0 0 6px #ff6dbc;}
.love {color: #ff4591; font-style: italic; text-shadow: 0 0 6px #994449;} .love {color: #ff006a; font-style: italic; text-shadow: 0 0 6px #ff6d6d;}
.shadowling {color: #8e8a99;} .shadowling {color: #3b2769;}
.cult {color: #aa1c1c;} .cult {color: #960000;}
.cultitalic {color: #aa1c1c; font-style: italic;} .cultitalic {color: #960000; font-style: italic;}
.cultbold {color: #aa1c1c; font-style: italic; font-weight: bold;} .cultbold {color: #960000; font-style: italic; font-weight: bold;}
.cultboldtalic {color: #aa1c1c; font-weight: bold; font-size: 24px;} .cultboldtalic {color: #960000; font-weight: bold; font-size: 24px;}
.cultlarge {color: #aa1c1c; font-weight: bold; font-size: 24px;} .cultlarge {color: #960000; font-weight: bold; font-size: 24px;}
.narsie {color: #aa1c1c; font-weight: bold; font-size: 120px;} .narsie {color: #960000; font-weight: bold; font-size: 120px;}
.narsiesmall {color: #aa1c1c; font-weight: bold; font-size: 48px;} .narsiesmall {color: #960000; font-weight: bold; font-size: 48px;}
.colossus {color: #7F282A; font-size: 40px;} .colossus {color: #7F282A; font-size: 40px;}
.hierophant {color: #b441ee; font-weight: bold; font-style: italic;} .hierophant {color: #660099; font-weight: bold; font-style: italic;}
.hierophant_warning {color: #c56bf1; font-style: italic;} .hierophant_warning {color: #660099; font-style: italic;}
.purple {color: #9956d3;} .purple {color: #5e2d79;}
.holoparasite {color: #88809c;} .holoparasite {color: #35333a;}
.revennotice {color: #1d2953;} .revennotice {color: #1d2953;}
.revenboldnotice {color: #1d2953; font-weight: bold;} .revenboldnotice {color: #1d2953; font-weight: bold;}
@@ -351,11 +347,11 @@ h1.alert, h2.alert {color: #99aab5;}
.revenminor {color: #823abb} .revenminor {color: #823abb}
.revenwarning {color: #760fbb; font-style: italic;} .revenwarning {color: #760fbb; font-style: italic;}
.revendanger {color: #760fbb; font-weight: bold; font-size: 24px;} .revendanger {color: #760fbb; font-weight: bold; font-size: 24px;}
.umbra {color: #7c00e6;} .umbra {color: #5000A0;}
.umbra_emphasis {color: #7c00e6; font-weight: bold; font-style: italic;} .umbra_emphasis {color: #5000A0; font-weight: bold; font-style: italic;}
.umbra_large {color: #7c00e6; font-size: 24px; font-weight: bold; font-style: italic;} .umbra_large {color: #5000A0; font-size: 24px; font-weight: bold; font-style: italic;}
.deconversion_message {color: #a947ff; font-size: 24px; font-style: italic;} .deconversion_message {color: #5000A0; font-size: 24px; font-style: italic;}
.brass {color: #BE8700;} .brass {color: #BE8700;}
.heavy_brass {color: #BE8700; font-weight: bold; font-style: italic;} .heavy_brass {color: #BE8700; font-weight: bold; font-style: italic;}
@@ -380,17 +376,17 @@ h1.alert, h2.alert {color: #99aab5;}
.neovgre {color: #6E001A; font-weight: bold; font-style: italic;} .neovgre {color: #6E001A; font-weight: bold; font-style: italic;}
.neovgre_small {color: #6E001A;} .neovgre_small {color: #6E001A;}
.newscaster {color: #c05d5d;} .newscaster {color: #800000;}
.ghostalert {color: #6600ff; font-style: italic; font-weight: bold;} .ghostalert {color: #5c00e6; font-style: italic; font-weight: bold;}
.alien {color: #855d85;} .alien {color: #543354;}
.noticealien {color: #059223;} .noticealien {color: #00c000;}
.alertalien {color: #059223; font-weight: bold;} .alertalien {color: #00c000; font-weight: bold;}
.changeling {color: #059223; font-style: italic;} .changeling {color: #800080; font-style: italic;}
.spider {color: #8800ff;} .spider {color: #4d004d;}
.interface {color: #750e75;} .interface {color: #330033;}
.sans {font-family: "Comic Sans MS", cursive, sans-serif;} .sans {font-family: "Comic Sans MS", cursive, sans-serif;}
.papyrus {font-family: "Papyrus", cursive, sans-serif;} .papyrus {font-family: "Papyrus", cursive, sans-serif;}
@@ -401,29 +397,54 @@ h1.alert, h2.alert {color: #99aab5;}
.big {font-size: 24px;} .big {font-size: 24px;}
.reallybig {font-size: 32px;} .reallybig {font-size: 32px;}
.extremelybig {font-size: 40px;} .extremelybig {font-size: 40px;}
.greentext {color: #059223; font-size: 24px;} .greentext {color: #00FF00; font-size: 24px;}
.redtext {color: #c51e1e; font-size: 24px;} .redtext {color: #FF0000; font-size: 24px;}
.clown {color: #ff70c1; font-size: 24px; font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;} .clown {color: #FF69Bf; font-size: 24px; font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;}
.his_grace {color: #15D512; font-family: "Courier New", cursive, sans-serif; font-style: italic;} .his_grace {color: #15D512; font-family: "Courier New", cursive, sans-serif; font-style: italic;}
.velvet {color: #660015; font-weight: bold; animation: velvet 5000ms infinite;}
@keyframes velvet {
0% { color: #400020; }
40% { color: #FF0000; }
50% { color: #FF8888; }
60% { color: #FF0000; }
100% { color: #400020; }
}
.hypnophrase {color: #202020; font-weight: bold; animation: hypnocolor 1500ms infinite;}
@keyframes hypnocolor {
0% { color: #202020; }
25% { color: #4b02ac; }
50% { color: #9f41f1; }
75% { color: #541c9c; }
100% { color: #7adbf3; }
}
.phobia {color: #dd0000; font-weight: bold; animation: phobia 750ms infinite;}
@keyframes phobia {
0% { color: #f75a5a; }
50% { color: #dd0000; }
100% { color: #f75a5a; }
}
.icon {height: 1em; width: auto;} .icon {height: 1em; width: auto;}
.memo {color: #638500; text-align: center;} .memo {color: #638500; text-align: center;}
.memoedit {text-align: center; font-size: 16px;} .memoedit {text-align: center; font-size: 16px;}
.abductor {color: #c204c2; font-style: italic;} .abductor {color: #800080; font-style: italic;}
.mind_control {color: #df3da9; font-size: 3; font-weight: bold; font-style: italic;} .mind_control {color: #A00D6F; font-size: 3; font-weight: bold; font-style: italic;}
.slime {color: #00CED1;} .slime {color: #00CED1;}
.drone {color: #848482;} .drone {color: #848482;}
.monkey {color: #975032;} .monkey {color: #975032;}
.swarmer {color: #2C75FF;} .swarmer {color: #2C75FF;}
.resonate {color: #298F85;} .resonate {color: #298F85;}
.monkeyhive {color: #a56408;} .monkeyhive {color: #774704;}
.monkeylead {color: #af6805; font-size: 2;} .monkeylead {color: #774704; font-size: 2;}
.connectionClosed, .fatalError {background: red; color: white; padding: 5px;} .connectionClosed, .fatalError {background: red; color: white; padding: 5px;}
.connectionClosed.restored {background: green;} .connectionClosed.restored {background: green;}
.internal.boldnshit {color: #3d5bc3; font-weight: bold;} .internal.boldnshit {color: #000099; font-weight: bold;}
/* HELPER CLASSES */ /* HELPER CLASSES */
.text-normal {font-weight: normal; font-style: normal;} .text-normal {font-weight: normal; font-style: normal;}

View File

@@ -0,0 +1,155 @@
html, body {color: #E0E0E0;}
body {
background: #171717;
font-color: #E0E0E0;
scrollbar-face-color:#1A1A1A;
scrollbar-track-color:#171717;
scrollbar-highlight-color:#171717;
}
a {color: #397ea5;}
a.visited {color: #7c00e6;}
a:visited {color: #7c00e6;}
#newMessages {background: #242424;}
#newMessages:hover {background: #272727;}
#ping {background: #171717;}
#userBar .subCell {
background: #272727;
border-top: 1px solid #171717;
}
#userBar .subCell:hover {background: #272727;}
#userBar .toggle {background: #272727;}
/* MOTD */
.motd {color: #E0E0E0; font-family: Verdana, sans-serif;}
.motd h1, .motd h2, .motd h3, .motd h4, .motd h5, .motd h6 {color: #E0E0E0; text-decoration: underline;}
.motd a, .motd a:link, .motd a:visited, .motd a:active, .motd a:hover {color: #E0E0E0;}
h1, h2, h3, h4, h5, h6 {color: #E0E0E0;font-family: Georgia, Verdana, sans-serif;}
h1.alert, h2.alert {color: #E0E0E0;}
.ooc {color: #cca300; font-weight: bold;}
.looc {color: #d8b555; font-weight: bold;}
.antagooc {color: #ce254f; font-weight: bold;}
.adminobserverooc {color: #0099cc; font-weight: bold;}
.adminooc {color: #3d5bc3; font-weight: bold;}
.admin {color: #5975da; font-weight: bold;}
.deadsay {color: #e2c1ff;}
.radio {color: #1ecc43;}
.sciradio {color: #c68cfa;}
.comradio {color: #5177ff;}
.secradio {color: #dd3535;}
.medradio {color: #57b8f0;}
.engradio {color: #f37746;}
.suppradio {color: #b88646;}
.servradio {color: #6ca729;}
.syndradio {color: #8f4a4b;}
.centcomradio {color: #2681a5;}
.aiprivradio {color: #d65d95;}
.redteamradio {color: #ff4444;}
.blueteamradio {color: #3434fd;}
.alert {color: #d82020;}
h1.alert, h2.alert {color: #99aab5;}
.attack {color: #e01c1c;}
.disarm {color: #b42525;}
.passive {color: #a00f0f;}
.userdanger {color: #c51e1e; font-weight: bold; font-size: 24px;}
.danger {color: #c51e1e;}
.warning {color: #c51e1e; font-style: italic;}
.alertwarning {color: #c51e1e; font-weight: bold}
.boldwarning {color: #c51e1e; font-style: italic; font-weight: bold}
.announce {color: #c51e1e; font-weight: bold;}
.boldannounce {color: #c51e1e; font-weight: bold;}
.greenannounce {color: #059223; font-weight: bold;}
.info {color: #6685f5;}
.notice {color: #6685f5;}
.boldnotice {color: #6685f5; font-weight: bold;}
.adminnotice {color: #6685f5;}
.adminhelp {color: #ff0000; font-weight: bold;}
.unconscious {color: #E0E0E0; font-weight: bold;}
.red {color: #FF0000}
.pink {color: #ff70c1;}
.blue {color: #215cff}
.green {color: #059223;}
.nicegreen {color: #059223;}
.userlove {color: #ff42a6; font-style: italic; font-weight: bold; text-shadow: 0 0 6px #82365e;}
.love {color: #ff4591; font-style: italic; text-shadow: 0 0 6px #994449;}
.shadowling {color: #8e8a99;}
.cult {color: #aa1c1c;}
.cultitalic {color: #aa1c1c; font-style: italic;}
.cultbold {color: #aa1c1c; font-style: italic; font-weight: bold;}
.cultboldtalic {color: #aa1c1c; font-weight: bold; font-size: 24px;}
.cultlarge {color: #aa1c1c; font-weight: bold; font-size: 24px;}
.narsie {color: #aa1c1c; font-weight: bold; font-size: 120px;}
.narsiesmall {color: #aa1c1c; font-weight: bold; font-size: 48px;}
.hierophant {color: #b441ee; font-weight: bold; font-style: italic;}
.hierophant_warning {color: #c56bf1; font-style: italic;}
.purple {color: #9956d3;}
.holoparasite {color: #88809c;}
.revennotice {color: #3645aa;}
.revenboldnotice {color: #3645aa; font-weight: bold;}
.revenbignotice {color: #3645aa; font-weight: bold; font-size: 24px;}
.revenminor {color: #823ddd}
.revenwarning {color: #8911d9; font-style: italic;}
.revendanger {color: #8911d9; font-weight: bold; font-size: 24px;}
.umbra {color: #7c00e6;}
.umbra_emphasis {color: #7c00e6; font-weight: bold; font-style: italic;}
.umbra_large {color: #7c00e6; font-size: 24px; font-weight: bold; font-style: italic;}
.deconversion_message {color: #a947ff; font-size: 24px; font-style: italic;}
.alloy {color: #545b64;}
.heavy_alloy {color: #545b64; font-weight: bold; font-style: italic;}
.nezbere_large {color: #545b64; font-size: 24px; font-weight: bold; font-style: italic;}
.nezbere {color: #545b64; font-weight: bold; font-style: italic;}
.nezbere_small {color: #545b64;}
.inathneq_large {color: #1d7dc7; font-size: 24px; font-weight: bold; font-style: italic;}
.inathneq {color: #1d7dc7; font-weight: bold; font-style: italic;}
.inathneq_small {color: #1d7dc7;}
.neovgre_large {color: #7c0622; font-size: 24px; font-weight: bold; font-style: italic;}
.neovgre {color: #7c0622; font-weight: bold; font-style: italic;}
.neovgre_small {color: #7c0622;}
.newscaster {color: #c05d5d;}
.ghostalert {color: #6600ff; font-style: italic; font-weight: bold;}
.alien {color: #855d85;}
.noticealien {color: #059223;}
.alertalien {color: #059223; font-weight: bold;}
.changeling {color: #059223; font-style: italic;}
.spider {color: #8800ff;}
.interface {color: #750e75;}
.greentext {color: #059223; font-size: 24px;}
.redtext {color: #c51e1e; font-size: 24px;}
.clown {color: #ff70c1; font-size: 24px; font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;}
.velvet {color: #660015; font-weight: bold; animation: velvet 5000ms infinite;}
@keyframes velvet {
0% { color: #890020; }
40% { color: #c51e1e; }
50% { color: #FF8888; }
60% { color: #c51e1e; }
100% { color: #890020; }
}
.abductor {color: #c204c2; font-style: italic;}
.mind_control {color: #df3da9; font-size: 3; font-weight: bold; font-style: italic;}
.drone {color: #979795;}
.monkeyhive {color: #a56408;}
.monkeylead {color: #af6805; font-size: 2;}
.internal.boldnshit {color: #3d5bc3; font-weight: bold;}

View File

@@ -1,236 +1,18 @@
/***************************************** body {background: #F1F1F1;}
*
* GLOBAL STYLES
*
******************************************/
html, body {
padding: 0;
margin: 0;
height: 100%;
color: #000000;
}
body {
background: #f0f0f0;
font-family: Verdana, sans-serif;
font-size: 9pt;
line-height: 1.2;
overflow-x: hidden;
overflow-y: scroll;
word-wrap: break-word;
}
em { #newMessages {background: #ddd;}
font-style: normal; #ping {background: #ddd;}
font-weight: bold;
}
img { #userBar .subCell {background: #ddd;}
margin: 0;
padding: 0;
line-height: 1;
-ms-interpolation-mode: nearest-neighbor;
image-rendering: pixelated;
}
img.icon {
height: 1em;
min-height: 16px;
width: auto;
vertical-align: bottom;
}
.r:before { /* "repeated" badge class for combined messages */
content: 'x';
}
.r {
display: inline-block;
min-width: 0.5em;
font-size: 0.7em;
padding: 0.2em 0.3em;
line-height: 1;
color: white;
text-align: center;
white-space: nowrap;
vertical-align: middle;
background-color: crimson;
border-radius: 10px;
}
a {color: #0000ff;}
a.visited {color: #ff00ff;}
a:visited {color: #ff00ff;}
a.popt {text-decoration: none;}
/*****************************************
*
* OUTPUT NOT RELATED TO ACTUAL MESSAGES
*
******************************************/
#loading {
position: fixed;
width: 300px;
height: 150px;
text-align: center;
left: 50%;
top: 50%;
margin: -75px 0 0 -150px;
}
#loading i {display: block; padding-bottom: 3px;}
#messages {
font-size: 13px;
padding: 3px;
margin: 0;
word-wrap: break-word;
}
#newMessages {
position: fixed;
display: block;
bottom: 0;
right: 0;
padding: 8px;
background: #ddd;
text-decoration: none;
font-variant: small-caps;
font-size: 1.1em;
font-weight: bold;
color: #333;
}
#newMessages:hover {background: #ccc;}
#newMessages i {vertical-align: middle; padding-left: 3px;}
#ping {
position: fixed;
top: 0;
right: 115px;
width: 45px;
background: #ddd;
height: 30px;
padding: 8px 0 2px 0;
}
#ping i {display: block; text-align: center;}
#ping .ms {
display: block;
text-align: center;
font-size: 8pt;
padding-top: 2px;
}
#userBar {
position: fixed;
top: 0;
right: 0;
}
#userBar .subCell {
background: #ddd;
height: 30px;
padding: 5px 0;
display: block;
color: #333;
text-decoration: none;
line-height: 28px;
border-top: 1px solid #b4b4b4;
}
#userBar .subCell:hover {background: #ccc;}
#userBar .toggle {
width: 40px;
background: #ccc;
border-top: 0;
float: right;
text-align: center;
}
#userBar .sub {clear: both; display: none; width: 160px;}
#userBar .sub.scroll {overflow-y: scroll;}
#userBar .sub.subCell {padding: 3px 0 3px 8px; line-height: 30px; font-size: 0.9em; clear: both;}
#userBar .sub span {
display: block;
line-height: 30px;
float: left;
}
#userBar .sub i {
display: block;
padding: 0 5px;
font-size: 1.1em;
width: 22px;
text-align: center;
line-height: 30px;
float: right;
}
#userBar .sub input {
position: absolute;
padding: 7px 5px;
width: 121px;
line-height: 30px;
float: left;
}
#userBar .topCell {border-top: 0;}
/* POPUPS */ /* POPUPS */
.popup { .popup {background: #ddd;}
position: fixed; .popup .head {color: #ddd;}
top: 50%; .popup input[type=submit] {color: #ddd;}
left: 50%;
background: #ddd;
}
.popup .close {
position: absolute;
background: #aaa;
top: 0;
right: 0;
color: #333;
text-decoration: none;
z-index: 2;
padding: 0 10px;
height: 30px;
line-height: 30px;
}
.popup .close:hover {background: #999;}
.popup .head {
background: #999;
color: #ddd;
padding: 0 10px;
height: 30px;
line-height: 30px;
text-transform: uppercase;
font-size: 0.9em;
font-weight: bold;
border-bottom: 2px solid green;
}
.popup input {border: 1px solid #999; background: #fff; margin: 0; padding: 5px; outline: none; color: #333;}
.popup input[type=text]:hover, .popup input[type=text]:active, .popup input[type=text]:focus {border-color: green;}
.popup input[type=submit] {padding: 5px 10px; background: #999; color: #ddd; text-transform: uppercase; font-size: 0.9em; font-weight: bold;}
.popup input[type=submit]:hover, .popup input[type=submit]:focus, .popup input[type=submit]:active {background: #aaa; cursor: pointer;}
.changeFont {padding: 10px;}
.changeFont a {display: block; text-decoration: none; padding: 3px; color: #333;}
.changeFont a:hover {background: #ccc;}
.highlightPopup {padding: 10px; text-align: center;}
.highlightPopup input[type=text] {display: block; width: 215px; text-align: left; margin-top: 5px;}
.highlightPopup input.highlightColor {background-color: #FFFF00;}
.highlightPopup input.highlightTermSubmit {margin-top: 5px;}
/* ADMIN CONTEXT MENU */ /* ADMIN CONTEXT MENU */
.contextMenu { .contextMenu {background-color: #ddd;}
background-color: #ddd;
position: fixed;
margin: 2px;
width: 150px;
}
.contextMenu a {
display: block;
padding: 2px 5px;
text-decoration: none;
color: #333;
}
.contextMenu a:hover {
background-color: #ccc;
}
/* ADMIN FILTER MESSAGES MENU */
.filterMessages {padding: 5px;}
.filterMessages div {padding: 2px 0;}
.filterMessages input {}
.filterMessages label {}
.icon-stack {height: 1em; line-height: 1em; width: 1em; vertical-align: middle; margin-top: -2px;} .icon-stack {height: 1em; line-height: 1em; width: 1em; vertical-align: middle; margin-top: -2px;}
@@ -266,8 +48,8 @@ em {font-style: normal; font-weight: bold;}
.adminobserverooc {color: #0099cc; font-weight: bold;} .adminobserverooc {color: #0099cc; font-weight: bold;}
.adminooc {color: #700038; font-weight: bold;} .adminooc {color: #700038; font-weight: bold;}
.adminsay {color: #ff4500; font-weight: bold;} .adminsay {color: #FF4500}
.admin {color: #4473ff; font-weight: bold;} .admin {color: #386aff; font-weight: bold;}
.name { font-weight: bold;} .name { font-weight: bold;}
@@ -305,7 +87,7 @@ h1.alert, h2.alert {color: #000000;}
.userdanger {color: #ff0000; font-weight: bold; font-size: 24px;} .userdanger {color: #ff0000; font-weight: bold; font-size: 24px;}
.danger {color: #ff0000;} .danger {color: #ff0000;}
.warning {color: #ff0000; font-style: italic;} .warning {color: #ff0000; font-style: italic;}
.alertwarning {color: #FF0000; font-weight: bold} .alertwarning {color: #FF0000; font-weight: bold}
.boldwarning {color: #ff0000; font-style: italic; font-weight: bold} .boldwarning {color: #ff0000; font-style: italic; font-weight: bold}
.announce {color: #228b22; font-weight: bold;} .announce {color: #228b22; font-weight: bold;}
.boldannounce {color: #ff0000; font-weight: bold;} .boldannounce {color: #ff0000; font-weight: bold;}
@@ -318,10 +100,10 @@ h1.alert, h2.alert {color: #000000;}
.adminhelp {color: #ff0000; font-weight: bold;} .adminhelp {color: #ff0000; font-weight: bold;}
.unconscious {color: #0000ff; font-weight: bold;} .unconscious {color: #0000ff; font-weight: bold;}
.suicide {color: #ff5050; font-style: italic;} .suicide {color: #ff5050; font-style: italic;}
.green {color: #03ff39;} .green {color: #03ff39;}
.red {color: #FF0000} .red {color: #FF0000;}
.pink {color: #FF69Bf;} .pink {color: #FF69Bf;}
.blue {color: #0000FF} .blue {color: #0000FF;}
.nicegreen {color: #14a833;} .nicegreen {color: #14a833;}
.userlove {color: #FF1493; font-style: italic; font-weight: bold; text-shadow: 0 0 6px #ff6dbc;} .userlove {color: #FF1493; font-style: italic; font-weight: bold; text-shadow: 0 0 6px #ff6dbc;}
.love {color: #ff006a; font-style: italic; text-shadow: 0 0 6px #ff6d6d;} .love {color: #ff006a; font-style: italic; text-shadow: 0 0 6px #ff6d6d;}
@@ -330,7 +112,7 @@ h1.alert, h2.alert {color: #000000;}
.cultitalic {color: #960000; font-style: italic;} .cultitalic {color: #960000; font-style: italic;}
.cultbold {color: #960000; font-style: italic; font-weight: bold;} .cultbold {color: #960000; font-style: italic; font-weight: bold;}
.cultboldtalic {color: #960000; font-weight: bold; font-size: 24px;} .cultboldtalic {color: #960000; font-weight: bold; font-size: 24px;}
.cultlarge {color: #960000; font-weight: bold; font-size: 24px;} .cultlarge {color: #960000; font-weight: bold; font-size: 24px;}
.narsie {color: #960000; font-weight: bold; font-size: 120px;} .narsie {color: #960000; font-weight: bold; font-size: 120px;}
@@ -401,13 +183,38 @@ h1.alert, h2.alert {color: #000000;}
.redtext {color: #FF0000; font-size: 24px;} .redtext {color: #FF0000; font-size: 24px;}
.clown {color: #FF69Bf; font-size: 24px; font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;} .clown {color: #FF69Bf; font-size: 24px; font-family: "Comic Sans MS", cursive, sans-serif; font-weight: bold;}
.his_grace {color: #15D512; font-family: "Courier New", cursive, sans-serif; font-style: italic;} .his_grace {color: #15D512; font-family: "Courier New", cursive, sans-serif; font-style: italic;}
.velvet {color: #660015; font-weight: bold; animation: velvet 5000ms infinite;}
@keyframes velvet {
0% { color: #400020; }
40% { color: #FF0000; }
50% { color: #FF8888; }
60% { color: #FF0000; }
100% { color: #400020; }
}
.hypnophrase {color: #202020; font-weight: bold; animation: hypnocolor 1500ms infinite;}
@keyframes hypnocolor {
0% { color: #202020; }
25% { color: #4b02ac; }
50% { color: #9f41f1; }
75% { color: #541c9c; }
100% { color: #7adbf3; }
}
.phobia {color: #dd0000; font-weight: bold; animation: phobia 750ms infinite;}
@keyframes phobia {
0% { color: #f75a5a; }
50% { color: #dd0000; }
100% { color: #f75a5a; }
}
.icon {height: 1em; width: auto;} .icon {height: 1em; width: auto;}
.memo {color: #638500; text-align: center;} .memo {color: #638500; text-align: center;}
.memoedit {text-align: center; font-size: 16px;} .memoedit {text-align: center; font-size: 16px;}
.abductor {color: #800080; font-style: italic;} .abductor {color: #800080; font-style: italic;}
.mind_control {color: #A00D6F; font-size: 3; font-weight: bold; font-style: italic;} .mind_control {color: #A00D6F; font-size: 3; font-weight: bold; font-style: italic;}
.slime {color: #00CED1;} .slime {color: #00CED1;}
.drone {color: #848482;} .drone {color: #848482;}
.monkey {color: #975032;} .monkey {color: #975032;}
@@ -419,9 +226,8 @@ h1.alert, h2.alert {color: #000000;}
.connectionClosed, .fatalError {background: red; color: white; padding: 5px;} .connectionClosed, .fatalError {background: red; color: white; padding: 5px;}
.connectionClosed.restored {background: green;} .connectionClosed.restored {background: green;}
.internal.boldnshit {color: blue; font-weight: bold;} .internal.boldnshit {color: #000099; font-weight: bold;}
/* HELPER CLASSES */ /* HELPER CLASSES */
.text-normal {font-weight: normal; font-style: normal;} .text-normal {font-weight: normal; font-style: normal;}
.hidden {display: none; visibility: hidden;} .hidden {display: none; visibility: hidden;}

View File

@@ -5,8 +5,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="font-awesome.css" /> <link rel="stylesheet" type="text/css" href="font-awesome.css" />
<link id="sheetofstyles" rel="stylesheet" type="text/css" href="browserOutput_white.css" /> <link rel="stylesheet" type="text/css" href="browserOutput.css" />
<link rel="stylesheet" type="text/css" href="spritesheet_chat.css" /> <link rel="stylesheet" type="text/css" href="spritesheet_chat.css" />
<link rel="stylesheet" type="text/css" id="colorPresetLink"/>
<script type="text/javascript" src="errorHandler.js"></script> <script type="text/javascript" src="errorHandler.js"></script>
<script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="json2.min.js"></script> <script type="text/javascript" src="json2.min.js"></script>
@@ -29,7 +30,7 @@
<span class="ms" id="pingMs">--ms</span> <span class="ms" id="pingMs">--ms</span>
</div> </div>
<div id="darkmodething"> <div id="darkmodething">
<a href="#" class="subCell toggle" id="darkmodetoggle" title="Darkmode"><i class="icon-adjust"></i></a> <a href="#" class="subCell toggle" id="changeColorPreset" title="Change color preset"><i class="icon-eye-open"></i></a>
</div> </div>
<div id="audio"> <div id="audio">
<a href="#" class="subCell toggle" id="toggleAudio" title="Audio"><i class="icon-volume-up"></i></a> <a href="#" class="subCell toggle" id="toggleAudio" title="Audio"><i class="icon-volume-up"></i></a>

View File

@@ -35,7 +35,7 @@ var opts = {
'wasd': false, //Is the user in wasd mode? 'wasd': false, //Is the user in wasd mode?
'priorChatHeight': 0, //Thing for height-resizing detection 'priorChatHeight': 0, //Thing for height-resizing detection
'restarting': false, //Is the round restarting? 'restarting': false, //Is the round restarting?
'darkmode':false, //Are we using darkmode? If not WHY ARE YOU LIVING IN 2009??? 'colorPreset': 0, // index in the color presets list.
//Options menu //Options menu
'selectedSubLoop': null, //Contains the interval loop for closing the selected sub menu 'selectedSubLoop': null, //Contains the interval loop for closing the selected sub menu
@@ -73,6 +73,14 @@ var opts = {
}; };
// Array of names for chat display color presets.
// If not set to normal, a CSS file `browserOutput_${name}.css` will be added to the head.
var colorPresets = [
'normal',
'light',
'dark'
]
function clamp(val, min, max) { function clamp(val, min, max) {
return Math.max(min, Math.min(val, max)) return Math.max(min, Math.min(val, max))
} }
@@ -96,6 +104,12 @@ if (typeof String.prototype.trim !== 'function') {
}; };
} }
function updateColorPreset() {
var el = $("#colorPresetLink")[0];
el.href = "browserOutput_"+colorPresets[opts.colorPreset]+".css";
runByond('?_src_=chat&proc=colorPresetPost&preset='+colorPresets[opts.colorPreset]);
}
// Linkify the contents of a node, within its parent. // Linkify the contents of a node, within its parent.
function linkify(parent, insertBefore, text) { function linkify(parent, insertBefore, text) {
var start = 0; var start = 0;
@@ -395,19 +409,6 @@ function toHex(n) {
return "0123456789ABCDEF".charAt((n-n%16)/16) + "0123456789ABCDEF".charAt(n%16); return "0123456789ABCDEF".charAt((n-n%16)/16) + "0123456789ABCDEF".charAt(n%16);
} }
function swap() { //Swap to darkmode
if (opts.darkmode){
document.getElementById("sheetofstyles").href = "browserOutput_white.css";
opts.darkmode = false;
runByond('?_src_=chat&proc=swaptolightmode');
} else {
document.getElementById("sheetofstyles").href = "browserOutput.css";
opts.darkmode = true;
runByond('?_src_=chat&proc=swaptodarkmode');
}
setCookie('darkmode', (opts.darkmode ? 'true' : 'false'), 365);
}
function handleClientData(ckey, ip, compid) { function handleClientData(ckey, ip, compid) {
//byond sends player info to here //byond sends player info to here
var currentData = {'ckey': ckey, 'ip': ip, 'compid': compid}; var currentData = {'ckey': ckey, 'ip': ip, 'compid': compid};
@@ -615,7 +616,7 @@ $(function() {
'shighlightColor': getCookie('highlightcolor'), 'shighlightColor': getCookie('highlightcolor'),
'smusicVolume': getCookie('musicVolume'), 'smusicVolume': getCookie('musicVolume'),
'smessagecombining': getCookie('messagecombining'), 'smessagecombining': getCookie('messagecombining'),
'sdarkmode': getCookie('darkmode'), 'scolorPreset': getCookie('colorpreset'),
}; };
if (savedConfig.sfontSize) { if (savedConfig.sfontSize) {
@@ -626,9 +627,6 @@ $(function() {
$("body").css('line-height', savedConfig.slineHeight); $("body").css('line-height', savedConfig.slineHeight);
internalOutput('<span class="internal boldnshit">Loaded line height setting of: '+savedConfig.slineHeight+'</span>', 'internal'); internalOutput('<span class="internal boldnshit">Loaded line height setting of: '+savedConfig.slineHeight+'</span>', 'internal');
} }
if(savedConfig.sdarkmode == 'true'){
swap();
}
if (savedConfig.spingDisabled) { if (savedConfig.spingDisabled) {
if (savedConfig.spingDisabled == 'true') { if (savedConfig.spingDisabled == 'true') {
opts.pingDisabled = true; opts.pingDisabled = true;
@@ -654,6 +652,13 @@ $(function() {
opts.highlightColor = savedConfig.shighlightColor; opts.highlightColor = savedConfig.shighlightColor;
internalOutput('<span class="internal boldnshit">Loaded highlight color of: '+savedConfig.shighlightColor+'</span>', 'internal'); internalOutput('<span class="internal boldnshit">Loaded highlight color of: '+savedConfig.shighlightColor+'</span>', 'internal');
} }
if (savedConfig.scolorPreset) {
opts.colorPreset = Number(savedConfig.scolorPreset);
updateColorPreset();
internalOutput('<span class="internal boldnshit">Loaded color preset of: '+colorPresets[opts.colorPreset]+'</span>', 'internal');
}
if (savedConfig.smusicVolume) { if (savedConfig.smusicVolume) {
var newVolume = clamp(savedConfig.smusicVolume, 0, 100); var newVolume = clamp(savedConfig.smusicVolume, 0, 100);
$('#adminMusic').prop('volume', newVolume / 100); $('#adminMusic').prop('volume', newVolume / 100);
@@ -839,9 +844,6 @@ $(function() {
$('#toggleOptions').click(function(e) { $('#toggleOptions').click(function(e) {
handleToggleClick($subOptions, $(this)); handleToggleClick($subOptions, $(this));
}); });
$('#darkmodetoggle').click(function(e) {
swap();
});
$('#toggleAudio').click(function(e) { $('#toggleAudio').click(function(e) {
handleToggleClick($subAudio, $(this)); handleToggleClick($subAudio, $(this));
}); });
@@ -992,6 +994,13 @@ $(function() {
opts.messageCount = 0; opts.messageCount = 0;
}); });
$('#changeColorPreset').click(function() {
opts.colorPreset = (opts.colorPreset+1) % colorPresets.length;
updateColorPreset();
setCookie('colorpreset', opts.colorPreset, 365);
internalOutput('<span class="internal boldnshit">Changed color preset to: '+colorPresets[opts.colorPreset]);
});
$('#musicVolumeSpan').hover(function() { $('#musicVolumeSpan').hover(function() {
$('#musicVolumeText').addClass('hidden'); $('#musicVolumeText').addClass('hidden');
$('#musicVolume').removeClass('hidden'); $('#musicVolume').removeClass('hidden');

View File

@@ -54,7 +54,7 @@ window "mainwindow"
size = 640x440 size = 640x440
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #eeeeee background-color = #242424
is-default = true is-default = true
saved-params = "pos;size;is-minimized;is-maximized" saved-params = "pos;size;is-minimized;is-maximized"
icon = 'icons\\ss13_64.png' icon = 'icons\\ss13_64.png'
@@ -66,7 +66,7 @@ window "mainwindow"
size = 637x440 size = 637x440
anchor1 = 0,0 anchor1 = 0,0
anchor2 = 100,100 anchor2 = 100,100
background-color = #eeeeee background-color = #272727
saved-params = "splitter" saved-params = "splitter"
left = "mapwindow" left = "mapwindow"
right = "infowindow" right = "infowindow"
@@ -78,7 +78,7 @@ window "mainwindow"
size = 200x200 size = 200x200
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #ffffff background-color = #272727
is-visible = false is-visible = false
saved-params = "" saved-params = ""
elem "tooltip" elem "tooltip"
@@ -87,7 +87,7 @@ window "mainwindow"
size = 999x999 size = 999x999
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #ffffff background-color = #272727
is-visible = false is-visible = false
saved-params = "" saved-params = ""
@@ -119,7 +119,7 @@ window "infowindow"
size = 640x480 size = 640x480
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #eeeeee background-color = #242424
saved-params = "pos;size;is-minimized;is-maximized" saved-params = "pos;size;is-minimized;is-maximized"
is-pane = true is-pane = true
elem "info" elem "info"
@@ -128,6 +128,7 @@ window "infowindow"
size = 640x445 size = 640x445
anchor1 = 0,0 anchor1 = 0,0
anchor2 = 100,100 anchor2 = 100,100
background-color = #272727
saved-params = "splitter" saved-params = "splitter"
left = "statwindow" left = "statwindow"
right = "outputwindow" right = "outputwindow"
@@ -138,7 +139,8 @@ window "infowindow"
size = 104x20 size = 104x20
anchor1 = 3,0 anchor1 = 3,0
anchor2 = 19,0 anchor2 = 19,0
background-color = #90b3dd text-color = #a4BaD6
background-color = #40628a
saved-params = "is-checked" saved-params = "is-checked"
text = "Changelog" text = "Changelog"
command = "changelog" command = "changelog"
@@ -148,7 +150,8 @@ window "infowindow"
size = 100x20 size = 100x20
anchor1 = 19,0 anchor1 = 19,0
anchor2 = 34,0 anchor2 = 34,0
background-color = #90b3dd text-color = #a4BaD6
background-color = #40628a
saved-params = "is-checked" saved-params = "is-checked"
text = "Rules" text = "Rules"
command = "rules" command = "rules"
@@ -158,7 +161,8 @@ window "infowindow"
size = 100x20 size = 100x20
anchor1 = 34,0 anchor1 = 34,0
anchor2 = 50,0 anchor2 = 50,0
background-color = #90b3dd text-color = #a4BaD6
background-color = #40628a
saved-params = "is-checked" saved-params = "is-checked"
text = "Wiki" text = "Wiki"
command = "wiki" command = "wiki"
@@ -168,7 +172,8 @@ window "infowindow"
size = 100x20 size = 100x20
anchor1 = 50,0 anchor1 = 50,0
anchor2 = 66,0 anchor2 = 66,0
background-color = #90b3dd text-color = #a4BaD6
background-color = #40628a
saved-params = "is-checked" saved-params = "is-checked"
text = "Forum" text = "Forum"
command = "forum" command = "forum"
@@ -178,7 +183,8 @@ window "infowindow"
size = 100x20 size = 100x20
anchor1 = 66,0 anchor1 = 66,0
anchor2 = 81,0 anchor2 = 81,0
background-color = #90b3dd text-color = #a4BaD6
background-color = #40628a
saved-params = "is-checked" saved-params = "is-checked"
text = "GitHub" text = "GitHub"
command = "github" command = "github"
@@ -189,7 +195,8 @@ window "infowindow"
anchor1 = 81,0 anchor1 = 81,0
anchor2 = 97,0 anchor2 = 97,0
font-size = 8 font-size = 8
background-color = #ef7f7f text-color = #a4BaD6
background-color = #A92c2c
saved-params = "is-checked" saved-params = "is-checked"
text = "Report Issue" text = "Report Issue"
command = "report-issue" command = "report-issue"
@@ -201,7 +208,7 @@ window "outputwindow"
size = 640x480 size = 640x480
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #eeeeee background-color = #272727
saved-params = "pos;size;is-minimized;is-maximized" saved-params = "pos;size;is-minimized;is-maximized"
titlebar = false titlebar = false
statusbar = false statusbar = false
@@ -225,7 +232,8 @@ window "outputwindow"
size = 37x20 size = 37x20
anchor1 = 100,100 anchor1 = 100,100
anchor2 = none anchor2 = none
background-color = #eeeeee text-color = #a4BaD6
background-color = #272727
saved-params = "is-checked" saved-params = "is-checked"
text = "Chat" text = "Chat"
command = ".winset \"say.is-checked=true ? input.command=\"!say \\\"\" : input.command=\"" command = ".winset \"say.is-checked=true ? input.command=\"!say \\\"\" : input.command=\""
@@ -237,7 +245,7 @@ window "outputwindow"
size = 640x456 size = 640x456
anchor1 = 0,0 anchor1 = 0,0
anchor2 = 100,100 anchor2 = 100,100
background-color = #ffffff background-color = #272727
is-visible = false is-visible = false
is-disabled = true is-disabled = true
saved-params = "" saved-params = ""
@@ -248,6 +256,8 @@ window "outputwindow"
size = 640x456 size = 640x456
anchor1 = 0,0 anchor1 = 0,0
anchor2 = 100,100 anchor2 = 100,100
text-color = #a4bad6
background-color = #272727
is-default = true is-default = true
saved-params = "" saved-params = ""
@@ -258,7 +268,7 @@ window "statwindow"
size = 640x480 size = 640x480
anchor1 = none anchor1 = none
anchor2 = none anchor2 = none
background-color = #eeeeee background-color = #242424
saved-params = "pos;size;is-minimized;is-maximized" saved-params = "pos;size;is-minimized;is-maximized"
is-pane = true is-pane = true
elem "stat" elem "stat"
@@ -267,9 +277,14 @@ window "statwindow"
size = 640x480 size = 640x480
anchor1 = 0,0 anchor1 = 0,0
anchor2 = 100,100 anchor2 = 100,100
text-color = #a4bad6
background-color = #272727
is-default = true is-default = true
saved-params = "" saved-params = ""
tab-background-color = #eeeeee tab-text-color = #a4bad6
tab-background-color = #242424
prefix-color = #a4bad6
suffix-color = #a4bad6
window "preferences_window" window "preferences_window"
elem "preferences_window" elem "preferences_window"