mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
Update styled items class names
This commit is contained in:
parent
635646b0f3
commit
2274f92833
2 changed files with 40 additions and 39 deletions
|
@ -879,41 +879,42 @@ button {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Colors
|
* IRC Message Styling
|
||||||
* http://clrs.cc/
|
* https://github.com/megawac/irc-style-parser
|
||||||
*/
|
* Colours are credit to http://clrs.cc/
|
||||||
.color-0, .color-00 { color: #fff; }
|
*/
|
||||||
.color-1, .color-01 { color: #000; }
|
.irc-fg0 { color: #fff; }
|
||||||
.color-2, .color-02 { color: #001f3f; }
|
.irc-fg1 { color: #000; }
|
||||||
.color-3, .color-03 { color: #2ecc40; }
|
.irc-fg2 { color: #001f3f; }
|
||||||
.color-4, .color-04 { color: #ff4136; }
|
.irc-fg3 { color: #2ecc40; }
|
||||||
.color-5, .color-05 { color: #85144b; }
|
.irc-fg4 { color: #ff4136; }
|
||||||
.color-6, .color-06 { color: #b10dc9; }
|
.irc-fg5 { color: #85144b; }
|
||||||
.color-7, .color-07 { color: #ff851b; }
|
.irc-fg6 { color: #b10dc9; }
|
||||||
.color-8, .color-08 { color: #ffdc00; }
|
.irc-fg7 { color: #ff851b; }
|
||||||
.color-9, .color-09 { color: #01ff70; }
|
.irc-fg8 { color: #ffdc00; }
|
||||||
.color-10 { color: #39cccc; }
|
.irc-fg9 { color: #01ff70; }
|
||||||
.color-11 { color: #7fdbff; }
|
.irc-fg10 { color: #39cccc; }
|
||||||
.color-12 { color: #0074d9; }
|
.irc-fg11 { color: #7fdbff; }
|
||||||
.color-13 { color: #f012be; }
|
.irc-fg12 { color: #0074d9; }
|
||||||
.color-14 { color: #aaa; }
|
.irc-fg13 { color: #f012be; }
|
||||||
.color-15 { color: #ddd; }
|
.irc-fg14 { color: #aaa; }
|
||||||
.bg-0, .bg-00 { background: #fff; }
|
.irc-fg15 { color: #ddd; }
|
||||||
.bg-1, .bg-01 { background: #000; }
|
.irc-bg0 { background: #fff; }
|
||||||
.bg-2, .bg-02 { background: #001f3f; }
|
.irc-bg1 { background: #000; }
|
||||||
.bg-3, .bg-03 { background: #2ecc40; }
|
.irc-bg2 { background: #001f3f; }
|
||||||
.bg-4, .bg-04 { background: #ff4136; }
|
.irc-bg3 { background: #2ecc40; }
|
||||||
.bg-5, .bg-05 { background: #85144b; }
|
.irc-bg4 { background: #ff4136; }
|
||||||
.bg-6, .bg-06 { background: #b10dc9; }
|
.irc-bg5 { background: #85144b; }
|
||||||
.bg-7, .bg-07 { background: #ff851b; }
|
.irc-bg6 { background: #b10dc9; }
|
||||||
.bg-8, .bg-08 { background: #ffdc00; }
|
.irc-bg7 { background: #ff851b; }
|
||||||
.bg-9, .bg-09 { background: #01ff70; }
|
.irc-bg8 { background: #ffdc00; }
|
||||||
.bg-10 { background: #39cccc; }
|
.irc-bg9 { background: #01ff70; }
|
||||||
.bg-11 { background: #7fdbff; }
|
.irc-bg10 { background: #39cccc; }
|
||||||
.bg-12 { background: #0074d9; }
|
.irc-bg11 { background: #7fdbff; }
|
||||||
.bg-13 { background: #f012be; }
|
.irc-bg12 { background: #0074d9; }
|
||||||
.bg-14 { background: #aaa; }
|
.irc-bg13 { background: #f012be; }
|
||||||
.bg-15 { background: #ddd; }
|
.irc-bg14 { background: #aaa; }
|
||||||
|
.irc-bg15 { background: #ddd; }
|
||||||
|
|
||||||
.irc-bold {
|
.irc-bold {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -62,9 +62,9 @@ var styleCheck_Re = /[\x00-\x1F]/,
|
||||||
styleBreak = "\x0F";
|
styleBreak = "\x0F";
|
||||||
|
|
||||||
|
|
||||||
var styleTemplate = function(settings) {
|
function styleTemplate(settings) {
|
||||||
return "<span class='" + settings.style + "'>" + settings.text + "</span>";
|
return "<span class='" + settings.style + "'>" + settings.text + "</span>";
|
||||||
};
|
}
|
||||||
|
|
||||||
var styles = [
|
var styles = [
|
||||||
["normal", "\x00", ""], ["underline", "\x1F"],
|
["normal", "\x00", ""], ["underline", "\x1F"],
|
||||||
|
@ -83,8 +83,8 @@ var styles = [
|
||||||
var colourMap = {};
|
var colourMap = {};
|
||||||
for (var colour = 0; colour < 16; colour++) {
|
for (var colour = 0; colour < 16; colour++) {
|
||||||
colourMap[colour] = {
|
colourMap[colour] = {
|
||||||
fore: "color-" + colour,
|
fore: "irc-fg" + colour,
|
||||||
back: "bg-" + colour
|
back: "irc-bg" + colour
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue