gamja/style.css

697 lines
11 KiB
CSS
Raw Normal View History

:root {
--main-background: white;
--main-color: black;
--sidebar-background: #e3e3e3;
--expander-background: #b5b5b5;
--expander-background-hover: #a6a6a6;
--expander-border: #6c6c6c;
2021-05-27 13:45:21 -04:00
--button-color: #eff7ef;
--button-background: #545499;
2021-05-27 13:45:21 -04:00
--button-background-hover: #00007C;
--button-border: #e3e3e3;
2021-05-27 13:45:21 -04:00
--danger-button-color: #eff7ef;
--danger-button-background: #db2626;
2021-05-27 13:45:21 -04:00
--danger-button-background-hover: #B20000;
--danger-button-border: #e3e3e3;
2021-05-27 13:45:21 -04:00
--green: green;
--gray: #4a4a4a;
}
@media (prefers-color-scheme: dark) {
:root {
--main-background: #212529;
--main-color: #f8f9fa;
--sidebar-background: #131618;
--expander-background: #424446;
--expander-background-hover: #2a2d2f;
2021-05-27 13:45:21 -04:00
--button-background: #282879;
--button-background-hover: #00007C;
--button-border: #131618;
2021-05-27 13:45:21 -04:00
--danger-button-background: #B20000;
--danger-button-background-hover: red;
--danger-button-border: #131618;
--green: #53b266;
--gray: #979797;
--red: #fb615b;
}
}
2021-05-31 12:43:44 -04:00
html {
scrollbar-color: #8e8e8e transparent;
}
2020-04-24 13:01:02 -04:00
html, body {
height: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
body {
display: grid;
grid-template-rows: auto 1fr max-content;
grid-template-columns: max-content 1fr max-content;
2020-04-24 13:01:02 -04:00
font-family: monospace;
}
2021-05-27 13:45:21 -04:00
button {
background: var(--button-background);
transition: background 0.25s linear;
color: var(--button-color);
padding: 0.25rem 0.5rem;
border-style: solid;
border-color: var(--button-border);
border-width: 1px;
font-size: 0.8rem;
cursor: pointer;
2021-05-27 13:45:21 -04:00
}
button:hover {
background: var(--button-background-hover);
}
button.danger {
background: var(--danger-button-background);
color: var(--danger-button-color);
border-color: var(--danger-button-border);
}
button.danger:hover {
background: var(--danger-button-background-hover);
}
#buffer, #connect {
color: var(--main-color);
background: var(--main-background);
2020-06-05 17:35:33 -04:00
width: 100%;
2020-04-24 13:01:02 -04:00
height: 100%;
overflow-x: hidden;
overflow-y: auto;
2020-04-24 13:01:02 -04:00
}
#buffer-list, #member-list {
color: var(--main-color);
background: var(--main-background);
width: 100%;
height: 100%;
background-color: var(--sidebar-background);
grid-column: 1;
grid-row: 1 / 4;
2020-06-29 04:12:46 -04:00
display: flex;
flex-direction: row;
}
.expander {
2021-05-31 12:43:44 -04:00
display: none;
cursor: pointer;
padding: 0;
margin: 0;
background: var(--expander-background);
2021-05-27 13:45:21 -04:00
transition: background 0.2s linear;
border: none;
width: 10px;
}
.expander:hover {
background: var(--expander-background-hover);
}
.expander span {
display: block;
width: 100%;
height: 2px;
margin-bottom: 2px;
border-style: solid;
border-width: 1px 0;
border-color: var(--expander-border);
2020-04-24 13:01:02 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-list ul {
2020-04-24 13:01:02 -04:00
list-style-type: none;
margin: 0;
2020-06-25 06:41:31 -04:00
padding: 0;
2020-06-29 04:12:46 -04:00
flex: 1 0 auto;
overflow-x: hidden;
overflow-y: auto;
2021-05-31 12:43:44 -04:00
scrollbar-width: thin;
2020-06-25 06:41:31 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-list li a {
2020-04-24 13:01:02 -04:00
display: inline-block;
width: 100%;
2020-06-25 08:26:33 -04:00
padding: 2px 10px;
box-sizing: border-box;
2020-04-24 13:01:02 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-list li.active a {
2020-06-25 06:41:31 -04:00
color: white;
background-color: var(--gray);
2020-06-25 06:41:31 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-list li.unread-message a {
2020-06-25 06:41:31 -04:00
color: #b37400;
}
2020-06-29 05:08:47 -04:00
#buffer-list li.unread-highlight a {
color: #22009b;
}
#buffer-list li:not(.type-server) a {
padding-left: 20px;
}
2020-04-24 13:01:02 -04:00
2021-05-27 13:45:21 -04:00
#member-list-header {
color: var(--main-color);
background-color: var(--main-background);
box-sizing: border-box;
padding: 5px 10px;
border-bottom: 1px solid var(--sidebar-background);
}
2020-06-26 09:16:07 -04:00
#buffer-header {
2021-05-27 13:45:21 -04:00
color: var(--main-color);
background-color: var(--main-background);
box-sizing: border-box;
border-bottom: 1px solid var(--sidebar-background);
2020-06-26 08:32:56 -04:00
grid-row: 1;
grid-column: 2;
2021-05-27 13:45:21 -04:00
display: grid;
grid-template-rows: auto auto;
grid-template-columns: 1fr auto;
2021-05-27 13:45:21 -04:00
}
#buffer-header .title {
display: none;
padding: 5px 10px;
font-weight: bold;
grid-row: 1;
grid-column: 1;
2021-05-27 13:45:21 -04:00
}
#buffer-header .description {
padding: 5px 10px;
grid-row: 2;
grid-column: 1;
}
#buffer-header .actions {
grid-row: 1 / 3;
grid-column: 2;
2020-06-26 08:32:56 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-header .status-here {
color: var(--green);
2020-06-26 06:45:27 -04:00
}
2020-06-26 09:16:07 -04:00
#buffer-header .status-gone {
2020-06-26 06:45:27 -04:00
color: orange;
}
#buffer-header .status-offline {
color: red;
}
2020-06-26 06:45:27 -04:00
2021-05-27 13:45:21 -04:00
.actions {
display: flex;
flex-direction: row;
justify-content: center;
}
.actions button {
border-width: 0 0 0px 1px;
}
#buffer {
grid-row: 2;
grid-column: 2;
}
2021-08-18 02:55:23 -04:00
#buffer:focus {
outline: none;
}
2020-06-26 08:32:56 -04:00
#member-list {
grid-row: 1 / 4;
2020-06-26 08:32:56 -04:00
grid-column: 3;
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
}
#member-list > section {
display: flex;
flex-direction: column;
}
#member-list-header {
border-left: 1px solid var(--sidebar-background);
2020-06-26 08:32:56 -04:00
}
@media (max-width: 640px) {
#buffer-list ul {
width: 0px;
}
#buffer-list.expand {
z-index: 999;
grid-column: 1 / 4;
}
#buffer-list.expand ul {
width: auto;
}
}
2020-06-26 08:32:56 -04:00
#member-list ul {
list-style-type: none;
margin: 0;
padding: 0;
flex-grow: 1;
overflow-x: hidden;
overflow-y: auto;
2021-05-31 12:43:44 -04:00
scrollbar-width: thin;
2020-06-26 08:32:56 -04:00
}
#member-list li a {
display: inline-block;
width: 100%;
padding: 2px 10px;
box-sizing: border-box;
}
.membership.owner {
color: red;
}
.membership.admin {
color: blue;
}
.membership.op {
color: var(--green);
}
.membership.halfop {
color: orange;
}
.membership.voice {
color: yellow;
}
2020-04-24 13:01:02 -04:00
#composer {
color: var(--main-color);
background: var(--main-background);
grid-row: 3;
grid-column: 2 / 3;
border-top: 1px solid var(--sidebar-background);
2020-04-24 13:01:02 -04:00
}
#composer input {
display: block;
2020-04-25 14:10:11 -04:00
height: 35px;
2020-04-24 13:01:02 -04:00
width: 100%;
box-sizing: border-box;
padding: 10px;
2020-06-29 04:16:47 -04:00
}
#composer input, #composer input:focus {
2020-04-24 13:01:02 -04:00
border: none;
background: none;
2020-06-29 04:16:47 -04:00
outline: none;
2020-04-24 13:01:02 -04:00
}
#composer.read-only {
display: none;
}
2020-06-05 17:35:33 -04:00
#connect {
position: absolute;
top: 0;
left: 0;
height: 100%;
}
#connect form {
margin: 0 auto;
max-width: 350px;
padding: 10px;
box-sizing: border-box;
2020-06-05 17:35:33 -04:00
}
2021-03-08 10:23:16 -05:00
form input[type="text"],
form input[type="username"],
form input[type="password"],
2021-04-27 06:25:57 -04:00
form input[type="url"],
form input[type="email"] {
2020-06-05 17:35:33 -04:00
box-sizing: border-box;
width: 100%;
}
2020-04-24 13:01:02 -04:00
a {
color: var(--green);
2020-04-24 13:01:02 -04:00
}
2020-06-29 04:12:46 -04:00
#buffer-list li a, a.timestamp, a.nick {
color: var(--gray);
2020-04-24 13:01:02 -04:00
text-decoration: none;
}
2020-06-29 04:12:46 -04:00
#buffer-list li a:hover, #buffer-list li a:active,
2020-04-24 13:01:02 -04:00
a.timestamp:hover, a.timestamp:active,
a.nick:hover, a.nick:active {
text-decoration: underline;
}
details summary[role="button"] {
user-select: none;
cursor: pointer;
}
2020-04-25 06:51:35 -04:00
#buffer {
2020-04-25 04:28:23 -04:00
box-sizing: border-box;
color: var(--gray);
2020-06-24 14:44:45 -04:00
word-wrap: break-word;
2020-04-25 04:28:23 -04:00
}
2020-06-25 08:26:33 -04:00
#buffer .logline-list {
padding: 10px;
}
#buffer .logline {
white-space: pre-wrap;
}
2021-05-28 04:46:32 -04:00
#buffer .talk, #buffer .motd {
color: var(--main-color);
2020-04-25 04:28:23 -04:00
}
2020-06-29 08:29:31 -04:00
#buffer .error {
color: red;
}
2020-04-25 06:51:35 -04:00
#buffer .me-tell {
2020-04-25 04:28:23 -04:00
color: #b37400;
}
#buffer .highlight .nick {
color: yellow;
background-color: #c700ff;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-1 {
2020-04-24 13:01:02 -04:00
color: #f25e0d;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-2 {
2020-04-25 04:28:23 -04:00
color: #e43611;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-3 {
2020-04-25 04:28:23 -04:00
color: #f98a11;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-4 {
2020-04-25 04:28:23 -04:00
color: #b4a700;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-5 {
2020-04-25 04:28:23 -04:00
color: #89bd3b;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-6 {
2020-04-25 04:28:23 -04:00
color: #4ea847;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-7 {
2020-04-25 04:28:23 -04:00
color: #287e52;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-8 {
2020-04-25 04:28:23 -04:00
color: #117873;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-9 {
2020-04-25 04:28:23 -04:00
color: #0083a7;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-10 {
2020-04-25 04:28:23 -04:00
color: #2a6596;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-11 {
2020-04-25 04:28:23 -04:00
color: #385189;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-12 {
2020-04-25 04:28:23 -04:00
color: #434078;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-13 {
2020-04-25 04:28:23 -04:00
color: #5e4279;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-14 {
2020-04-25 04:28:23 -04:00
color: #7a447a;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-15 {
2020-04-25 04:28:23 -04:00
color: #e92980;
}
2020-04-25 06:51:35 -04:00
#buffer .nick-16 {
2020-04-25 04:28:23 -04:00
color: #ec273e;
}
#buffer .separator {
display: flex;
align-items: center;
text-align: center;
text-transform: lowercase;
font-variant: small-caps;
}
#buffer .separator::before, #buffer .separator::after {
content: "";
flex: 1;
border-bottom: 1px solid transparent;
}
#buffer .date-separator {
2021-03-02 16:17:52 -05:00
color: #757575;
}
#buffer .date-separator::before, #buffer .date-separator::after {
border-color: #ddd;
}
#buffer .unread-separator {
color: #ff3535;
}
#buffer .unread-separator::before, #buffer .unread-separator::after {
border-color: #ff3535;
}
#error-msg {
color: white;
background-color: red;
position: fixed;
bottom: 2rem;
right: 0;
padding: 0.5rem;
margin: 0.5rem;
}
#error-msg button, .dialog button.dialog-close {
border: none;
background: transparent;
color: inherit;
font-size: inherit;
padding: 0;
}
.error-text {
color: red;
}
2021-03-08 10:23:16 -05:00
.dialog {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
2021-03-08 11:26:51 -05:00
overflow: auto;
2021-03-08 10:23:16 -05:00
}
.dialog .dialog-body {
background-color: var(--main-background);
color: var(--main-color);
2021-03-08 11:26:51 -05:00
margin: 20px auto;
2021-03-08 10:23:16 -05:00
max-width: 500px;
padding: 15px;
border: 1px solid rgba(0, 0, 0, 0.6);
}
.dialog .dialog-header {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 1em;
}
.dialog .dialog-header h2 {
flex-grow: 1;
margin: 0;
}
.dialog .dialog-header button.dialog-close {
2021-03-08 10:23:16 -05:00
font-size: 1.5em;
padding: 0 5px;
2021-03-08 10:23:16 -05:00
}
.dialog h2 {
margin-top: 0;
}
.dialog form button:not([type="button"]) {
float: right;
}
.dialog form {
overflow: auto; /* hack to clear floating elements */
}
kbd {
background-color: #f0f0f0;
border: 1px solid #bfbfbf;
box-shadow: inset 0 1px 0 0 #fff, inset 0 -2px 0 0 #d9d9d9;
display: inline-block;
font-size: 80%;
margin: 3px;
min-width: 1em;
text-align: center;
white-space: nowrap;
padding: 2px 4px;
font-family: monospace;
border-radius: 3px;
}
2021-04-22 14:46:19 -04:00
@media (prefers-color-scheme: dark) {
2021-05-31 12:43:44 -04:00
html {
scrollbar-color: var(--gray) transparent;
}
2021-04-22 14:46:19 -04:00
#buffer-list li.active a {
color: var(--sidebar-background);
2021-04-22 14:46:19 -04:00
background-color: white;
}
#buffer-list li.unread-message a {
color: var(--green);
2021-04-22 14:46:19 -04:00
}
#buffer-list li.unread-highlight a {
color: #0062cc;
}
#buffer-header .status-gone {
color: #fb885b;
}
#buffer-header .status-offline {
color: var(--red);
2021-04-22 14:46:19 -04:00
}
form input[type="text"],
form input[type="username"],
form input[type="password"],
2021-04-27 06:25:57 -04:00
form input[type="url"],
form input[type="email"] {
2021-04-22 14:46:19 -04:00
color: #ffffff;
background: var(--sidebar-background);
border: 1px solid #495057;
padding: 0.25rem 0.375rem;
}
form input[type="text"]:focus,
form input[type="username"]:focus,
form input[type="password"]:focus,
2021-04-27 06:25:57 -04:00
form input[type="url"]:focus,
form input[type="email"]:focus {
outline: 0;
border-color: #3897ff;
2021-04-22 14:46:19 -04:00
}
#buffer-list li a,
a.nick {
color: var(--main-color);
2021-04-22 14:46:19 -04:00
}
#buffer {
background: var(--main-background);
2021-04-22 14:46:19 -04:00
}
#buffer .error {
color: var(--red);
2021-04-22 14:46:19 -04:00
}
#buffer .me-tell {
color: #e16b97;
2021-04-22 14:46:19 -04:00
}
#buffer .highlight .nick {
color: #1e0010;
background-color: #0062cc;
}
#buffer .date-separator {
color: #757575;
}
#buffer .date-separator::before,
#buffer .date-separator::after {
border-color: #373737;
2021-04-22 14:46:19 -04:00
}
#buffer .unread-separator {
color: var(--green);
2021-04-22 14:46:19 -04:00
}
#buffer .unread-separator::before,
#buffer .unread-separator::after {
border-color: var(--green);
2021-04-22 14:46:19 -04:00
}
#error-msg {
color: black;
background-color: #efa3aa;
}
#error-msg a {
color: black;
}
.error-text {
color: #efa3aa;
}
#buffer .nick-8 {
color: #6bccc7;
}
#buffer .nick-10 {
color: #6296c1;
}
#buffer .nick-11 {
color: #c6b5df;
}
#buffer .nick-12 {
color: #9995df;
}
#buffer .nick-13 {
color: #8b62b3;
}
#buffer .nick-15 {
color: #e3418b;
}
kbd {
--outline-color: #6e7681;
background-color: transparent;
border: 1px solid var(--outline-color);
box-shadow: inset 0 -1px 0 var(--outline-color);
}
2021-04-22 14:46:19 -04:00
}
@media (max-width: 640px) {
.expander {
2021-05-31 12:43:44 -04:00
display: block;
}
#buffer-list ul, #member-list > section {
width: 0px;
}
#buffer-list.expand, #member-list.expand {
z-index: 999;
grid-column-start: 1;
grid-column-end: 4;
}
#buffer-list.expand ul {
width: auto;
}
#member-list.expand > section {
width: 100%;
}
#member-list-header {
border-left: none;
}
2021-05-27 13:45:21 -04:00
#buffer-header {
grid-template-columns: 1fr min-content;
}
2021-05-27 13:45:21 -04:00
#buffer-header .title {
display: block;
}
}
@media (pointer: none), (pointer: coarse) {
#buffer-list li a, #member-list li a {
padding: 7px 10px;
}
}