Start moving CSS to components

This commit is contained in:
Max Leiter 2022-02-23 16:40:54 -08:00
parent 53f5b8e991
commit 4763ebbb28
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
36 changed files with 2419 additions and 1958 deletions

View file

@ -16,6 +16,124 @@
</div>
</template>
<style>
@import "../css/icons.css";
@import "../css/chat-and-search.css";
@import "../css/chat-messages.css";
/* Global styles */
.container {
padding: 0 15px;
margin-bottom: 20px;
width: var(--page-content-width);
align-self: center;
touch-action: pan-y;
}
.window li,
.window p,
.window label,
#settings .error {
font-size: 14px;
}
.window {
background: var(--window-bg-color);
display: flex;
flex-direction: column;
flex: 1 1 auto;
position: relative;
overflow-y: auto;
height: 100%;
scrollbar-width: thin;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
#loading,
#chat .chat-view {
/* flexbox does not seem to scroll without doing this */
position: absolute;
bottom: 0;
left: 0;
right: 0;
top: 0;
}
.window h1 {
font-size: 36px;
}
.window h2 {
border-bottom: 1px solid currentcolor;
color: var(--window-heading-color);
font-size: 22px;
margin: 30px 0 10px;
padding-bottom: 7px;
}
.window h2 small {
font-size: 16px;
line-height: 30px;
}
.window h3 {
color: var(--window-heading-color);
font-size: 18px;
margin: 20px 0 10px;
}
.window#chat-container {
/*
Chat has its own scrollbar, so remove the one on parent
This caused a performance issue in Chrome
*/
overflow: hidden;
}
/* Form elements */
/* stylelint-disable selector-no-vendor-prefix */
#chat-container ::-moz-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
#chat-container ::-webkit-input-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
#chat-container :-ms-input-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
/* stylelint-enable selector-no-vendor-prefix */
.emoji {
font-size: 1.4em;
vertical-align: text-top;
line-height: 1;
}
/* Correctly handle multiple successive whitespace characters.
For example: user has quit ( ===> L O L <=== ) */
.header .topic,
#chat .msg[data-type="action"] .content,
#chat .msg[data-type="message"] .content,
#chat .msg[data-type="monospace_block"] .content,
#chat .msg[data-type="notice"] .content,
#chat .ctcp-message,
#chat .part-reason,
#chat .quit-reason,
#chat .new-topic,
#chat table.channel-list .topic {
white-space: pre-wrap;
}
</style>
<script>
const constants = require("../js/constants");
import eventbus from "../js/eventbus";

View file

@ -27,6 +27,43 @@
</ChannelWrapper>
</template>
<style scoped>
.channel-list-item .close-tooltip {
flex-shrink: 0;
line-height: 1;
}
.channel-list-item .close {
width: 18px;
height: 18px;
display: none;
transition: opacity 0.2s, background-color 0.2s;
}
.channel-list-item .close::before {
font-size: 20px;
font-weight: normal;
display: inline-block;
line-height: 16px;
text-align: center;
content: "×";
color: #fff;
}
.channel-list-item.active .close {
opacity: 0.4;
display: unset;
}
.channel-list-item.active .close:hover {
opacity: 1;
}
.channel-list-item .name {
mask-image: var(--fade-long-text);
}
</style>
<script>
import roundBadgeNumber from "../js/helpers/roundBadgeNumber";
import ChannelWrapper from "./ChannelWrapper.vue";

View file

@ -32,6 +32,44 @@
</div>
</template>
<style scoped>
.channel-list-item .not-connected-tooltip,
.channel-list-item .not-secure-tooltip,
.channel-list-item .parted-channel-tooltip {
margin: 0 8px;
}
.channel-list-item.not-secure {
color: #f39c12;
}
.channel-list-item.not-secure:hover,
.channel-list-item.not-secure.active {
color: #f8c572;
}
.channel-list-item.not-connected,
.channel-list-item.parted-channel {
color: #e74c3c;
}
.channel-list-item.not-connected:hover,
.channel-list-item.not-connected.active,
.channel-list-item.parted-channel:hover,
.channel-list-item.parted-channel.active {
color: #f1978e;
}
.channel-list-item.is-muted {
opacity: 0.5;
}
.channel-list-item::before {
width: 14px;
margin-right: 12px;
line-height: 18px;
}
</style>
<script>
import eventbus from "../js/eventbus";
import isChannelCollapsed from "../js/helpers/isChannelCollapsed";

View file

@ -120,6 +120,128 @@
</div>
</template>
<style scoped>
@import "../css/special-channels.css";
@import "../css/colored-nicks.css";
#chat.hide-motd .msg[data-command="motd"] {
display: none !important;
}
#user-visible-error {
font-size: 14px;
line-height: 1.5;
font-weight: 600;
padding: 10px;
word-spacing: 3px;
text-transform: uppercase;
background: #e74c3c;
color: #fff;
text-align: center;
cursor: pointer;
}
.scroll-down {
position: absolute;
bottom: 16px;
right: 16px;
z-index: 2;
pointer-events: none;
opacity: 0;
transform: translateY(16px);
transition: transform 0.2s, opacity 0.2s;
cursor: pointer;
}
.scroll-down-shown {
opacity: 1;
transform: none;
pointer-events: auto;
}
.scroll-down-arrow {
width: 36px;
height: 36px;
line-height: 34px;
border-radius: 50%;
background: var(--window-bg-color);
color: var(--button-color);
border: 2px solid var(--button-color);
text-align: center;
transition: background 0.2s, color 0.2s;
box-shadow: 0 6px 10px 0 rgb(0 0 0 / 15%);
}
.scroll-down:hover .scroll-down-arrow {
background: var(--button-color);
color: var(--button-text-color-hover);
}
.scroll-down-arrow::after {
content: "\f107"; /* https://fontawesome.com/icons/angle-down?style=solid */
}
#chat .chat-view[data-type="special"] table th {
word-break: normal;
}
.topic-container {
position: relative;
flex-grow: 1;
padding-left: 10px;
}
.header .topic.empty {
min-width: 0;
}
.header .topic-input {
color: inherit;
background: transparent;
border: 1px solid #cdd3da;
border-radius: 2px;
padding-right: 37px;
padding-left: 10px;
width: 100%;
height: 35px;
overflow: hidden;
font-size: 14px;
line-height: normal;
outline: none;
}
.topic-container .save-topic {
position: absolute;
top: 6px;
right: 0;
}
.topic-container .save-topic span {
font-size: 16px;
color: #607992;
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
appearance: none;
}
.topic-container .save-topic span:hover {
opacity: 0.6;
}
/deep/ table.channel-list .channel,
/deep/ table.channel-list .topic,
/deep/ table.ban-list .hostmask,
/deep/ table.ban-list .banned_by,
/deep/ table.ban-list .banned_at,
/deep/ table.ignore-list .hostmask,
/deep/ table.ignore-list .when {
text-align: left;
}
</style>
<script>
import socket from "../js/socket";
import eventbus from "../js/eventbus";

View file

