bigly-chat/static/main.css
2024-11-25 14:12:44 -05:00

301 lines
No EOL
4.7 KiB
CSS

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