Fallback CSSs if /static is missing.
This commit is contained in:
parent
562082d199
commit
aa8da06510
|
@ -0,0 +1 @@
|
|||
/static
|
|
@ -0,0 +1,171 @@
|
|||
/* Standalone page's configuration */
|
||||
|
||||
body {
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
#v5shoutbox {
|
||||
height: 100vh;
|
||||
--shoutbox-color: #333333;
|
||||
--shoutbox-border-color: rgba(0, 0, 0, .15);
|
||||
--shoutbox-header-bg: #ececec;
|
||||
--shoutbox-link-color: #ce1919;
|
||||
--shoutbox-tab-activity-color: #ce1919;
|
||||
--shoutbox-tab-fg: black;
|
||||
--shoutbox-tab-selected-bg: #808080;
|
||||
--shoutbox-tab-selected-fg: white;
|
||||
--shoutbox-message-date-color: #949494;
|
||||
--shoutbox-message-author-color: #777777;
|
||||
--shoutbox-message-bg1: #ffffff;
|
||||
--shoutbox-message-bg2: #f8f8f8;
|
||||
}
|
||||
|
||||
/* Shoutbox-only style */
|
||||
|
||||
#v5shoutbox {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
font-size: 12px;
|
||||
color: var(--shoutbox-color);
|
||||
}
|
||||
|
||||
#v5shoutbox header {
|
||||
height: 2em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--shoutbox-header-bg);
|
||||
border: none;
|
||||
gap: 4px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
#v5shoutbox header .grow {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
#v5shoutbox a {
|
||||
color: var(--shoutbox-link-color);
|
||||
}
|
||||
|
||||
#v5shoutbox a:active, #v5shoutbox a:hover, #v5shoutbox a:focus {
|
||||
color: var(--shoutbox-link-color);
|
||||
text-decoration: underline;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox pre {
|
||||
overflow: auto;
|
||||
word-wrap: normal;
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#v5shoutbox a.tab {
|
||||
padding: 4px 8px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
font-family: monospace;
|
||||
color: var(--shoutbox-tab-fg);
|
||||
}
|
||||
|
||||
#v5shoutbox a.tab:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#v5shoutbox a.tab.current {
|
||||
background: var(--shoutbox-tab-selected-bg);
|
||||
color: var(--shoutbox-tab-selected-fg);
|
||||
}
|
||||
|
||||
#v5shoutbox a.tab.bg-activity {
|
||||
color: var(--shoutbox-tab-activity-color);
|
||||
}
|
||||
|
||||
#v5shoutbox .channels {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#v5shoutbox .channels div[data-channel="\\login"] {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#v5shoutbox .channels .login-form {
|
||||
height: 30%;
|
||||
width: 40%;
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
padding: 0 2%;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
|
||||
#v5shoutbox .channel {
|
||||
overflow-x: auto;
|
||||
overflow-y: scroll;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
|
||||
#v5shoutbox .message {
|
||||
line-height: 1.4;
|
||||
display: flex;
|
||||
background: var(--shoutbox-message-bg1);
|
||||
padding: 3px 0 0 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .message:nth-child(2n) {
|
||||
background: var(--shoutbox-message-bg2);
|
||||
}
|
||||
|
||||
#v5shoutbox .message .message-author {
|
||||
margin-right: 6px;
|
||||
font-size: 0.9em;
|
||||
color: var(--shoutbox-message-author-color);
|
||||
min-width: 80px;
|
||||
text-align: right;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .message .message-content {
|
||||
flex-grow: 1;
|
||||
margin: 0;
|
||||
word-wrap: normal;
|
||||
word-break: break-word;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
#v5shoutbox .message .message-date {
|
||||
color: var(--shoutbox-message-date-color);
|
||||
margin-left: 5px;
|
||||
font-size: 0.8em;
|
||||
order: 3;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form {
|
||||
height: 2.4em;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form input[type=text] {
|
||||
width: 95%;
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form button[type=submit] {
|
||||
width: 5%;
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
border-radius: 0;
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Planète Casio Websocket IRC</title>
|
||||
<script src="v5shoutbox.js"></script>
|
||||
<link href="fallback.css" rel="stylesheet">
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="/static/css/themes/default_theme.css" rel="stylesheet">
|
||||
<link href="/static/css/global.css" rel="stylesheet">
|
||||
|
|
30
style.css
30
style.css
|
@ -7,13 +7,19 @@ body {
|
|||
|
||||
#v5shoutbox {
|
||||
height: 100vh;
|
||||
--shoutbox-color: var(--text);
|
||||
--shoutbox-color: var(--text, #000);
|
||||
--shoutbox-border-color: rgba(0, 0, 0, .15);
|
||||
--shoutbox-link-color: var(--links);
|
||||
--shoutbox-link-color: var(--links, #c61a1a);
|
||||
--shoutbox-tab-activity-color: #ce1919;
|
||||
--shoutbox-tab-current-color: #097ba1;
|
||||
--shoutbox-message-date-color: #949494;
|
||||
--shoutbox-message-author-color: #777777;
|
||||
--shoutbox-info: var(--info, #2e7aec);
|
||||
--shoutbox-info-text: var(--info-text, #fff);
|
||||
--shoutbox-warn: var(--warn, #f59f25);
|
||||
--shoutbox-warn-text: var(--warn-text, #fff);
|
||||
--shoutbox-ok: var(--ok, #149641);
|
||||
--shoutbox-ok-text: var(--ok-text, #fff);
|
||||
}
|
||||
|
||||
/* Shoutbox-only style */
|
||||
|
@ -29,8 +35,8 @@ body {
|
|||
height: 2em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--background);
|
||||
border-bottom: var(--border);
|
||||
background: var(--background, #f4f4f6);
|
||||
border-bottom: var(--border, 1px solid #d8d8d8);
|
||||
gap: 4px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
@ -39,7 +45,7 @@ body {
|
|||
}
|
||||
|
||||
#v5shoutbox a {
|
||||
color: var(--links);
|
||||
color: var(--shoutbox-link-color);
|
||||
}
|
||||
|
||||
#v5shoutbox pre {
|
||||
|
@ -63,9 +69,9 @@ body {
|
|||
border-radius: 3px;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--info);
|
||||
color: var(--info-text);
|
||||
border: var(--border);
|
||||
background-color: var(--shoutbox-info);
|
||||
color: var(--shoutbox-info-text);
|
||||
border: var(--border, 1px solid #d8d8d8);
|
||||
}
|
||||
|
||||
#v5shoutbox .channel-buttons button:first-child {
|
||||
|
@ -87,12 +93,12 @@ body {
|
|||
}
|
||||
|
||||
#v5shoutbox .channel-buttons *.bg-activity {
|
||||
background-color: var(--warn);
|
||||
color: var(--warn-text);
|
||||
background-color: var(--shoutbox-warn);
|
||||
color: var(--shoutbox-warn-text);
|
||||
}
|
||||
#v5shoutbox .channel-buttons *.current {
|
||||
background-color: var(--ok);
|
||||
color: var(--ok-text);
|
||||
background-color: var(--shoutbox-ok);
|
||||
color: var(--shoutbox-ok-text);
|
||||
}
|
||||
|
||||
#v5shoutbox .channels {
|
||||
|
|
Loading…
Reference in New Issue