@ -51,6 +51,86 @@
</form>
</template>
<style scoped>
#upload-progressbar {
background: var(--upload-progressbar-color);
box-shadow: 0 0 10px var(--upload-progressbar-color);
width: 0%;
height: 2px;
visibility: hidden;
position: absolute;
top: -1px; /* put it on top of #form's border */
left: 0;
}
#upload-progressbar.upload-progressbar-visible {
visibility: visible;
transition: 0.3s width ease-in-out;
}
#form {
flex: 0 0 auto;
border: 0;
border-top: 1px solid #e7e7e7;
border-radius: 0;
margin: 0;
padding: 6px;
background: white;
display: flex;
align-items: flex-end;
position: relative;
}
#form #nick {
background: #f6f6f6;
color: #666;
font-size: 13px;
margin: 4px;
line-height: 24px;
padding: 0 8px;
border-radius: 2px;
display: none;
}
.public #form #nick {
display: block;
}
#form #input {
background: transparent;
border: none;
font: inherit;
min-height: 19px; /* Required when computing input height at char deletion */
height: 19px;
max-height: 95px; /* min-height/height x number of lines maximum */
line-height: 19px; /* should match height */
outline: none;
margin: 5px;
padding: 0;
resize: none;
flex: 1 0 auto;
align-self: center;
touch-action: pan-y;
}
#form #upload-input {
display: none;
}
#form #upload,
#form #submit {
color: #607992;
font-size: 14px;
height: 32px;
width: 32px;
flex: 0 0 auto;
}
#form #upload[disabled],
#form #submit[disabled] {
opacity: 0.5;
}
</style>
<script>
import Mousetrap from "mousetrap";
import {wrapCursor} from "undate";

View file

@ -54,6 +54,93 @@
</aside>
</template>
<style scoped>
#chat .userlist {
border-left: 1px solid #e7e7e7;
width: 180px;
display: none;
flex-direction: column;
flex-shrink: 0;
touch-action: pan-y;
}
#chat .userlist .count {
background: #fafafa;
height: 45px;
flex-shrink: 0;
position: relative;
}
#chat .userlist .search {
color: var(--body-color);
appearance: none;
border: 0;
background: none;
font: inherit;
outline: 0;
padding: 13px;
padding-right: 30px;
width: 100%;
}
#chat .userlist .names {
flex-grow: 1;
overflow: auto;
overflow-x: hidden;
padding-bottom: 10px;
width: 100%;
touch-action: pan-y;
scrollbar-width: thin;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
#chat .names .user {
display: block;
line-height: 1.6;
padding: 0 16px;
white-space: nowrap;
}
#chat .user-mode {
margin-bottom: 15px;
}
#chat .user-mode::before {
background: var(--window-bg-color);
color: var(--body-color-muted);
display: block;
font-size: 0.85em;
line-height: 1.6;
padding: 5px 16px;
position: sticky;
top: 0;
}
#chat .user-mode.owner::before {
content: "Owners";
}
#chat .user-mode.admin::before {
content: "Administrators";
}
#chat .user-mode.op::before {
content: "Operators";
}
#chat .user-mode.half-op::before {
content: "Half-Operators";
}
#chat .user-mode.voice::before {
content: "Voiced";
}
#chat .user-mode.normal::before {
content: "Users";
}
</style>
<script>
import {filter as fuzzyFilter} from "fuzzy";
import Username from "./Username.vue";

View file

@ -38,6 +38,31 @@
</div>
</template>
<style scoped>
#context-menu-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
background: transparent;
}
.passthrough {
pointer-events: none;
}
.passthrough > * {
pointer-events: auto;
}
.context-menu-divider {
height: 1px;
margin: 6px 0;
background-color: rgb(0 0 0 / 10%);
}
</style>
<script>
import {
generateUserContextMenu,

View file

@ -6,6 +6,34 @@
</div>
</template>
<style scoped>
.date-marker {
position: relative;
text-align: center;
margin: 0 10px;
z-index: 0;
font-weight: bold;
font-size: 12px;
}
.date-marker::before {
position: absolute;
z-index: -1;
content: "";
left: 0;
right: 0;
top: 50%;
border-top: 1px solid var(--date-marker-color);
}
.date-marker-text::before {
content: attr(aria-label);
background-color: var(--window-bg-color);
color: var(--date-marker-color);
padding: 0 10px;
}
</style>
<script>
import dayjs from "dayjs";
import calendar from "dayjs/plugin/calendar";

View file

@ -35,6 +35,23 @@
</form>
</template>
<style scoped>
.join-form {
padding: 0 18px 8px;
}
.join-form .input {
display: block;
margin: 5px auto;
}
.join-form .btn {
display: block;
width: 100%;
margin: auto;
}
</style>
<script>
import socket from "../js/socket";

View file

@ -129,6 +129,132 @@
</div>
</template>
<style scoped>
#chat .preview {
display: flex; /* Fix odd margin added by inline-flex in .toggle-content */
}
#chat .toggle-content {
background: #f6f6f6;
border-radius: 5px;
max-width: 100%;
margin: 0;
margin-top: 6px;
overflow: hidden;
box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
display: inline-flex !important;
align-items: flex-start;
white-space: normal;
}
/* This applies to images of preview-type-image and thumbnails of preview-type-link */
#chat .toggle-content img {
max-width: 100%;
max-height: 128px;
display: block;
cursor: zoom-in;
}
#chat .toggle-content pre.prefetch-error {
padding: 0;
margin: 0;
color: inherit;
background-color: transparent;
}
#chat .toggle-content .prefetch-error {
display: none;
}
#chat .toggle-content.opened .prefetch-error {
display: inline;
}
/* This applies to thumbnails of preview-type-link only */
#chat .toggle-content .thumb {
max-height: 54px;
max-width: 96px;
}
#chat .toggle-type-error,
#chat .toggle-content .toggle-text {
padding: 8px 10px;
}
#chat .toggle-content .toggle-text {
white-space: nowrap;
overflow: hidden;
text-align: initial;
}
#chat .toggle-content.opened .toggle-text {
white-space: normal;
}
#chat .toggle-content .head {
display: flex;
align-items: flex-start;
font-weight: bold;
}
#chat .toggle-type-error,
#chat .toggle-text .body {
color: #717171;
}
#chat .toggle-text a {
color: inherit;
}
#chat .toggle-text .overflowable {
text-overflow: ellipsis;
overflow: hidden;
flex-grow: 1;
}
#chat .toggle-content .more {
color: var(--link-color);
font-weight: normal;
margin-left: 10px;
flex-shrink: 0;
}
#chat .toggle-content .more:hover {
text-decoration: underline;
}
#chat .toggle-content .more::after {
content: " " attr(aria-label);
}
#chat .toggle-content .more-caret {
display: inline-block;
transition: transform 0.2s;
}
#chat .toggle-content .more-caret::before {
content: "\f0da"; /* https://fontawesome.com/icons/caret-right?style=solid */
}
#chat audio {
width: 600px;
max-width: 100%;
}
#chat .toggle-type-video {
max-width: 640px;
}
#chat video {
max-width: 100%;
max-height: 240px;
}
/* Do not display an empty div when there are no previews. Useful for example in
part/quit messages where we don't load previews (adds a blank line otherwise) */
#chat .preview:empty {
display: none;
}
</style>
<script>
import eventbus from "../js/eventbus";
import friendlysize from "../js/helpers/friendlysize";

View file

@ -58,9 +58,15 @@
</div>
</template>
<style>
<style scoped>
#mentions-popup-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 8;
background: transparent;
}
.mentions-popup {

View file

@ -1,6 +1,6 @@
<template>
<div ref="chat" class="chat" tabindex="-1">
<div v-show="channel.moreHistoryAvailable" class="show-more">
<div v-show="channel.moreHistoryAvailable" class="how-more">
<button
ref="loadMoreButton"
:disabled="channel.historyLoading || !$store.state.isConnected"
@ -57,6 +57,33 @@
</div>
</template>
<style scoped>
#chat .unread-marker {
position: relative;
text-align: center;
margin: 0 10px;
z-index: 0;
font-weight: bold;
font-size: 12px;
}
#chat .unread-marker::before {
position: absolute;
z-index: -1;
content: "";
left: 0;
right: 0;
top: 50%;
border-top: 1px solid var(--unread-marker-color);
}
#chat .unread-marker-text::before {
content: "New messages";
background-color: var(--window-bg-color);
color: var(--unread-marker-color);
padding: 0 10px;
}
</style>
<script>
const constants = require("../js/constants");
import eventbus from "../js/eventbus";

