forked from devs/v5shoutbox
166 lines
3.3 KiB
CSS
166 lines
3.3 KiB
CSS
/* 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-current-color: #097ba1;
|
|
--shoutbox-message-date-color: #949494;
|
|
--shoutbox-message-author-color: #777777;
|
|
}
|
|
|
|
/* 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: 1px solid var(--shoutbox-border-color);
|
|
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 .channel-buttons button {
|
|
border: 1px solid var(--shoutbox-border-color);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
#v5shoutbox .channel-buttons button:nth-child(1) {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-right: 0:
|
|
}
|
|
#v5shoutbox .channel-buttons button:nth-child(2) {
|
|
border-radius: 0;
|
|
border-right: 0;
|
|
}
|
|
#v5shoutbox .channel-buttons button:nth-child(3) {
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
#v5shoutbox .channel-buttons *.bg-activity {
|
|
color: var(--shoutbox-tab-activity-color);
|
|
}
|
|
#v5shoutbox .channel-buttons *.current {
|
|
color: var(--shoutbox-tab-current-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.5;
|
|
display: flex;
|
|
border-top: 1px solid var(--shoutbox-border-color);
|
|
}
|
|
|
|
#v5shoutbox .message .message-author {
|
|
margin-right: 6px;
|
|
font-size: 0.9em;
|
|
color: var(--shoutbox-message-author-color);
|
|
min-width: 70px;
|
|
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;
|
|
}
|