owncast/webroot/styles/layout.css

524 lines
8.7 KiB
CSS
Raw Normal View History

2020-06-09 11:22:32 +03:00
/* variables */
:root {
2020-06-18 20:24:54 +03:00
--header-height: 3.5em;
2020-06-09 11:22:32 +03:00
--right-col-width: 24em;
--video-container-height: 50vh;
2020-06-11 11:24:05 +03:00
--header-bg-color: rgba(20,0,40,1);
2020-06-21 11:31:08 +03:00
--user-image-width: 10em;
2020-06-09 11:22:32 +03:00
}
2020-06-04 11:32:06 +03:00
body {
font-size: 14px;
}
2020-06-18 20:24:54 +03:00
a:hover {
text-decoration: underline;
}
2020-07-19 03:44:18 +03:00
/* vuejs attribute to hide things before content ready */
2020-06-18 20:24:54 +03:00
[v-cloak] { visibility: hidden; }
2020-06-04 11:32:06 +03:00
::-webkit-scrollbar {
width: 0px;
background: transparent;
}
.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 */
}
2020-06-04 11:32:06 +03:00
#app-container {
width: 100%;
flex-direction: column;
justify-content: flex-start;
position: relative;
}
header {
position: fixed;
width: 100%;
2020-06-09 11:22:32 +03:00
height: var(--header-height);
2020-06-04 11:32:06 +03:00
top: 0;
left: 0;
2020-06-11 11:24:05 +03:00
background-color: var(--header-bg-color);
2020-06-04 11:32:06 +03:00
z-index: 10;
2020-06-14 06:15:31 +03:00
flex-direction: row;
justify-content: space-between;
2020-06-14 11:10:26 +03:00
flex-wrap: nowrap;
2020-06-04 11:32:06 +03:00
}
header h1 {
font-size: 1.25em;
2020-06-14 06:15:31 +03:00
font-weight: 100;
letter-spacing: 1.2;
text-transform: uppercase;
2020-06-04 11:32:06 +03:00
padding: .5em;
2020-06-14 06:15:31 +03:00
white-space: nowrap;
2020-06-18 20:24:54 +03:00
justify-content: flex-start;
align-items: center;
flex-direction: row;
overflow: hidden;
2020-06-18 20:24:54 +03:00
}
#logo-container{
height: 1.75em;
width: 1.75em;
min-height: 1.75em;
min-width: 1.75em;
margin-right: .5em;
2020-06-18 20:24:54 +03:00
display: inline-block;
background-repeat: no-repeat;
background-position: center center;
background-size: 1.35em;
}
header .instance-title {
overflow: hidden;
text-overflow: ellipsis;
2020-06-04 11:32:06 +03:00
}
2020-06-14 06:15:31 +03:00
#chat-toggle {
cursor: pointer;
text-align: center;
2020-06-14 08:15:58 +03:00
height: 100%;
2020-06-14 11:10:26 +03:00
min-width: 3em;
2020-06-14 08:15:58 +03:00
justify-content: center;
align-items: center;
}
2020-06-14 06:15:31 +03:00
2020-06-18 20:24:54 +03:00
footer {
flex-direction: row;
2020-06-29 01:08:08 +03:00
justify-content: flex-start;
2020-06-18 20:24:54 +03:00
font-size: .75em;
2020-06-29 01:08:08 +03:00
padding: 2em;
2020-06-29 03:15:53 +03:00
opacity: .5;
2020-06-18 20:24:54 +03:00
}
2020-06-29 01:08:08 +03:00
footer span {
display: inline-block;
margin: 0 1em;
}
/* ************************************************8 */
#stream-info {
padding: .5em 2em;
text-align: center;
width: 100%;
flex-direction: row;
justify-content: space-between;
}
#stream-info span {
font-size: .7em;
}
.user-content {
padding: 2em;
}
2020-06-29 03:15:53 +03:00
/* #user-content {
display: block;
}
#user-content-touch {
display: none;
2020-06-29 03:15:53 +03:00
} */
2020-06-14 06:15:31 +03:00
/* ************************************************8 */
.user-content {
2020-06-21 11:31:08 +03:00
padding: 3em;
display: flex;
flex-direction: row;
}
.user-content .user-image {
padding: 1em;
margin-right: 2em;
min-width: var(--user-image-width);
width: var(--user-image-width);
height: var(--user-image-width);
max-height: var(--user-image-width);
background-repeat: no-repeat;
background-position: center center;
background-size: calc(var(--user-image-width) - 1em);
2020-06-21 11:31:08 +03:00
}
/* .user-image img {
2020-06-21 11:31:08 +03:00
display: inline-block;
width: 100%;
height: 100%;
} */
2020-06-21 11:31:08 +03:00
.stream-summary {
margin: 1em 0;
}
.extra-user-content {
padding: 1em 3em 3em 3em;
}
2020-06-21 11:31:08 +03:00
h2 {
font-size: 3em;
}
.user-content-header {
margin-bottom: 2em;
}
.tag-list {
flex-direction: row;
margin: 1em 0;
}
.tag-list li {
font-size: .75em;
text-transform: uppercase;
margin-right: .75em;
padding: .5em;
}
.social-list {
flex-direction: row;
2020-06-21 10:07:57 +03:00
align-items: center;
justify-content: flex-start;
2020-06-21 11:31:08 +03:00
flex-wrap: wrap;
}
2020-06-21 10:07:57 +03:00
.social-list .follow-label {
font-weight: bold;
font-size: .75em;
margin-right: .5em;
2020-06-21 10:07:57 +03:00
text-transform: uppercase;
}
.user-social-item {
display: flex;
justify-content: flex-start;
align-items: center;
2020-06-21 10:07:57 +03:00
margin-right: -.25em;
}
.user-social-item .platform-icon {
--icon-width: 40px;
height: var(--icon-width);
width: var(--icon-width);
background-image: url(../img/social-icons.gif);
background-repeat: no-repeat;
background-position: calc(var(--imgCol) * var(--icon-width)) calc(var(--imgRow) * var(--icon-width));
transform: scale(.65);
}
.user-social-item.use-default .platform-label {
font-size: .7em;
text-transform: uppercase;
display: inline-block;
max-width: 10em;
}
2020-06-21 11:31:08 +03:00
.extra-user-content ol {
list-style: decimal;
}
.extra-user-content ul {
list-style: unset;
}
/* ************************************************8 */
2020-06-14 06:15:31 +03:00
#user-options-container {
flex-direction: row;
justify-content: flex-end;
align-items: center;
2020-06-14 11:10:26 +03:00
flex-wrap: nowrap;
2020-06-14 06:15:31 +03:00
}
#user-info-display {
2020-06-14 08:15:58 +03:00
display: flex;
2020-06-14 06:15:31 +03:00
flex-direction: row;
2020-06-15 03:02:10 +03:00
justify-content: flex-end;
2020-06-14 06:15:31 +03:00
align-items: center;
cursor: pointer;
2020-06-14 08:15:58 +03:00
padding: .5em 1em;
2020-06-14 11:10:26 +03:00
overflow: hidden;
width: 100%;
2020-06-14 06:15:31 +03:00
}
#username-avatar {
height: 2.1em;
width: 2.1em;
2020-06-14 06:15:31 +03:00
margin-right: .5em;
}
#username-display {
2020-06-15 09:12:58 +03:00
font-weight: 600;
2020-06-14 06:15:31 +03:00
font-size: .75em;
2020-06-14 11:10:26 +03:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
2020-06-14 06:15:31 +03:00
}
#user-info-display:hover {
transition: opacity .2s;
opacity: .75;
}
#user-info-change {
2020-06-14 08:15:58 +03:00
display: none;
2020-06-14 06:15:31 +03:00
justify-content: flex-end;
align-items: center;
2020-06-14 08:15:58 +03:00
padding: .25em;
2020-06-14 06:15:31 +03: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 11:32:06 +03:00
#video-container {
height: calc(var(--video-container-height));
width: 100%;
margin-top: var(--header-height);
background-position: center center;
background-repeat: no-repeat;
background-size: 30%;
2020-06-04 11:32:06 +03:00
}
2020-06-04 12:31:41 +03:00
2020-06-15 02:32:39 +03:00
.owncast-video-container {
2020-06-04 11:32:06 +03:00
height: auto;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
2020-06-15 02:32:39 +03:00
.owncast-video-container .video-js {
width: 100%;
2020-06-15 07:14:42 +03:00
height: 100%;
2020-06-15 02:32:39 +03:00
display: block;
}
.owncast-video-container video {
2020-06-04 11:32:06 +03:00
width: 100%;
display: block;
2020-06-14 09:38:09 +03:00
min-height: 100%
2020-06-04 11:32:06 +03:00
}
2020-06-15 07:27:50 +03:00
2020-06-16 12:16:21 +03:00
.vjs-airplay .vjs-icon-placeholder::before {
/* content: 'AP'; */
content: url("../img/airplay.png");
2020-06-16 12:16:21 +03:00
}
#video {
transition: opacity .5s;
opacity: 0;
pointer-events: none;
}
.online #video {
opacity: 1;
pointer-events: auto;
}
2020-06-15 02:32:39 +03:00
/* ************************************************8 */
2020-06-04 11:32:06 +03:00
2020-06-15 02:32:39 +03:00
.no-chat #chat-container-wrap {
display: none;
2020-06-15 02:32:39 +03:00
}
2020-06-29 01:08:08 +03:00
.no-chat footer {
justify-content: center;
}
.chat #chat-container-wrap {
display: block;
2020-06-14 06:15:31 +03:00
}
.chat #video-container,
.chat #stream-info,
.chat #user-content {
width: calc(100% - var(--right-col-width));
}
2020-06-14 06:15:31 +03:00
2020-06-04 11:32:06 +03:00
#chat-container {
position: fixed;
z-index: 9;
top: var(--header-height);
2020-06-04 11:32:06 +03:00
right: 0;
2020-06-09 11:22:32 +03:00
width: var(--right-col-width);
2020-06-15 07:14:42 +03:00
height: calc(100vh - var(--header-height));
2020-06-15 07:14:42 +03:00
2020-06-11 11:24:05 +03:00
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.touch-screen #chat-container {
height: calc(100vh - var(--header-height) - 3vh);
}
2020-06-14 06:15:31 +03:00
2020-06-11 11:24:05 +03:00
#messages-container {
overflow: auto;
padding: 1em 0;
min-height: 50vh;
2020-06-04 11:32:06 +03:00
}
2020-06-14 06:15:31 +03:00
#message-input-container {
2020-06-04 13:15:27 +03:00
width: 100%;
padding: 1em;
}
2020-06-14 06:15:31 +03:00
#message-form {
2020-06-04 13:15:27 +03:00
flex-direction: column;
align-items: flex-end;
margin-bottom: 0;
2020-06-04 11:32:06 +03:00
}
2020-06-14 10:24:26 +03:00
#message-body-form {
font-size: 1em;
}
#message-body-form:disabled{
opacity: .5;
}
2020-06-14 06:15:31 +03:00
#message-form-actions {
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
}
2020-06-15 09:12:58 +03:00
2020-06-14 06:15:31 +03:00
/* ************************************************8 */
2020-06-04 11:32:06 +03:00
2020-06-10 00:12:50 +03:00
.message {
padding: .85em;
align-items: flex-start;
}
.message-avatar {
margin-right: .75em;
}
.message-avatar img {
max-width: unset;
height: 25.em;
width: 2.5em;
padding: 6px;
}
2020-06-10 00:12:50 +03:00
.message-content {
font-size: .85em;
}
2020-06-14 06:15:31 +03:00
.message-content a {
2020-06-15 09:12:58 +03:00
color: #7F9CF5; /* indigo-400 */
2020-06-14 06:15:31 +03:00
}
.message-content a:hover {
text-decoration: underline;
}
2020-06-15 09:12:58 +03:00
2020-06-04 13:15:27 +03:00
2020-06-15 03:02:10 +03:00
/* ************************************************8 */
2020-06-04 13:15:27 +03:00
2020-06-04 12:31:41 +03:00
2020-06-14 08:15:58 +03:00
.no-chat #chat-toggle {
2020-06-15 09:12:58 +03:00
opacity: .75;
2020-06-14 08:15:58 +03:00
}
/* ************************************************8 */
@media screen and (max-width: 860px) {
:root {
--right-col-width: 20em;
--user-image-width: 6em;
}
#chat-container {
width: var(--right-col-width);
}
}
/* single col layout */
@media screen and (max-width: 640px ) {
: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;
/* min-height: calc(100vh - var(--header-height)); */
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;
}
}
/* try not making the video fixed position for now */
@media (min-height: 861px) {
/* main {
position: fixed;
z-index: 9;
width: 100%;
}
#user-content {
margin-top: calc(var(--video-container-height) + var(--header-height) + 2em)
} */
}
@media screen and (max-height: 860px ) {
:root {
--video-container-height: 40vh;
}
.user-content {
flex-direction: column;
}
}