View file

@ -22,16 +22,16 @@
</form>
</template>
<style>
form.message-search {
<style scoped>
.message-search {
display: flex;
}
form.message-search .input-wrapper {
.message-search .input-wrapper {
display: flex;
}
form.message-search input {
.message-search input {
width: 100%;
height: auto !important;
margin: 7px 0;
@ -41,21 +41,21 @@ form.message-search input {
appearance: none;
}
form.message-search input::placeholder {
.message-search input::placeholder {
color: rgba(0, 0, 0, 0.35);
}
@media (min-width: 480px) {
form.message-search input {
@media (min-width: var(--page-content-width)) {
.message-search input {
min-width: 140px;
}
form.message-search input:focus {
.message-search input:focus {
min-width: 220px;
}
}
form.message-search .input-wrapper {
.message-search .input-wrapper {
position: absolute;
top: 45px;
left: 0;
@ -66,15 +66,14 @@ form.message-search .input-wrapper {
background: var(--window-bg-color);
}
form.message-search .input-wrapper input {
.message-search .input-wrapper input {
margin: 7px;
}
form.message-search.opened .input-wrapper {
.message-search.opened .input-wrapper {
height: 50px;
}
#chat form.message-search button {
.message-search button {
display: flex;
color: #607992;
}

View file

@ -111,6 +111,23 @@
</span>
</template>
<style scoped>
.whois {
display: grid;
grid-template-columns: max-content auto;
margin: 0;
}
.whois dt {
grid-column-start: 1;
margin-right: 20px;
}
.whois dd {
grid-column-start: 2;
}
</style>
<script>
import localetime from "../../js/helpers/localetime";
import ParsedMessage from "../ParsedMessage.vue";

View file

@ -407,32 +407,83 @@ the server tab on new connection"
</div>
</template>
<style>
#connect .connect-auth {
<style scoped>
.connect-row {
display: flex;
}
.connect-auth {
display: block;
margin-bottom: 10px;
}
#connect .connect-auth .opt {
.connect-auth .opt {
display: block;
width: 100%;
}
#connect .connect-auth input {
.connect-auth input {
margin: 3px 10px 0 0;
}
#connect .connect-sasl-external {
.connect-sasl-external {
padding: 10px;
border-radius: 2px;
background-color: #d9edf7;
color: #31708f;
}
#connect .connect-sasl-external pre {
.connect-sasl-external pre {
margin: 0;
user-select: text;
}
.connect-row > .input,
.connect-row > .input-wrap {
flex-grow: 1;
}
label {
width: 25%;
flex-shrink: 0;
margin-top: 11px;
}
.tls {
width: 100%;
display: block;
margin-top: 6px;
}
.tls input,
input[name="proxyEnabled"] {
margin: 3px 10px 0 0;
}
#connect\:host,
#connect\:proxyHost {
width: 70%;
}
#connect\:port,
#connect\:proxyPort {
width: 25%;
}
#connect\:portseparator,
#connect\:proxyPortSeparator {
width: 5%;
text-align: center;
display: inline-block;
}
.btn {
margin-top: 15px;
width: 100%;
}
#connect\:proxyEnabled[type="checkbox"]:is(:checked) {
margin-bottom: 10px;
}
</style>
<script>

View file

@ -74,7 +74,6 @@
:id="'network-' + network.uuid"
:key="network.uuid"
:class="{
collapsed: network.isCollapsed,
'not-connected': !network.status.connected,
'not-secure': !network.status.secure,
}"
@ -134,7 +133,7 @@
</div>
</template>
<style>
<style scoped>
.jump-to-input {
margin: 8px;
position: relative;
@ -193,6 +192,81 @@
.jump-to-results .channel-list-item[data-type="lobby"]::before {
content: "\f233";
}
/* Remove background on hovered/active channel when sorting/drag-and-dropping */
.ui-sortable-ghost,
.ui-sortable-dragging .channel-list-item,
.ui-sortable-dragging,
.ui-sortable-dragging:hover,
.ui-sortable-dragging.active,
.ui-sortable-dragging-touch-cue .channel-list-item,
.ui-sortable-dragging-touch-cue,
.ui-sortable-dragging-touch-cue:hover,
.ui-sortable-dragging-touch-cue.active {
background: transparent;
}
.ui-sortable-ghost::after,
.ui-sortable-dragging-touch-cue:not(.ui-sortable-dragging)::after {
background: var(--body-bg-color);
border: 1px dashed #99a2b4;
border-radius: 6px;
content: " ";
display: block;
position: absolute;
left: 10px;
top: 0;
bottom: 0;
right: 10px;
}
.ui-sortable-dragging-touch-cue:not(.ui-sortable-ghost)::after {
background: transparent;
}
#sidebar .network {
position: relative;
margin-bottom: 20px;
touch-action: pan-y;
}
#sidebar .empty {
flex-grow: 1;
line-height: 1.6;
padding: 40px 20px;
text-align: center;
}
/deep/ .channel-list-item .badge {
flex-shrink: 0;
line-height: 1;
}
/deep/ .channel-list-item .badge {
background: rgb(255 255 255 / 6%);
border-radius: 3px;
color: #afb6c0;
font-size: 10px;
padding: 4px 6px;
transition: background-color 0.2s, color 0.2s;
}
/deep/ .channel-list-item .badge:empty {
display: none;
}
/deep/ .channel-list-item .badge.highlight {
background: #fff;
color: #49505a;
}
/deep/ .channel-list-item .name {
position: relative;
flex-grow: 1;
overflow: hidden;
white-space: nowrap;
margin-right: 5px;
}
</style>
<script>

View file

@ -5,7 +5,7 @@
:aria-controls="'network-' + network.uuid"
:aria-label="getExpandLabel(network)"
:aria-expanded="!network.isCollapsed"
class="collapse-network"
:class="['collapse-network', {collapsed: network.isCollapsed}]"
@click.stop="onCollapseClick"
>
<span class="collapse-network-icon" />
@ -45,6 +45,71 @@
</ChannelWrapper>
</template>
<style scoped>
.collapse-network {
width: 40px;
opacity: 0.4;
padding-left: 11px;
transition: opacity 0.2s;
flex-shrink: 0;
}
.collapse-network-icon {
display: block;
width: 20px;
height: 20px;
transition: transform 0.2s;
}
.collapsed .collapse-network-icon {
transform: rotate(-90deg);
}
.collapse-network-icon::before {
content: "\f0d7"; /* http://fontawesome.io/icon/caret-down/ */
color: #fff;
}
.collapse-network:hover {
opacity: 1;
}
.channel-list-item[data-type="lobby"] .add-channel {
border-radius: 3px;
width: 18px;
height: 18px;
opacity: 0.4;
transition: opacity 0.2s, background-color 0.2s, transform 0.2s;
}
.channel-list-item[data-type="lobby"] .add-channel::before {
font-size: 20px;
font-weight: normal;
display: inline-block;
line-height: 16px;
text-align: center;
content: "+";
color: #fff;
}
.channel-list-item[data-type="lobby"] .add-channel:hover {
opacity: 1;
}
.channel-list-item[data-type="lobby"] .add-channel.opened {
/* translateZ(0) enables hardware acceleration, this is to avoid jittering when animating */
transform: rotate(45deg) translateZ(0);
}
.channel-list-item[data-type="lobby"]:hover,
.channel-list-item[data-type="lobby"].active {
color: #c0f8c3;
}
.add-channel-tooltip {
flex-shrink: 0;
line-height: 1;
}
</style>
<script>
import collapseNetwork from "../js/helpers/collapseNetwork";
import roundBadgeNumber from "../js/helpers/roundBadgeNumber";

View file

@ -1,3 +1,7 @@
<style scoped>
@import "../css/irc-message-styles.css";
</style>
<script>
import parse from "../js/helpers/parse";

View file

@ -79,6 +79,71 @@
</aside>
</template>
<style scoped>
#sidebar {
display: none;
flex-direction: column;
width: 220px;
max-height: 100%;
will-change: transform;
color: #b7c5d1; /* same as .channel-list-item color */
}
#sidebar .scrollable-area {
overflow-x: auto;
flex-grow: 1;
touch-action: pan-y;
scrollbar-width: thin;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
#sidebar .logo-container {
text-align: center;
}
#sidebar .logo,
#sidebar .logo-inverted {
height: 45px;
}
#sidebar .logo {
display: none;
}
#footer {
height: 45px;
font-size: 14px;
flex-shrink: 0;
display: flex;
justify-content: center;
}
#footer button {
color: #b7c5d1;
display: inline-block;
width: 45px;
height: 100%;
border-radius: 5px;
}
#footer button:hover,
#footer button.active {
color: #fff;
}
#footer .help.notified::after {
content: "\f021";
position: absolute;
bottom: 10px;
right: 7px;
padding: 2px;
font-size: 10px;
border-radius: 50%;
color: var(--link-color);
background: var(--body-bg-color);
}
</style>
<script>
import NetworkList from "./NetworkList.vue";

