bigly-chat/static/main.css

301 lines
4.7 KiB
CSS
Raw Normal View History

2024-11-25 14:12:44 -05:00
:root {
--black: rgb(16, 16, 16);
--gray: rgb(38, 38, 38);
--white: rgb(240, 240, 240);
--primary-dark: rgb(230, 78, 78);
--primary-light: rgb(255, 200, 200);
--elem-width: min(800px, 90vw);
--elem-height: 300px;
--border-radius: 15px;
2024-11-25 14:12:44 -05:00
--font: system-ui, sans-serif;
2024-11-25 14:12:44 -05:00
color: var(--white);
background: var(--black);
2024-11-25 14:12:44 -05:00
font-family: var(--font) !important;
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.banner,
2024-11-25 14:12:44 -05:00
body {
2024-11-25 14:12:43 -05:00
display: flex;
2024-11-25 14:12:44 -05:00
flex-direction: column
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.flex-row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
2024-11-25 14:12:44 -05:00
body {
align-items: center;
2024-11-25 14:12:44 -05:00
overflow-x: hidden;
2024-11-25 14:12:44 -05:00
margin-top: 0
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.banner {
justify-content: center;
2024-11-25 14:12:44 -05:00
margin-bottom: calc(-1*var(--elem-height))
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.banner-background,
.banner-content {
height: var(--elem-height);
overflow-y: auto
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.banner-background {
border-radius: var(--border-radius);
background-color: var(--gray);
opacity: 30%;
2024-11-25 14:12:44 -05:00
object-fit: cover
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.banner-content {
margin-left: 10px;
margin-right: 10px;
position: relative;
2024-11-25 14:12:44 -05:00
top: calc(-1*var(--elem-height))
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.header {
2024-11-25 14:12:44 -05:00
z-index: 5;
2024-11-25 14:12:44 -05:00
position: sticky;
top: 0;
display: flex;
background: var(--gray);
color: var(--white);
padding: 10px;
margin-bottom: 10px;
align-items: center;
font-size: 1.2em;
2024-11-25 14:12:44 -05:00
width: calc(100vw - 20px)
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.header-link,
.link {
2024-11-25 14:12:44 -05:00
font-weight: 700;
color: var(--white)
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.header-link {
2024-11-25 14:12:44 -05:00
text-decoration: none;
2024-11-25 14:12:44 -05:00
padding-left: .5em;
margin-left: .5em;
2024-11-25 14:12:44 -05:00
border-left: solid var(--white) 2px;
}
.header>a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 1.5em;
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.header-img {
2024-11-25 14:12:44 -05:00
height: 1.5em;
width: 1.5em;
2024-11-25 14:12:44 -05:00
object-fit: cover
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.banner,
2024-11-25 14:12:44 -05:00
.banner-background,
2024-11-25 14:12:44 -05:00
.content {
2024-11-25 14:12:44 -05:00
width: var(--elem-width)
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.form {
2024-11-25 14:12:44 -05:00
width: calc(var(--elem-width) - 1rem);
2024-11-25 14:12:44 -05:00
grid-template-columns: .51fr 1fr;
display: grid
2024-11-25 14:12:43 -05:00
}
.form-key {
2024-11-25 14:12:44 -05:00
margin-right: 10px
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.comment,
2024-11-25 14:12:44 -05:00
.content,
2024-11-25 14:12:44 -05:00
.form-button,
2024-11-25 14:12:44 -05:00
.form-input,
.form {
2024-11-25 14:12:44 -05:00
border: solid var(--gray) 3px;
background: var(--black);
border-radius: var(--border-radius);
color: var(--white);
2024-11-25 14:12:44 -05:00
padding: .5rem;
margin-bottom: .5rem;
text-decoration: none
}
2024-11-25 14:12:44 -05:00
2024-11-25 14:12:44 -05:00
.form-button,
.form-heading,
.form-message {
grid-column: span 2;
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
@media (max-width: 800px) {
.form {
grid-template-columns: 1fr;
}
.form-button, .form-heading, .form-message {
grid-column: span 1;
}
}
2024-11-25 14:12:44 -05:00
.content {
margin-top: 10px;
2024-11-25 14:12:44 -05:00
width: calc(var(--elem-width) - 1rem)
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.form-button {
2024-11-25 14:12:44 -05:00
font-weight: 700;
display: inline-block;
2024-11-25 14:12:44 -05:00
background: var(--primary-dark);
2024-11-25 14:12:44 -05:00
border-color: var(--primary-light)
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.form-message {
2024-11-25 14:12:44 -05:00
margin-top: 10px;
2024-11-25 14:12:44 -05:00
font-style: italic
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.avatar {
2024-11-25 14:12:44 -05:00
display: flex
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.avatar-img {
width: 50px;
height: 50px;
2024-11-25 14:12:44 -05:00
margin-right: 15px
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:43 -05:00
2024-11-25 14:12:44 -05:00
.content-header {
2024-11-25 14:12:44 -05:00
width: var(--elem-width)
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
.videos {
display: flex;
flex-direction: row;
flex-wrap: wrap;
2024-11-25 14:12:43 -05:00
justify-content: space-around;
2024-11-25 14:12:44 -05:00
width: 90vw
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:43 -05:00
.videos a {
2024-11-25 14:12:44 -05:00
color: var(--white);
2024-11-25 14:12:44 -05:00
}
.progressbar,
2024-11-25 14:12:44 -05:00
.progressbar-div,
2024-11-25 14:12:44 -05:00
.avatar-img,
.captcha {
2024-11-25 14:12:44 -05:00
border-radius: var(--border-radius)
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
.progressbar {
2024-11-25 14:12:44 -05:00
background-color: var(--black);
border: solid var(--primary-light) 2px;
2024-11-25 14:12:43 -05:00
padding: 3px;
margin: 0;
position: relative;
top: -40px;
2024-11-25 14:12:44 -05:00
width: calc(var(--elem-width) - 7px);
2024-11-25 14:12:44 -05:00
max-width: 89vmin
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:43 -05:00
.progressbar>div {
2024-11-25 14:12:44 -05:00
background-color: var(--primary-dark);
2024-11-25 14:12:43 -05:00
width: 40%;
2024-11-25 14:12:44 -05:00
height: 20px
2024-11-25 14:12:43 -05:00
}
.controls img {
2024-11-25 14:12:44 -05:00
height: 45px;
2024-11-25 14:12:43 -05:00
width: 45px;
2024-11-25 14:12:44 -05:00
object-fit: contain;
2024-11-25 14:12:44 -05:00
margin: 5px
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.video {
2024-11-25 14:12:44 -05:00
background: var(--black);
2024-11-25 14:12:44 -05:00
padding: .5rem;
2024-11-25 14:12:44 -05:00
width: 135px;
height: 140px;
2024-11-25 14:12:44 -05:00
overflow: hidden
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:44 -05:00
2024-11-25 14:12:44 -05:00
.video div {
max-height: 22px;
2024-11-25 14:12:44 -05:00
overflow: hidden
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:44 -05:00
2024-11-25 14:12:44 -05:00
.video img {
2024-11-25 14:12:44 -05:00
width: 135px;
height: 90px;
2024-11-25 14:12:44 -05:00
object-fit: cover
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:43 -05:00
.video-wrapper.full {
2024-11-25 14:12:44 -05:00
background: rgba(0, 0, 0, .5);
2024-11-25 14:12:43 -05:00
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
2024-11-25 14:12:44 -05:00
left: 0
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
2024-11-25 14:12:44 -05:00
.header.full {
2024-11-25 14:12:44 -05:00
display: none
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:44 -05:00
.controls,
.video,
.player {
2024-11-25 14:12:44 -05:00
border: solid var(--gray) 3px;
border-radius: var(--border-radius);
2024-11-25 14:12:44 -05:00
font-size: 1rem;
margin-bottom: .5rem
}
.player {
width: 180px;
overflow-y: auto;
2024-11-25 14:12:44 -05:00
width: var(--elem-width);
height: auto;
max-height: 50vh;
2024-11-25 14:12:44 -05:00
max-width: 90vmin
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:44 -05:00
2024-11-25 14:12:44 -05:00
.full .player {
2024-11-25 14:12:44 -05:00
width: 100vw;
height: 80vh;
max-width: none;
max-height: none;
2024-11-25 14:12:44 -05:00
border: 0
2024-11-25 14:12:43 -05:00
}
2024-11-25 14:12:44 -05:00
.full .progressbar {
width: 95vw;
max-width: 95vw;
2024-11-25 14:12:44 -05:00
margin: auto
2024-11-25 14:12:44 -05:00
}
2024-11-25 14:12:44 -05:00
.controls {
2024-11-25 14:12:44 -05:00
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
2024-11-25 14:12:44 -05:00
background: var(--black);
2024-11-25 14:12:44 -05:00
margin-top: -30px;
2024-11-25 14:12:44 -05:00
padding: .5rem
2024-11-25 14:12:44 -05:00
}
img {
2024-11-25 14:12:44 -05:00
user-select: none
2024-11-25 14:12:44 -05:00
}
pre {
2024-11-25 14:12:44 -05:00
white-space: pre-wrap;
font-family: var(--font) !important;
2024-11-25 14:12:44 -05:00
}