0
owncast/webroot/styles/layout.css

458 lines
7.9 KiB
CSS
Raw Normal View History

2020-06-09 01:22:32 -07:00
/* variables */
:root {
--header-height: 3em;
--right-col-width: 24em;
--video-container-height: 50vh;
2020-06-11 01:24:05 -07:00
--header-bg-color: rgba(20,0,40,1);
2020-06-15 15:45:55 -07:00
--vh: 1vh;
2020-06-09 01:22:32 -07:00
}
2020-06-04 01:32:06 -07:00
body {
font-size: 14px;
}
::-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 01:22:32 -07:00
height: var(--header-height);
2020-06-04 01:32:06 -07:00
top: 0;
left: 0;
2020-06-11 01:24:05 -07:00
background-color: var(--header-bg-color);
2020-06-04 01:32:06 -07:00
z-index: 10;
2020-06-13 20:15:31 -07:00
flex-direction: row;
justify-content: space-between;
2020-06-14 01:10:26 -07:00
flex-wrap: nowrap;
2020-06-04 01:32:06 -07:00
}
header h1 {
font-size: 1.25em;
2020-06-13 20:15:31 -07:00
font-weight: 100;
letter-spacing: 1.2;
text-transform: uppercase;
2020-06-04 01:32:06 -07:00
padding: .5em;
2020-06-13 20:15:31 -07:00
white-space: nowrap;
2020-06-14 01:10:26 -07:00
width: 20em;
2020-06-04 01:32:06 -07:00
}
2020-06-13 20:15:31 -07:00
#chat-toggle {
cursor: pointer;
text-align: center;
2020-06-13 22:15:58 -07:00
height: 100%;
2020-06-14 01:10:26 -07:00
min-width: 3em;
2020-06-13 22:15:58 -07:00
justify-content: center;
align-items: center;
}
2020-06-13 20:15:31 -07:00
/* ************************************************8 */
#user-options-container {
flex-direction: row;
justify-content: flex-end;
align-items: center;
2020-06-14 01:10:26 -07:00
flex-wrap: nowrap;
2020-06-13 20:15:31 -07:00
}
#user-info-display {
2020-06-13 22:15:58 -07:00
display: flex;
2020-06-13 20:15:31 -07:00
flex-direction: row;
2020-06-14 17:02:10 -07:00
justify-content: flex-end;
2020-06-13 20:15:31 -07:00
align-items: center;
cursor: pointer;
2020-06-13 22:15:58 -07:00
padding: .5em 1em;
2020-06-14 01:10:26 -07:00
overflow: hidden;
width: 100%;
2020-06-13 20:15:31 -07:00
}
#username-avatar {
height: 1.75em;
width: 1.75em;
margin-right: .5em;
}
#username-display {
2020-06-14 23:12:58 -07:00
font-weight: 600;
2020-06-13 20:15:31 -07:00
font-size: .75em;
2020-06-14 01:10:26 -07:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2020-06-13 20:15:31 -07:00
}
#user-info-display:hover {
transition: opacity .2s;
opacity: .75;
}
#user-info-change {
2020-06-13 22:15:58 -07:00
display: none;
2020-06-13 20:15:31 -07:00
justify-content: flex-end;
align-items: center;
2020-06-13 22:15:58 -07:00
padding: .25em;
2020-06-13 20:15:31 -07:00
}
#username-change-input {
font-size: .75em;
}
#button-update-username {
font-size: .65em;
text-transform: uppercase;
height: 2.5em;
}
#button-cancel-change {
cursor: pointer;
height: 2.5em;
font-size: .65em;
}
.user-btn {
margin: 0 .25em;
}
/* ************************************************8 */
2020-06-04 01:32:06 -07:00
#main-content-container {
width: 100%;
flex-direction: row;
position: relative;
2020-06-09 01:22:32 -07:00
margin-top: var(--header-height);
2020-06-04 01:32:06 -07:00
}
.main-cols {
flex-direction: column;
justify-content: flex-start;
position: relative;
}
.left-col {
2020-06-09 01:22:32 -07:00
width: calc(100vw - var(--right-col-width));
2020-06-04 01:32:06 -07:00
}
2020-06-04 02:31:41 -07:00
2020-06-13 20:15:31 -07:00
/* ************************************************8 */
2020-06-14 16:32:39 -07:00
.owncast-video-container {
2020-06-04 01:32:06 -07:00
width: 100%;
height: auto;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
2020-06-14 21:14:42 -07:00
height: calc(100vh - 8em); /* Fallback for browsers that do not support Custom Properties */
height: calc((var(--vh, 1vh) * 100) - var(--header-height) - 5em);
2020-06-04 01:32:06 -07:00
}
2020-06-14 16:32:39 -07:00
.owncast-video-container .video-js {
width: 100%;
2020-06-14 21:14:42 -07:00
height: 100%;
2020-06-14 16:32:39 -07:00
display: block;
}
.owncast-video-container video {
2020-06-04 01:32:06 -07:00
width: 100%;
display: block;
2020-06-13 23:38:09 -07:00
min-height: 100%
2020-06-04 01:32:06 -07:00
}
2020-06-14 21:27:50 -07:00
.video-js .vjs-big-play-button {
left: 50%;
top: 50%;
margin-left: -1.5em;
margin-top: -0.75em;
}
2020-06-14 16:32:39 -07:00
/* ************************************************8 */
2020-06-04 01:32:06 -07:00
2020-06-13 20:15:31 -07:00
#stream-info {
2020-06-14 16:32:39 -07:00
padding: .5em 2em;
2020-06-13 20:15:31 -07:00
text-align: center;
2020-06-14 23:12:58 -07:00
font-size: .7em;
2020-06-14 16:32:39 -07:00
flex-direction: row;
justify-content: space-between;
2020-06-15 15:45:55 -07:00
2020-06-14 16:32:39 -07:00
}
#user-content {
padding: 2em;
2020-06-13 20:15:31 -07:00
}
/* ************************************************8 */
#xchat-container {
2020-06-04 01:32:06 -07:00
position: fixed;
z-index: 9;
right: 0;
height: 100%;
2020-06-09 01:22:32 -07:00
width: var(--right-col-width);
2020-06-14 21:14:42 -07:00
height: calc(100vh - 3em); /* Fallback for browsers that do not support Custom Properties */
height: calc((var(--vh, 1vh) * 100) - var(--header-height));
2020-06-11 01:24:05 -07:00
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
2020-06-13 20:15:31 -07:00
2020-06-11 01:24:05 -07:00
#messages-container {
overflow: auto;
padding: 1em 0;
2020-06-04 01:32:06 -07:00
}
2020-06-13 20:15:31 -07:00
#message-input-container {
2020-06-04 03:15:27 -07:00
width: 100%;
padding: 1em;
}
2020-06-13 20:15:31 -07:00
#message-form {
2020-06-04 03:15:27 -07:00
flex-direction: column;
align-items: flex-end;
margin-bottom: 0;
2020-06-04 01:32:06 -07:00
}
2020-06-14 00:24:26 -07:00
#message-body-form {
font-size: 1em;
}
2020-06-13 20:15:31 -07:00
#message-form-actions {
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
}
2020-06-14 23:12:58 -07:00
2020-06-13 20:15:31 -07:00
/* ************************************************8 */
2020-06-04 01:32:06 -07:00
2020-06-09 14:12:50 -07:00
.message {
padding: .85em;
align-items: flex-start;
}
.message-avatar {
height: 2.5em;
width: 2.5em;
margin-right: .75em;
}
.message-content {
font-size: .85em;
}
2020-06-13 20:15:31 -07:00
.message-content a {
2020-06-14 23:12:58 -07:00
color: #7F9CF5; /* indigo-400 */
2020-06-13 20:15:31 -07:00
}
.message-content a:hover {
text-decoration: underline;
}
2020-06-14 23:12:58 -07:00
2020-06-04 03:15:27 -07:00
2020-06-14 17:02:10 -07:00
/* ************************************************8 */
/*
2020-06-04 01:32:06 -07:00
.no-chat .left-col {
width: 100vw;
}
.no-chat .right-col {
display: none;
} */
2020-06-04 02:31:41 -07:00
2020-06-13 22:15:58 -07:00
.no-chat #chat-toggle {
2020-06-14 23:12:58 -07:00
opacity: .75;
2020-06-13 22:15:58 -07:00
}
/* ************************************************8 */
2020-06-15 17:40:12 -07:00
.landscape #chat-toggle {
display: none;
}
/* ************************************************8 */
2020-06-04 02:31:41 -07:00
@media screen and (max-width: 860px) {
2020-06-09 01:22:32 -07:00
:root {
--right-col-width: 20em;
}
#xchat-container {
2020-06-09 01:22:32 -07:00
width: var(--right-col-width);
2020-06-04 02:31:41 -07:00
}
.left-col {
2020-06-09 01:22:32 -07:00
width: calc(100vw - var(--right-col-width));
2020-06-04 02:31:41 -07:00
}
}
2020-06-15 15:45:55 -07:00
/* ************************************************8 */
/*
2020-06-15 15:45:55 -07:00
@media screen and (max-width: 640px ) {
2020-06-04 02:31:41 -07:00
#main-content-container {
flex-direction: column;
justify-content: space-between;
2020-06-15 00:15:23 -07:00
height: calc((var(--vh, 1vh) * 100) - var(--header-height));
2020-06-04 02:31:41 -07:00
}
.main-cols {
width: 100vw;
}
.left-col {
flex-direction: column;
justify-content: stretch;
2020-06-14 21:14:42 -07:00
z-index: 100;
2020-06-15 17:40:12 -07:00
height: 55%;
min-height: 300px;
2020-06-04 02:31:41 -07:00
}
.right-col {
overflow: hidden;
2020-06-15 17:40:12 -07:00
height: 45%;
2020-06-04 02:31:41 -07:00
}
2020-06-14 01:10:26 -07:00
#user-info {
2020-06-14 21:14:42 -07:00
width: 9em;
2020-06-14 01:10:26 -07:00
}
2020-06-14 17:02:10 -07:00
#user-content {
2020-06-04 02:31:41 -07:00
display: none;
}
#xchat-container {
2020-06-04 02:31:41 -07:00
width: 100%;
height: 100%;
position: relative;
height: auto;
}
2020-06-14 21:14:42 -07:00
.owncast-video-container {
2020-06-15 17:40:12 -07:00
height: 100%;
}
.no-chat .left-col {
height: 100%;
}
.no-chat .owncast-video-container {
min-height: 50vh;
2020-06-14 17:02:10 -07:00
}
2020-06-04 02:31:41 -07:00
.no-chat .right-col {
display: none;
}
.no-chat #xstream-info {
2020-06-14 21:14:42 -07:00
display: flex;
2020-06-14 17:02:10 -07:00
}
.no-chat #user-content {
2020-06-04 02:31:41 -07:00
display: block;
}
} */
2020-06-15 00:15:23 -07:00
/*
2020-06-15 16:23:39 -07:00
.message-input-focus #main-content-container {
2020-06-15 00:15:23 -07:00
flex-direction: column;
justify-content: space-between;
height: calc((var(--vh, 1vh) * 100) - var(--header-height));
}
2020-06-15 16:23:39 -07:00
.message-input-focus .main-cols {
2020-06-15 00:15:23 -07:00
width: 100vw;
}
2020-06-15 16:23:39 -07:00
.message-input-focus .left-col {
2020-06-15 00:15:23 -07:00
flex-direction: column;
justify-content: stretch;
z-index: 100;
}
2020-06-15 16:23:39 -07:00
.message-input-focus .right-col {
2020-06-15 00:15:23 -07:00
overflow: hidden;
}
2020-06-15 16:23:39 -07:00
.message-input-focus #user-info {
2020-06-15 00:15:23 -07:00
width: 9em;
}
2020-06-15 16:23:39 -07:00
.message-input-focus #user-content {
2020-06-15 00:15:23 -07:00
display: none;
}
2020-06-15 16:23:39 -07:00
.message-input-focus #chat-container {
2020-06-15 00:15:23 -07:00
width: 100%;
height: 100%;
position: relative;
height: auto;
2020-06-15 16:23:39 -07:00
z-index: 999;
2020-06-15 00:15:23 -07:00
}
2020-06-15 16:23:39 -07:00
.message-input-focus .owncast-video-container {
2020-06-15 00:15:23 -07:00
height: 40vh;
height: calc((var(--vh, 1vh) * 40));
min-height: 300px;
} */
/* ************************************************8 */
/* ************************************************8 */
.touch-screen header {
position: relative;
}
.touch-screen #fixed-content {
position: fixed;
left: 0;
top: 0;
width: 100%;
}
.touch-screen #main-content-container {
display: none;
}
.touch-screen #stream-info {
height: 2.5em;
overflow: hidden;
}
#main-mobile-container {
flex-direction: column;
margin-top: calc(var(--header-height) + var(--video-container-height));
}
.touch-screen #video-container {
height: var(--video-container-height);
}
.touch-screen .owncast-video-container {
height: 100%;
}
.touch-screen #user-content {
display: none;
}
.touch-screen #chat-container {
display: block;
}
.touch-screen.no-chat #user-content {
display: block;
}
.touch-screen.no-chat #chat-container {
display: none;
}
@media screen and (max-width: 640px ) {
:root {
--video-container-height: 36vh;
}
}
@media screen and (orientation: landscape) and (min-width: 1024px) {
:root {
--video-container-height: 65vh;
}
}
@media screen and (orientation: landscape) and (max-width: 1024px) {
:root {
--video-container-height: 75vh;
}
#main-mobile-container {
margin-top: calc(var(--header-height) + var(--video-container-height));
}
.touch-screen #user-content {
display: block;
}
.touch-screen #chat-container {
display: none;
}
.touch-screen #chat-toggle {
display: none;
}
}