View file

@ -2,6 +2,38 @@
<button class="lt" aria-label="Toggle channel list" @click="$store.commit('toggleSidebar')" />
</template>
<style scoped>
/* Channel list button stays fixed when scrolling... */
.lt {
position: fixed;
}
/* ... Except on chat windows, relative to include the notification dot */
.lt {
position: relative;
}
/* Notification dot on the top right corner of the menu icon */
.lt::after {
content: "";
position: absolute;
top: 9px;
right: 7px;
background-color: #e74c3c;
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid var(--window-bg-color);
opacity: 0;
transition: opacity 0.2s;
background-clip: padding-box; /* Fix border-radius bleeding color */
}
#viewport.notified .lt::after {
opacity: 1;
}
</style>
<script>
export default {
name: "SidebarToggle",

View file

@ -18,6 +18,17 @@
</table>
</template>
<style scoped>
#chat table.channel-list .channel {
width: 80px;
}
#chat table.channel-list .users {
text-align: center;
width: 50px;
}
</style>
<script>
import ParsedMessage from "../ParsedMessage.vue";

View file

@ -35,6 +35,71 @@
</div>
</template>
<style scoped>
#version-checker {
display: flex;
align-items: center;
padding: 10px;
margin-bottom: 16px;
border-radius: 2px;
transition: color 0.2s, background-color 0.2s;
}
#version-checker p,
#version-checker button {
margin-bottom: 0;
}
#version-checker p {
flex: 1;
padding-top: 6px;
padding-bottom: 6px;
}
#version-checker::before {
margin-left: 6px;
margin-right: 12px;
font-size: 1.2em;
}
#version-checker.loading {
background-color: #d9edf7;
color: #31708f;
}
#version-checker.loading::before {
content: "\f253"; /* https://fontawesome.com/icons/hourglass-end?style=solid */
}
#version-checker.new-version,
#version-checker.new-packages {
color: #8a6d3b;
background-color: #fcf8e3;
}
#version-checker.new-version::before,
#version-checker.new-packages::before {
content: "\f164"; /* https://fontawesome.com/icons/thumbs-up?style=solid */
}
#version-checker.error {
color: #a94442;
background-color: #f2dede;
}
#version-checker.error::before {
content: "\f06a"; /* http://fontawesome.io/icon/exclamation-circle/ */
}
#version-checker.up-to-date {
background-color: #dff0d8;
color: #3c763d;
}
#version-checker.up-to-date::before {
content: "\f00c"; /* http://fontawesome.io/icon/check/ */
}
</style>
<script>
import socket from "../js/socket";

View file

@ -42,6 +42,24 @@
</div>
</template>
<style scoped>
.changelog-text {
line-height: 1.5;
}
.changelog-text p {
margin-bottom: 16px;
}
h3 {
font-size: 20px;
border-bottom: 1px solid currentcolor;
color: var(--window-heading-color);
margin: 30px 0 10px;
padding-bottom: 7px;
}
</style>
<script>
import socket from "../../js/socket";
import SidebarToggle from "../SidebarToggle.vue";

View file

@ -1,7 +1,6 @@
<template>
<NetworkForm :handle-submit="handleSubmit" :defaults="defaults" :disabled="disabled" />
</template>
<script>
import socket from "../../js/socket";
import NetworkForm from "../NetworkForm.vue";

View file

@ -829,6 +829,75 @@
</div>
</template>
<style scoped>
#help .website-link::before,
#help .documentation-link::before,
#help .report-issue-link::before {
display: inline-block;
margin-right: 5px;
/* These 2 directives are loosely taken from .fa-fw */
width: 1.35em;
text-align: center;
}
#help .website-link::before {
content: "\f0ac"; /* http://fontawesome.io/icon/globe/ */
}
#help .documentation-link::before {
content: "\f19d"; /* http://fontawesome.io/icon/graduation-cap/ */
}
#help .report-issue-link::before {
content: "\f188"; /* http://fontawesome.io/icon/bug/ */
}
#help .help-version-title {
display: flex;
justify-content: space-between;
}
#help .help-item {
display: table-row;
font-size: 14px;
}
#help .help-item .subject,
#help .help-item .description {
display: table-cell;
padding-bottom: 15px;
}
#help .help-item .subject {
white-space: nowrap;
padding-right: 15px;
}
#help .help-item .subject.gesture {
font-weight: bold;
}
#help .help-item .description p {
margin-bottom: 0;
}
kbd {
display: inline-block;
font-family: inherit;
line-height: 1em;
min-width: 28px; /* Ensure 1-char keys have the same width */
margin: 0 1px;
padding: 4px 6px;
color: #444;
text-align: center;
text-shadow: 0 1px 0 #fff;
background-color: white;
background-image: linear-gradient(180deg, rgb(0 0 0 / 5%), transparent);
border: 1px solid #bbb;
border-radius: 4px;
box-shadow: 0 2px 0 #bbb, inset 0 1px 1px #fff, inset 0 -1px 3px #ccc;
}
</style>
<script>
import SidebarToggle from "../SidebarToggle.vue";
import VersionChecker from "../VersionChecker.vue";

View file

@ -85,10 +85,19 @@
</div>
</template>
<style>
<style scoped>
@import "../../css/chat-and-search.css";
@import "../../css/colored-nicks.css";
.channel-name {
font-weight: 700;
}
.chat-view[data-type="search-results"] .search-status {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
}
</style>
<script>

View file

