owncast/webroot/styles/app.css

260 lines
4.3 KiB
CSS
Raw Normal View History

2020-08-24 04:06:58 +02:00
/*
2020-08-24 12:30:42 +02:00
Specific styles for main app layout.
May have overrides for other components with own stylesheets.
2020-08-24 04:06:58 +02:00
*/
/* variables */
:root {
--header-height: 3.5em;
--right-col-width: 24em;
--video-container-height: calc((9 / 16) * 100vw);
2020-08-24 04:06:58 +02:00
--header-bg-color: rgba(20,0,40,1);
--user-image-width: 10em;
}
html {
font-size: 14px;
}
a:hover {
text-decoration: underline;
}
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
#app-container * {
2020-08-24 12:30:42 +02:00
transition: all .25s;
}
2020-08-24 04:37:06 +02:00
button[disabled] {
opacity: .5;
pointer-events: none;
}
2020-08-24 04:06:58 +02:00
.visually-hidden {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
white-space: nowrap; /* added line */
}
header {
height: var(--header-height);
background-color: var(--header-bg-color);
}
#logo-container {
background-size: 1.35em;
}
#chat-toggle {
min-width: 3rem;
}
#user-info-change {
display: none;
}
#stream-info span {
font-size: .70rem;
}
/* ************************************************ */
#video-container {
2020-08-24 12:30:42 +02:00
height: var(--video-container-height);
2020-08-24 04:06:58 +02:00
margin-top: var(--header-height);
position: relative;
width: 100%;
2020-08-24 12:30:42 +02:00
min-height: 480px;
max-height: calc(100vh - var(--header-height) - 2rem);
2020-08-24 04:06:58 +02:00
background-size: 30%;
}
#video-container #video {
transition: opacity .5s;
opacity: 0;
pointer-events: none;
}
2020-08-24 04:37:06 +02:00
.online #video-container #video {
2020-08-24 04:06:58 +02:00
opacity: 1;
pointer-events: auto;
}
/* *********** overrides when chat is off ***************************** */
.no-chat footer {
justify-content: center;
}
.no-chat #chat-toggle {
opacity: .75;
}
2020-08-24 12:30:42 +02:00
.no-chat #chat-container-wrap {
display: none;
}
2020-08-24 04:06:58 +02:00
/* *********** overrides when chat is on ***************************** */
2020-08-24 12:30:42 +02:00
.chat {
--content-width: calc(100vw - var(--right-col-width));
}
.chat #chat-container-wrap {
display: block;
}
2020-08-24 04:06:58 +02:00
.chat #video-container,
.chat #stream-info,
.chat #user-content {
2020-08-24 12:30:42 +02:00
width: var(--content-width);
}
.chat #video-container {
height: calc((9 / 16) * var(--content-width));
}
.short-wide.chat #video-container {
height: calc(100vh - var(--header-height) - 3rem);
min-height: auto;
}
.short-wide #message-input {
height: 3rem;
}
/* *********** single col layout ***************************** */
.single-col {
--right-col-width: 0px;
--video-container-height: calc((9 / 16) * 100vw);
2020-08-24 12:30:42 +02:00
}
.single-col main {
position: fixed;
width: 100%;
z-index: 40;
}
.single-col #chat-container {
position: relative;
width: 100%;
height: auto;
}
/* .single-col #video-container {
2020-08-24 12:30:42 +02:00
min-height: auto;
width: 100%;
} */
.single-col.chat #video-container,
.single-col.no-chat #video-container,
.single-col #video-container #video,
.single-col.chat #video-container #video {
width: 100vw;
height: var(--video-container-height);
min-height: 212px;
2020-08-24 12:30:42 +02:00
}
.single-col #user-content,
.single-col #chat-container-wrap {
margin-top: calc(var(--video-container-height) + var(--header-height) + 1rem);
}
.single-col #user-content .user-content {
flex-wrap: wrap;
justify-content: center;
}
.single-col.chat #user-content {
display: none;
}
.single-col #message-input-container {
width: 100%;
}
.single-col #message-input {
height: 3rem;
2020-08-24 04:06:58 +02:00
}
/* ************************************************8 */
@media screen and (max-width: 860px) {
:root {
--right-col-width: 20em;
--user-image-width: 6em;
}
2020-08-24 12:30:42 +02:00
}
2020-08-24 04:06:58 +02:00
2020-08-24 12:30:42 +02:00
/* ************************************************8 */
2020-08-24 04:06:58 +02:00
/* single col layout */
2020-08-24 12:30:42 +02:00
/* @media screen and (max-width: 640px ) {
2020-08-24 04:06:58 +02:00
:root {
--right-col-width: 0;
--video-container-height: 40vh;
}
#logo-container {
display: none;
}
header h1 {
max-width: 58%;
}
#user-options-container {
max-width: 41%;
}
#chat-container {
width: 100%;
position: static;
height: calc(100vh - var(--header-height) - var(--video-container-height) - 3vh)
}
#messages-container {
min-height: unset;
}
#user-content {
width: 100%;
}
#stream-info {
width: 100%;
}
#video-container {
width: 100%;
}
.chat #video-container {
width: 100%;
}
.chat #user-content {
display: none;
}
.chat footer {
display: none;
}
2020-08-24 12:30:42 +02:00
} */
2020-08-24 04:06:58 +02:00
2020-08-24 12:30:42 +02:00
/* @media screen and (max-height: 860px ) {
2020-08-24 04:06:58 +02:00
:root {
--video-container-height: 40vh;
}
.user-content {
flex-direction: column;
}
2020-08-24 12:30:42 +02:00
} */