2020-06-09 10:22:32 +02:00
|
|
|
/* variables */
|
|
|
|
:root {
|
|
|
|
--header-height: 3em;
|
|
|
|
--right-col-width: 24em;
|
2020-06-11 10:24:05 +02:00
|
|
|
|
|
|
|
--chat-bg-color: rgba(11,0,33,.95);
|
|
|
|
--header-bg-color: rgba(20,0,40,1);
|
2020-06-09 10:22:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-06-04 10:32:06 +02:00
|
|
|
body {
|
|
|
|
font-size: 14px;
|
2020-06-15 03:20:04 +02:00
|
|
|
background-color: #eee;
|
|
|
|
/* color: white; */
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 0px;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#app-container {
|
|
|
|
width: 100%;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
2020-06-09 10:22:32 +02:00
|
|
|
height: var(--header-height);
|
2020-06-04 10:32:06 +02:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2020-06-11 10:24:05 +02:00
|
|
|
background-color: var(--header-bg-color);
|
2020-06-04 10:32:06 +02:00
|
|
|
z-index: 10;
|
2020-06-14 05:15:31 +02:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2020-06-14 10:10:26 +02:00
|
|
|
flex-wrap: nowrap;
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
header h1 {
|
|
|
|
font-size: 1.25em;
|
2020-06-14 05:15:31 +02:00
|
|
|
font-weight: 100;
|
|
|
|
letter-spacing: 1.2;
|
|
|
|
text-transform: uppercase;
|
2020-06-04 10:32:06 +02:00
|
|
|
color: #ddd;
|
|
|
|
padding: .5em;
|
2020-06-14 05:15:31 +02:00
|
|
|
white-space: nowrap;
|
2020-06-14 10:10:26 +02:00
|
|
|
width: 20em;
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
|
|
|
|
2020-06-14 05:15:31 +02:00
|
|
|
#chat-toggle {
|
|
|
|
cursor: pointer;
|
2020-06-14 07:15:58 +02:00
|
|
|
background-color: #555;
|
2020-06-14 05:15:31 +02:00
|
|
|
text-align: center;
|
2020-06-14 07:15:58 +02:00
|
|
|
height: 100%;
|
2020-06-14 10:10:26 +02:00
|
|
|
min-width: 3em;
|
2020-06-14 07:15:58 +02:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
#chat-toggle:hover {
|
|
|
|
background-color: #666;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ************************************************8 */
|
|
|
|
|
|
|
|
#user-options-container {
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
2020-06-14 10:10:26 +02:00
|
|
|
flex-wrap: nowrap;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#user-info-display {
|
2020-06-14 07:15:58 +02:00
|
|
|
display: flex;
|
2020-06-14 05:15:31 +02:00
|
|
|
flex-direction: row;
|
2020-06-15 02:02:10 +02:00
|
|
|
justify-content: flex-end;
|
2020-06-14 05:15:31 +02:00
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
2020-06-14 07:15:58 +02:00
|
|
|
padding: .5em 1em;
|
2020-06-14 10:10:26 +02:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#username-avatar {
|
|
|
|
height: 1.75em;
|
|
|
|
width: 1.75em;
|
|
|
|
margin-right: .5em;
|
|
|
|
border: 1px solid rgba(255,255,255,.25)
|
|
|
|
}
|
|
|
|
#username-display {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: .75em;
|
2020-06-14 10:10:26 +02:00
|
|
|
color: #516FEB;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
#user-info-display:hover {
|
|
|
|
transition: opacity .2s;
|
|
|
|
opacity: .75;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#user-info-change {
|
2020-06-14 07:15:58 +02:00
|
|
|
display: none;
|
2020-06-14 05:15:31 +02:00
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
2020-06-14 07:15:58 +02:00
|
|
|
padding: .25em;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
#username-change-input {
|
|
|
|
font-size: .75em;
|
|
|
|
}
|
|
|
|
#button-update-username {
|
|
|
|
font-size: .65em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
height: 2.5em;
|
|
|
|
}
|
|
|
|
#button-cancel-change {
|
|
|
|
color: rgba(255,255,255,.5);
|
|
|
|
cursor: pointer;
|
|
|
|
height: 2.5em;
|
|
|
|
font-size: .65em;
|
|
|
|
}
|
|
|
|
.user-btn {
|
|
|
|
margin: 0 .25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ************************************************8 */
|
2020-06-04 10:32:06 +02:00
|
|
|
|
|
|
|
#main-content-container {
|
|
|
|
width: 100%;
|
|
|
|
flex-direction: row;
|
|
|
|
position: relative;
|
2020-06-09 10:22:32 +02:00
|
|
|
margin-top: var(--header-height);
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-cols {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.left-col {
|
2020-06-09 10:22:32 +02:00
|
|
|
width: calc(100vw - var(--right-col-width));
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
2020-06-04 11:31:41 +02:00
|
|
|
|
2020-06-14 05:15:31 +02:00
|
|
|
/* ************************************************8 */
|
|
|
|
|
2020-06-15 01:32:39 +02:00
|
|
|
.owncast-video-container {
|
2020-06-04 10:32:06 +02:00
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: center;
|
2020-06-14 08:38:09 +02:00
|
|
|
background-color: black;
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
2020-06-15 01:32:39 +02:00
|
|
|
.owncast-video-container .video-js {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
height: calc(100vh - var(--header-height) - 5em);
|
|
|
|
}
|
|
|
|
.owncast-video-container video {
|
2020-06-04 10:32:06 +02:00
|
|
|
width: 100%;
|
|
|
|
display: block;
|
2020-06-14 08:38:09 +02:00
|
|
|
min-height: 100%
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
2020-06-15 01:32:39 +02:00
|
|
|
/* ************************************************8 */
|
2020-06-04 10:32:06 +02:00
|
|
|
|
2020-06-14 05:15:31 +02:00
|
|
|
#stream-info {
|
2020-06-15 01:32:39 +02:00
|
|
|
padding: .5em 2em;
|
2020-06-14 05:15:31 +02:00
|
|
|
text-align: center;
|
|
|
|
font-family: monospace;
|
|
|
|
font-size: .75em;
|
|
|
|
background-color: rgba(0,0,0,.5);
|
|
|
|
border-bottom: 1px solid black;
|
2020-06-15 01:32:39 +02:00
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
#user-content {
|
|
|
|
padding: 2em;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ************************************************8 */
|
|
|
|
|
|
|
|
|
2020-06-04 10:32:06 +02:00
|
|
|
#chat-container {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 9;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
2020-06-09 10:22:32 +02:00
|
|
|
width: var(--right-col-width);
|
2020-06-11 10:24:05 +02:00
|
|
|
background-color: var(--chat-bg-color);
|
|
|
|
height: calc(100vh - var(--header-height));
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
2020-06-14 05:15:31 +02:00
|
|
|
|
2020-06-11 10:24:05 +02:00
|
|
|
#messages-container {
|
|
|
|
overflow: auto;
|
|
|
|
padding: 1em 0;
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
2020-06-14 05:15:31 +02:00
|
|
|
#message-input-container {
|
2020-06-04 12:15:27 +02:00
|
|
|
width: 100%;
|
|
|
|
border-top: 1px solid #eee;
|
|
|
|
padding: 1em;
|
|
|
|
background-color: #334;
|
|
|
|
}
|
|
|
|
|
2020-06-14 05:15:31 +02:00
|
|
|
#message-form {
|
2020-06-04 12:15:27 +02:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: flex-end;
|
|
|
|
margin-bottom: 0;
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|
2020-06-14 09:24:26 +02:00
|
|
|
#message-body-form {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
2020-06-14 05:15:31 +02:00
|
|
|
#message-form-actions {
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
#message-form-warning {
|
|
|
|
font-size: .75em;
|
2020-06-14 07:15:58 +02:00
|
|
|
color: red;
|
2020-06-14 05:15:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* ************************************************8 */
|
2020-06-04 10:32:06 +02:00
|
|
|
|
2020-06-09 23:12:50 +02:00
|
|
|
.message {
|
|
|
|
padding: .85em;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
.message-avatar {
|
|
|
|
height: 2.5em;
|
|
|
|
width: 2.5em;
|
|
|
|
margin-right: .75em;
|
|
|
|
background-color: rgba(0,0,0, .75);
|
|
|
|
}
|
|
|
|
.message-content {
|
|
|
|
font-size: .85em;
|
|
|
|
}
|
2020-06-14 05:15:31 +02:00
|
|
|
.message-content a {
|
|
|
|
color: #6699cc;
|
|
|
|
}
|
|
|
|
.message-content a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-06-09 23:12:50 +02:00
|
|
|
.message-author {
|
|
|
|
font-weight: 600;
|
2020-06-15 03:20:04 +02:00
|
|
|
color: #fff;
|
2020-06-09 23:12:50 +02:00
|
|
|
}
|
|
|
|
.message-text {
|
|
|
|
color: #ccc;
|
|
|
|
font-weight: 100;
|
|
|
|
}
|
2020-06-04 12:15:27 +02:00
|
|
|
|
2020-06-15 02:02:10 +02:00
|
|
|
/* ************************************************8 */
|
2020-06-04 12:15:27 +02:00
|
|
|
|
2020-06-04 10:32:06 +02:00
|
|
|
.no-chat .left-col {
|
|
|
|
width: 100vw;
|
|
|
|
}
|
|
|
|
.no-chat .right-col {
|
|
|
|
display: none;
|
2020-06-04 11:31:41 +02:00
|
|
|
}
|
|
|
|
|
2020-06-14 07:15:58 +02:00
|
|
|
.no-chat #chat-toggle {
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ************************************************8 */
|
|
|
|
|
2020-06-04 11:31:41 +02:00
|
|
|
@media screen and (max-width: 860px) {
|
2020-06-09 10:22:32 +02:00
|
|
|
:root {
|
|
|
|
--right-col-width: 20em;
|
|
|
|
}
|
|
|
|
|
2020-06-04 11:31:41 +02:00
|
|
|
#chat-container {
|
2020-06-09 10:22:32 +02:00
|
|
|
width: var(--right-col-width);
|
2020-06-04 11:31:41 +02:00
|
|
|
}
|
|
|
|
.left-col {
|
2020-06-09 10:22:32 +02:00
|
|
|
width: calc(100vw - var(--right-col-width));
|
2020-06-04 11:31:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 640px ) and (orientation: portrait) {
|
|
|
|
#main-content-container {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
2020-06-09 10:22:32 +02:00
|
|
|
height: calc(100vh - var(--header-height));
|
2020-06-04 11:31:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.main-cols {
|
|
|
|
width: 100vw;
|
|
|
|
}
|
|
|
|
.left-col {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: stretch;
|
|
|
|
}
|
|
|
|
.right-col {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2020-06-14 10:10:26 +02:00
|
|
|
#user-info {
|
|
|
|
width: 12em;
|
|
|
|
}
|
2020-06-15 02:02:10 +02:00
|
|
|
#user-content {
|
2020-06-04 11:31:41 +02:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#chat-container {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: relative;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
2020-06-15 02:02:10 +02:00
|
|
|
.owncast-video-container .video-js {
|
|
|
|
height: 40vh;
|
|
|
|
}
|
|
|
|
|
2020-06-04 11:31:41 +02:00
|
|
|
.no-chat .left-col {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.no-chat .right-col {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-06-15 02:02:10 +02:00
|
|
|
.no-chat #stream-info {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.no-chat #user-content {
|
2020-06-04 11:31:41 +02:00
|
|
|
display: block;
|
|
|
|
}
|
2020-06-04 10:32:06 +02:00
|
|
|
}
|