@ -374,7 +374,7 @@ This may break orientation if your browser does not support that."
Custom highlights
<span
class="tooltipped tooltipped-n tooltipped-no-delay"
aria-label="If a message contains any of these comma-separated
aria-label="If a message contains any of these comma-separated
expressions, it will trigger a highlight."
>
<button class="extra-help" />
@ -398,8 +398,8 @@ expressions, it will trigger a highlight."
Highlight exceptions
<span
class="tooltipped tooltipped-n tooltipped-no-delay"
aria-label="If a message contains any of these comma-separated
expressions, it will not trigger a highlight even if it contains
aria-label="If a message contains any of these comma-separated
expressions, it will not trigger a highlight even if it contains
your nickname or expressions defined in custom highlights."
>
<button class="extra-help" />
@ -530,10 +530,97 @@ your nickname or expressions defined in custom highlights."
</div>
</template>
<style>
<style scoped>
textarea#user-specified-css-input {
height: 100px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
#settings .apple-push-unsupported,
#settings .settings-sync-panel {
padding: 10px;
margin-bottom: 16px;
border-radius: 2px;
background-color: #d9edf7;
color: #31708f;
}
#settings .settings-sync-panel p:last-child {
margin-bottom: 0;
}
#settings .settings-sync-panel .btn {
color: #007bff;
border-color: #007bff;
margin-bottom: 0;
}
#settings .settings-sync-panel .btn:hover,
#settings .settings-sync-panel .btn:focus {
background-color: #007bff;
color: #fff;
}
#settings .settings-sync-panel .btn:active,
#settings .settings-sync-panel .btn:focus {
box-shadow: 0 0 0 3px rgb(0 123 255 / 50%);
}
#settings .apple-push-unsupported a {
color: inherit;
text-decoration: underline;
}
#settings .opt {
display: block;
padding: 5px 0 5px 1px;
}
#settings .opt input {
margin-right: 6px;
}
#settings h2 .extra-help {
font-size: 0.8em;
}
#settings #play {
font-size: 14px;
transition: opacity 0.2s;
color: var(--window-heading-color);
}
#settings #play:hover {
opacity: 0.8;
}
#settings #change-password .error,
#settings #change-password .success {
margin-bottom: 1em;
}
#settings #change-password .error {
color: #e74c3c;
}
#settings #change-password .success {
color: #2ecc40;
}
#settings .error {
color: #e74c3c;
margin-top: 0.2em;
}
</style>
<script>

View file

@ -55,6 +55,40 @@
</div>
</template>
<style scoped>
.container {
flex: 1 0 auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
label {
display: block;
margin-top: 10px;
width: 100%;
}
.btn {
margin-top: 25px;
}
.error {
color: #e74c3c;
margin-top: 1em;
width: 100%;
}
.password-container {
width: 100%;
}
.password-container .reveal-password {
top: 31px;
}
</style>
<script>
import storage from "../../js/localStorage";
import socket from "../../js/socket";

View file

@ -0,0 +1,52 @@
#chat {
overflow: hidden;
flex: 1 0 auto;
position: relative;
}
#chat .chat-view {
display: flex;
flex-direction: column;
}
#chat .show-more {
padding: 10px;
padding-top: 15px;
padding-bottom: 0;
width: 100%;
}
#chat .show-more .btn {
width: 100%;
margin: 0;
}
#chat .messages {
padding: 10px 0;
touch-action: pan-y;
}
.header .topic {
color: var(--body-color-muted);
margin-left: 8px;
word-break: break-all;
flex-grow: 1;
overflow: hidden;
font-size: 14px;
flex-shrink: 99999999;
min-width: 25px;
mask-image: var(--fade-long-text);
}
#chat .header {
border-bottom: 1px solid #e7e7e7;
}
.header .title {
font-size: 15px;
padding-left: 6px;
flex-shrink: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

View file

@ -0,0 +1,42 @@
#chat .time,
#chat .from,
#chat .content {
padding: 3px 0;
flex: 0 0 auto;
}
#chat .msg {
word-wrap: break-word;
word-break: break-word; /* Webkit-specific */
display: flex;
align-items: flex-start;
position: relative;
}
#chat .time {
color: var(--body-color-muted);
padding-left: 10px;
width: 55px;
font-variant-numeric: tabular-nums;
box-sizing: content-box; /* highlights have a border-left */
}
#chat .from {
padding-right: 10px;
text-align: right;
width: 134px;
overflow: hidden;
white-space: nowrap;
position: relative;
}
#chat .content {
flex: 1 1 auto;
min-width: 0;
padding-left: 10px;
padding-right: 6px;
border-left: 1px solid #f6f6f6;
overflow: hidden; /* Prevents Zalgo text to expand beyond messages */
text-align: left; /* so RTL text will still be aligned left, not right */
}

View file

@ -0,0 +1,32 @@
#chat.colored-nicks .user.color-1 { color: #107ead; }
#chat.colored-nicks .user.color-2 { color: #a86500; }
#chat.colored-nicks .user.color-3 { color: #008a3c; }
#chat.colored-nicks .user.color-4 { color: #e00096; }
#chat.colored-nicks .user.color-5 { color: #f0000c; }
#chat.colored-nicks .user.color-6 { color: #000094; }
#chat.colored-nicks .user.color-7 { color: #006441; }
#chat.colored-nicks .user.color-8 { color: #00566e; }
#chat.colored-nicks .user.color-9 { color: #e6006b; }
#chat.colored-nicks .user.color-10 { color: #0d8766; }
#chat.colored-nicks .user.color-11 { color: #006b3b; }
#chat.colored-nicks .user.color-12 { color: #00857e; }
#chat.colored-nicks .user.color-13 { color: #00465b; }
#chat.colored-nicks .user.color-14 { color: #eb005a; }
#chat.colored-nicks .user.color-15 { color: #e62600; }
#chat.colored-nicks .user.color-16 { color: #0f8546; }
#chat.colored-nicks .user.color-17 { color: #e60067; }
#chat.colored-nicks .user.color-18 { color: #eb002b; }
#chat.colored-nicks .user.color-19 { color: #eb003f; }
#chat.colored-nicks .user.color-20 { color: #007a56; }
#chat.colored-nicks .user.color-21 { color: #095092; }
#chat.colored-nicks .user.color-22 { color: #000bde; }
#chat.colored-nicks .user.color-23 { color: #008577; }
#chat.colored-nicks .user.color-24 { color: #00367d; }
#chat.colored-nicks .user.color-25 { color: #007e9e; }
#chat.colored-nicks .user.color-26 { color: #006119; }
#chat.colored-nicks .user.color-27 { color: #007ea8; }
#chat.colored-nicks .user.color-28 { color: #3c8500; }
#chat.colored-nicks .user.color-29 { color: #e6007e; }
#chat.colored-nicks .user.color-30 { color: #c75300; }
#chat.colored-nicks .user.color-31 { color: #eb0400; }
#chat.colored-nicks .user.color-32 { color: #e60082; }

307
client/css/icons.css Normal file
View file

@ -0,0 +1,307 @@
#viewport .lt::before,
#viewport .rt::before,
#chat button.mentions::before,
#chat button.close::before,
#chat button.menu::before,
#chat button.search::before,
.channel-list-item::before,
#footer .icon,
#chat .count::before,
#connect .extra-help,
#settings .extra-help,
#settings #play::before,
#form #upload::before,
#form #submit::before,
#chat .msg[data-type="away"] .from::before,
#chat .msg[data-type="back"] .from::before,
#chat .msg[data-type="invite"] .from::before,
#chat .msg[data-type="join"] .from::before,
#chat .msg[data-type="kick"] .from::before,
#chat .msg[data-type="login"] .from::before,
#chat .msg[data-type="logout"] .from::before,
#chat .msg[data-type="part"] .from::before,
#chat .msg[data-type="quit"] .from::before,
#chat .msg[data-type="topic"] .from::before,
#chat .msg[data-type="mode_channel"] .from::before,
#chat .msg[data-type="mode_user"] .from::before,
#chat .msg[data-type="mode"] .from::before,
#chat .msg[data-command="motd"] .from::before,
#chat .msg[data-command="help"] .from::before,
#chat .msg[data-command="info"] .from::before,
#chat .msg[data-type="ctcp"] .from::before,
#chat .msg[data-type="ctcp_request"] .from::before,
#chat .msg[data-type="whois"] .from::before,
#chat .msg[data-type="nick"] .from::before,
#chat .msg[data-type="action"] .from::before,
#chat .msg[data-type="plugin"] .from::before,
#chat .msg[data-type="raw"] .from::before,
#chat .msg-statusmsg span::before,
#chat .msg-shown-in-active span::before,
#chat .toggle-button::after,
#chat .toggle-content .more-caret::before,
#chat .scroll-down-arrow::after,
#chat .topic-container .save-topic span::before,
#version-checker::before,
.context-menu-item::before,
#help .website-link::before,
#help .documentation-link::before,
#help .report-issue-link::before,
#image-viewer .previous-image-btn::before,
#image-viewer .next-image-btn::before,
#image-viewer .open-btn::before,
.channel-list-item .not-secure-icon::before,
.channel-list-item .not-connected-icon::before,
.channel-list-item .parted-channel-icon::before,
.jump-to-input::before,
.password-container .reveal-password span,
#sidebar .collapse-network-icon::before {
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit; /* Can't have font-size inherit on line above, so need to override */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
#viewport .lt::before { content: "\f0c9"; /* http://fontawesome.io/icon/bars/ */ }
#viewport .rt::before { content: "\f0c0"; /* https://fontawesome.com/icons/users?style=solid */ }
#chat button.menu::before { content: "\f142"; /* http://fontawesome.io/icon/ellipsis-v/ */ }
#chat button.mentions::before { content: "\f1fa"; /* https://fontawesome.com/icons/at?style=solid */ }
#chat button.search::before { content: "\f002"; /* https://fontawesome.com/icons/search?style=solid */ }
#chat button.close::before { content: "\f00d"; /* https://fontawesome.com/icons/times?style=solid */ }
.context-menu-join::before { content: "\f067"; /* http://fontawesome.io/icon/plus/ */ }
.context-menu-user::before { content: "\f007"; /* http://fontawesome.io/icon/user/ */ }
.context-menu-close::before { content: "\f00d"; /* http://fontawesome.io/icon/times/ */ }
.context-menu-list::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ }
.context-menu-disconnect::before { content: "\f127"; /* https://fontawesome.com/icons/unlink?style=solid */ }
.context-menu-connect::before { content: "\f0c1"; /* https://fontawesome.com/icons/link?style=solid */ }
.context-menu-action-whois::before { content: "\f05a"; /* http://fontawesome.io/icon/info-circle/ */ }
.context-menu-action-ignore::before { content: "\f506"; /* https://fontawesome.com/icons/user-slash?style=solid */ }
.context-menu-action-kick::before { content: "\f05e"; /* http://fontawesome.io/icon/ban/ */ }
.context-menu-action-set-mode::before { content: "\f067"; /* http://fontawesome.io/icon/plus/ */ }
.context-menu-action-revoke-mode::before { content: "\f068"; /* http://fontawesome.io/icon/minus/ */ }
.context-menu-network::before { content: "\f233"; /* https://fontawesome.com/icons/server?style=solid */ }
.context-menu-edit::before { content: "\f303"; /* https://fontawesome.com/icons/pencil-alt?style=solid */ }
.context-menu-clear-history::before { content: "\f1f8"; /* https://fontawesome.com/icons/trash?style=solid */ }
.context-menu-mute::before { content: "\f6a9"; /* https://fontawesome.com/v5.15/icons/volume-mute?style=solid */ }
.channel-list-item .not-secure-icon::before {
content: "\f071"; /* https://fontawesome.com/icons/exclamation-triangle?style=solid */
}
.channel-list-item .not-connected-icon::before,
.channel-list-item .parted-channel-icon::before {
content: "\f127"; /* https://fontawesome.com/icons/unlink?style=solid */
}
.context-menu-query::before,
.context-menu-action-query::before,
.channel-list-item[data-type="query"]::before {
content: "\f075"; /* https://fontawesome.com/icons/comment?style=solid */
}
.context-menu-chan::before,
.channel-list-item[data-type="channel"]::before { content: "\f086"; /* http://fontawesome.io/icon/comments/ */ }
.channel-list-item[data-type="special"]::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ }
.channel-list-item.has-draft:not(.active):not([data-type="lobby"])::before {
content: "\f304"; /* https://fontawesome.com/icons/pen?style=solid */
}
#footer .connect::before { content: "\f067"; /* http://fontawesome.io/icon/plus/ */ }
#footer .settings::before { content: "\f013"; /* http://fontawesome.io/icon/cog/ */ }
#footer .help::before { content: "\f059"; /* http://fontawesome.io/icon/question/ */ }
#form #upload::before { content: "\f0c6"; /* https://fontawesome.com/icons/paperclip?style=solid */ }
#form #submit::before { content: "\f1d8"; /* http://fontawesome.io/icon/paper-plane/ */ }
#chat .msg[data-type="away"] .from::before,
#chat .msg[data-type="back"] .from::before {
content: "\f017"; /* https://fontawesome.com/icons/clock?style=solid */
color: #7f8c8d;
}
#chat .msg[data-type="invite"] .from::before {
content: "\f0e0"; /* https://fontawesome.com/icons/envelope?style=solid */
color: #2ecc40;
}
#chat .msg[data-type="login"] .from::before {
content: "\f007"; /* https://fontawesome.com/icons/user?style=solid */
color: #2ecc40;
}
#chat .msg[data-type="logout"] .from::before {
content: "\f007"; /* https://fontawesome.com/icons/user?style=solid */
color: #ff4136;
}
#chat .msg[data-type="part"] .from::before,
#chat .msg[data-type="quit"] .from::before {
content: "\f2f5"; /* https://fontawesome.com/icons/sign-out-alt?style=solid */
color: #ff4136;
display: inline-block;
transform: rotate(180deg);
}
#chat .msg[data-type="topic"] .from::before {
content: "\f0a1"; /* http://fontawesome.io/icon/bullhorn/ */
color: #2ecc40;
}
#chat .msg[data-type="mode_channel"] .from::before,
#chat .msg[data-type="mode_user"] .from::before,
#chat .msg[data-type="mode"] .from::before {
content: "\f05a"; /* http://fontawesome.io/icon/info-circle/ */
color: #2ecc40;
}
#chat .msg[data-command="motd"] .from::before {
content: "\f02e"; /* https://fontawesome.com/icons/bookmark?style=solid */
color: var(--body-color-muted);
}
#chat .msg[data-command="help"] .from::before {
content: "\f059"; /* https://fontawesome.com/icons/question-circle?style=solid */
color: var(--body-color-muted);
}
#chat .msg[data-command="info"] .from::before {
content: "\f05a"; /* https://fontawesome.com/icons/info-circle?style=solid */
color: var(--body-color-muted);
}
#chat .msg[data-type="ctcp"] .from::before,
#chat .msg[data-type="ctcp_request"] .from::before {
content: "\f15c"; /* https://fontawesome.com/icons/file-alt?style=solid */
color: var(--body-color-muted);
}
#chat .msg[data-type="whois"] .from::before {
content: "\f007"; /* http://fontawesome.io/icon/user/ */
color: #2ecc40;
}
#chat .msg[data-type="nick"] .from::before {
content: "\f007"; /* http://fontawesome.io/icon/user/ */
color: #2ecc40;
}
#chat .msg[data-type="join"] .from::before {
content: "\f2f6"; /* https://fontawesome.com/icons/sign-in-alt?style=solid */
color: #2ecc40;
}
#chat .msg[data-type="kick"] .from::before {
content: "\f05e"; /* http://fontawesome.io/icon/ban/ */
color: #ff4136;
}
#chat .msg[data-type="raw"] .from::before {
content: "\f101"; /* https://fontawesome.com/icons/angle-double-right?style=solid */
}
#chat .msg.self[data-type="raw"] .from::before {
content: "\f359"; /* https://fontawesome.com/icons/arrow-alt-circle-left?style=solid */
color: #2ecc40;
}
#chat .msg[data-type="action"] .from::before {
content: "\f005"; /* http://fontawesome.io/icon/star/ */
}
#chat .msg[data-type="plugin"] .from::before {
content: "\f1e6"; /* http://fontawesome.io/icon/plug/ */
transform: rotate(45deg);
display: inline-block;
padding: 1px;
}
#chat .msg-statusmsg,
#chat .msg-shown-in-active {
cursor: help;
margin-right: 5px;
}
#chat .msg-statusmsg span::before,
#chat .msg-shown-in-active span::before {
font-size: 10px;
content: "\f06e"; /* https://fontawesome.com/icons/eye?style=solid */
}
#chat .msg-statusmsg {
border-radius: 2px;
padding: 2px 4px;
background-color: #ff9e18;
color: #222;
}
#chat .toggle-button {
display: inline-block;
transition: opacity 0.2s, transform 0.2s;
/* These 2 directives are loosely taken from .fa-fw */
width: 1.35em;
text-align: center;
}
#chat .toggle-button::after {
content: "\f0da"; /* http://fontawesome.io/icon/caret-right/ */
}
#chat .count::before {
color: #cfcfcf;
content: "\f002"; /* http://fontawesome.io/icon/search/ */
position: absolute;
right: 13px;
line-height: 45px;
}
#connect .extra-help::before,
#settings .extra-help::before {
content: "\f059"; /* http://fontawesome.io/icon/question-circle/ */
}
#settings #play::before {
content: "\f028"; /* http://fontawesome.io/icon/volume-up/ */
margin-right: 9px;
}
#image-viewer .previous-image-btn::before {
content: "\f104"; /* http://fontawesome.io/icon/angle-left/ */
}
#image-viewer .next-image-btn::before {
content: "\f105"; /* http://fontawesome.io/icon/angle-right/ */
}
#image-viewer .open-btn::before {
content: "\f35d"; /* https://fontawesome.com/icons/external-link-alt?style=solid */
}
#viewport .lt,
#viewport .rt,
#chat button.mentions,
#chat button.search,
#chat button.menu,
#chat button.close {
color: #607992;
display: flex;
font-size: 14px;
line-height: 1;
height: 36px;
width: 36px;
margin-top: 6px;
flex-shrink: 0;
}
#viewport .lt::before,
#viewport .rt::before,
#chat button.mentions::before,
#chat button.search::before,
#chat button.menu::before,
#chat button.close::before {
width: 36px;
line-height: 36px; /* Fix alignment in Microsoft Edge */
}

View file

@ -0,0 +1,620 @@
/**
* IRC Message Styling
* Colours are credit to http://clrs.cc/
*/
.irc-fg0 {
color: #fff;
}
.irc-fg1 {
color: #000;
}
.irc-fg2 {
color: #001f3f;
}
.irc-fg3 {
color: #2ecc40;
}
.irc-fg4 {
color: #ff4136;
}
.irc-fg5 {
color: #85144b;
}
.irc-fg6 {
color: #b10dc9;
}
.irc-fg7 {
color: #ff851b;
}
.irc-fg8 {
color: #ffdc00;
}
.irc-fg9 {
color: #01ff70;
}
.irc-fg10 {
color: #39cccc;
}
.irc-fg11 {
color: #7fdbff;
}
.irc-fg12 {
color: #0074d9;
}
.irc-fg13 {
color: #f012be;
}
.irc-fg14 {
color: #aaa;
}
.irc-fg15 {
color: #ddd;
}
.irc-bg0 {
background: #fff;
}
.irc-bg1 {
background: #000;
}
.irc-bg2 {
background: #001f3f;
}
.irc-bg3 {
background: #2ecc40;
}
.irc-bg4 {
background: #ff4136;
}
.irc-bg5 {
background: #85144b;
}
.irc-bg6 {
background: #b10dc9;
}
.irc-bg7 {
background: #ff851b;
}
.irc-bg8 {
background: #ffdc00;
}
.irc-bg9 {
background: #01ff70;
}
.irc-bg10 {
background: #39cccc;
}
.irc-bg11 {
background: #7fdbff;
}
.irc-bg12 {
background: #0074d9;
}
.irc-bg13 {
background: #f012be;
}
.irc-bg14 {
background: #aaa;
}
.irc-bg15 {
background: #ddd;
}
/* https://modern.ircdocs.horse/formatting.html#colors-16-98 */
.irc-fg16 {
color: #470000;
}
.irc-fg17 {
color: #472100;
}
.irc-fg18 {
color: #474700;
}
.irc-fg19 {
color: #324700;
}
.irc-fg20 {
color: #004700;
}
.irc-fg21 {
color: #00472c;
}
.irc-fg22 {
color: #004747;
}
.irc-fg23 {
color: #002747;
}
.irc-fg24 {
color: #000047;
}
.irc-fg25 {
color: #2e0047;
}
.irc-fg26 {
color: #470047;
}
.irc-fg27 {
color: #47002a;
}
.irc-fg28 {
color: #740000;
}
.irc-fg29 {
color: #743a00;
}
.irc-fg30 {
color: #747400;
}
.irc-fg31 {
color: #517400;
}
.irc-fg32 {
color: #007400;
}
.irc-fg33 {
color: #007449;
}
.irc-fg34 {
color: #007474;
}
.irc-fg35 {
color: #004074;
}
.irc-fg36 {
color: #000074;
}
.irc-fg37 {
color: #4b0074;
}
.irc-fg38 {
color: #740074;
}
.irc-fg39 {
color: #740045;
}
.irc-fg40 {
color: #b50000;
}
.irc-fg41 {
color: #b56300;
}
.irc-fg42 {
color: #b5b500;
}
.irc-fg43 {
color: #7db500;
}
.irc-fg44 {
color: #00b500;
}
.irc-fg45 {
color: #00b571;
}
.irc-fg46 {
color: #00b5b5;
}
.irc-fg47 {
color: #0063b5;
}
.irc-fg48 {
color: #0000b5;
}
.irc-fg49 {
color: #7500b5;
}
.irc-fg50 {
color: #b500b5;
}
.irc-fg51 {
color: #b5006b;
}
.irc-fg52 {
color: #f00;
}
.irc-fg53 {
color: #ff8c00;
}
.irc-fg54 {
color: #ff0;
}
.irc-fg55 {
color: #b2ff00;
}
.irc-fg56 {
color: #0f0;
}
.irc-fg57 {
color: #00ffa0;
}
.irc-fg58 {
color: #0ff;
}
.irc-fg59 {
color: #008cff;
}
.irc-fg60 {
color: #00f;
}
.irc-fg61 {
color: #a500ff;
}
.irc-fg62 {
color: #f0f;
}
.irc-fg63 {
color: #ff0098;
}
.irc-fg64 {
color: #ff5959;
}
.irc-fg65 {
color: #ffb459;
}
.irc-fg66 {
color: #ffff71;
}
.irc-fg67 {
color: #cfff60;
}
.irc-fg68 {
color: #6fff6f;
}
.irc-fg69 {
color: #65ffc9;
}
.irc-fg70 {
color: #6dffff;
}
.irc-fg71 {
color: #59b4ff;
}
.irc-fg72 {
color: #5959ff;
}
.irc-fg73 {
color: #c459ff;
}
.irc-fg74 {
color: #f6f;
}
.irc-fg75 {
color: #ff59bc;
}
.irc-fg76 {
color: #ff9c9c;
}
.irc-fg77 {
color: #ffd39c;
}
.irc-fg78 {
color: #ffff9c;
}
.irc-fg79 {
color: #e2ff9c;
}
.irc-fg80 {
color: #9cff9c;
}
.irc-fg81 {
color: #9cffdb;
}
.irc-fg82 {
color: #9cffff;
}
.irc-fg83 {
color: #9cd3ff;
}
.irc-fg84 {
color: #9c9cff;
}
.irc-fg85 {
color: #dc9cff;
}
.irc-fg86 {
color: #ff9cff;
}
.irc-fg87 {
color: #ff94d3;
}
.irc-fg88 {
color: #000;
}
.irc-fg89 {
color: #131313;
}
.irc-fg90 {
color: #282828;
}
.irc-fg91 {
color: #363636;
}
.irc-fg92 {
color: #4d4d4d;
}
.irc-fg93 {
color: #656565;
}
.irc-fg94 {
color: #818181;
}
.irc-fg95 {
color: #9f9f9f;
}
.irc-fg96 {
color: #bcbcbc;
}
.irc-fg97 {
color: #e2e2e2;
}
.irc-fg98 {
color: #fff;
}
.irc-bg16 {
background-color: #470000;
}
.irc-bg17 {
background-color: #472100;
}
.irc-bg18 {
background-color: #474700;
}
.irc-bg19 {
background-color: #324700;
}
.irc-bg20 {
background-color: #004700;
}
.irc-bg21 {
background-color: #00472c;
}
.irc-bg22 {
background-color: #004747;
}
.irc-bg23 {
background-color: #002747;
}
.irc-bg24 {
background-color: #000047;
}
.irc-bg25 {
background-color: #2e0047;
}
.irc-bg26 {
background-color: #470047;
}
.irc-bg27 {
background-color: #47002a;
}
.irc-bg28 {
background-color: #740000;
}
.irc-bg29 {
background-color: #743a00;
}
.irc-bg30 {
background-color: #747400;
}
.irc-bg31 {
background-color: #517400;
}
.irc-bg32 {
background-color: #007400;
}
.irc-bg33 {
background-color: #007449;
}
.irc-bg34 {
background-color: #007474;
}
.irc-bg35 {
background-color: #004074;
}
.irc-bg36 {
background-color: #000074;
}
.irc-bg37 {
background-color: #4b0074;
}
.irc-bg38 {
background-color: #740074;
}
.irc-bg39 {
background-color: #740045;
}
.irc-bg40 {
background-color: #b50000;
}
.irc-bg41 {
background-color: #b56300;
}
.irc-bg42 {
background-color: #b5b500;
}
.irc-bg43 {
background-color: #7db500;
}
.irc-bg44 {
background-color: #00b500;
}
.irc-bg45 {
background-color: #00b571;
}
.irc-bg46 {
background-color: #00b5b5;
}
.irc-bg47 {
background-color: #0063b5;
}
.irc-bg48 {
background-color: #0000b5;
}
.irc-bg49 {
background-color: #7500b5;
}
.irc-bg50 {
background-color: #b500b5;
}
.irc-bg51 {
background-color: #b5006b;
}
.irc-bg52 {
background-color: #f00;
}
.irc-bg53 {
background-color: #ff8c00;
}
.irc-bg54 {
background-color: #ff0;
}
.irc-bg55 {
background-color: #b2ff00;
}
.irc-bg56 {
background-color: #0f0;
}
.irc-bg57 {
background-color: #00ffa0;
}
.irc-bg58 {
background-color: #0ff;
}
.irc-bg59 {
background-color: #008cff;
}
.irc-bg60 {
background-color: #00f;
}
.irc-bg61 {
background-color: #a500ff;
}
.irc-bg62 {
background-color: #f0f;
}
.irc-bg63 {
background-color: #ff0098;
}
.irc-bg64 {
background-color: #ff5959;
}
.irc-bg65 {
background-color: #ffb459;
}
.irc-bg66 {
background-color: #ffff71;
}
.irc-bg67 {
background-color: #cfff60;
}
.irc-bg68 {
background-color: #6fff6f;
}
.irc-bg69 {
background-color: #65ffc9;
}
.irc-bg70 {
background-color: #6dffff;
}
.irc-bg71 {
background-color: #59b4ff;
}
.irc-bg72 {
background-color: #5959ff;
}
.irc-bg73 {
background-color: #c459ff;
}
.irc-bg74 {
background-color: #f6f;
}
.irc-bg75 {
background-color: #ff59bc;
}
.irc-bg76 {
background-color: #ff9c9c;
}
.irc-bg77 {
background-color: #ffd39c;
}
.irc-bg78 {
background-color: #ffff9c;
}
.irc-bg79 {
background-color: #e2ff9c;
}
.irc-bg80 {
background-color: #9cff9c;
}
.irc-bg81 {
background-color: #9cffdb;
}
.irc-bg82 {
background-color: #9cffff;
}
.irc-bg83 {
background-color: #9cd3ff;
}
.irc-bg84 {
background-color: #9c9cff;
}
.irc-bg85 {
background-color: #dc9cff;
}
.irc-bg86 {
background-color: #ff9cff;
}
.irc-bg87 {
background-color: #ff94d3;
}
.irc-bg88 {
background-color: #000;
}
.irc-bg89 {
background-color: #131313;
}
.irc-bg90 {
background-color: #282828;
}
.irc-bg91 {
background-color: #363636;
}
.irc-bg92 {
background-color: #4d4d4d;
}
.irc-bg93 {
background-color: #656565;
}
.irc-bg94 {
background-color: #818181;
}
.irc-bg95 {
background-color: #9f9f9f;
}
.irc-bg96 {
background-color: #bcbcbc;
}
.irc-bg97 {
background-color: #e2e2e2;
}
.irc-bg98 {
background-color: #fff;
}
.irc-bold {
font-weight: bold;
}
.irc-underline {
text-decoration: underline;
}
.irc-strikethrough {
text-decoration: line-through;
}
.irc-underline.irc-strikethrough {
text-decoration: underline line-through;
}
.irc-italic {
font-style: italic;
}

View file

@ -0,0 +1,19 @@
#chat table.channel-list,
#chat table.ban-list,
#chat table.invite-list,
#chat table.ignore-list {
margin: 5px 10px;
width: calc(100% - 30px);
}
#chat table.channel-list th,
#chat table.ban-list th,
#chat table.invite-list th,
#chat table.ignore-list th,
#chat table.channel-list td,
#chat table.ban-list td,
#chat table.invite-list td {
padding: 5px;
vertical-align: top;
border-bottom: #eee 1px solid;
}

File diff suppressed because it is too large Load diff

View file

@ -160,24 +160,4 @@ kbd {
color: #99a2b4;
}
/* Form elements */
/* stylelint-disable selector-no-vendor-prefix */
#chat-container ::-moz-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
#chat-container ::-webkit-input-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
#chat-container :-ms-input-placeholder {
color: #b7c5d1;
opacity: 0.75;
}
/* stylelint-enable selector-no-vendor-prefix */
/* End form elements */