css improvements

This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent 3929c07717
commit 5b9197bb20
11 changed files with 385 additions and 242 deletions

View file

@ -1,43 +1,156 @@
/* https://git.zenoverse.net/bigly-archive/auth-thing/raw/branch/main/src/routes/+layout.svelte */
body {
height: 100vh;
margin-top: 0px;
: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;
color: var(--white);
background: var(--black);
font-family: system-ui, sans-serif;
}
body {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 0;
}
.banner {
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: calc(-1 * var(--elem-height));
}
.banner-background {
border-radius: var(--border-radius);
background-color: var(--gray);
opacity: 30%;
object-fit: cover;
}
.banner-background,
.banner-content {
height: var(--elem-height);
overflow-y: auto;
}
:root {
--dark-1: #2f2b36;
--dark-2: #d8d8d8;
--light-1: #ffffff;
--light-2: #ffa9d8;
--hyperlink: rgb(109, 119, 255);
--shadow-1: 0px 0px 2px 2px var(--dark-2);
font-family: sans-serif;
.banner-content {
margin-left: 10px;
margin-right: 10px;
position: relative;
top: calc(-1 * var(--elem-height));
}
a {
color: var(--hyperlink);
.header {
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 {
text-decoration: none;
font-weight: bold;
color: var(--white);
}
input,
textarea,
.button,
.area,
form,
.video,
.controls,
.user,
.comment {
.header-link {
padding-left: 0.5em;
margin-left: 0.5em;
border-left: solid var(--white) 2px;
}
.header-img {
margin-left: 0.8em;
height: 2em;
width: 2em;
object-fit: cover;
}
.content,
.form,
.banner,
.banner-background {
width: var(--elem-width);
}
.form {
grid-template-columns: 0.7fr 1fr;
display: grid;
}
.form-key {
margin-right: 10px;
}
.form-input,
.comment,
.form-button {
border: solid var(--gray) 3px;
background: var(--black);
border-radius: var(--border-radius);
color: var(--white);
padding: 0.5rem;
margin-bottom: 0.5rem;
text-decoration: none;
font-weight: bold;
}
.form-button {
background: var(--primary-dark);
border-color: var(--primary-light);
}
.form-message {
font-style: italic;
}
.avatar {
display: flex;
}
.avatar-img {
width: 50px;
height: 50px;
margin-right: 15px;
}
.content-header {
width: var(--elem-width);
}
video {
width: 180px;
height: 200px;
overflow-y: auto;
border: solid var(--dark-2) 3px;
border-radius: 5px;
background: var(--light-1);
@ -47,114 +160,13 @@ form,
margin-bottom: 0.5rem;
}
video {
border: solid var(--dark-2) 3px;
border-radius: 5px;
width: 900px;
max-width: 90vmin;
}
.full video {
width: 100vw;
height: 80vh;
max-width: none;
border: none;
}
.full .progressbar {
width: 95vw;
max-width: 95vw;
margin: auto;
}
form span {
font-weight: bold;
}
.button a {
width: 150px;
display: inline-block;
text-decoration: none;
color: var(--light-1);
}
.area,
form {
width: 900px;
max-width: 90vw;
}
form {
grid-template-columns: 0.7fr 1fr;
}
.form-entry, textarea {
display: block;
}
.form-key {
margin-right: 10px;
}
.form-message {
font-style: italic;
}
.main-content {
width: 720px;
}
.button {
background-color: var(--hyperlink);
font-weight: bold;
width: 150px;
display: inline-block;
}
.header {
background: var(--dark-1);
color: var(--light-1);
padding: 10px;
display: flex;
width: 100vw;
margin: 0;
font-size: 1.2em;
align-items: center;
margin-bottom: 10px;
position: sticky;
top: 0;
}
.header a {
font-weight: bold;
color: var(--light-1);
margin-left: 0.5em;
padding-left: 0.5em;
border-left: solid var(--light-2) 2px;
}
.header img {
margin-left: 0.8em;
height: 2em;
}
.video img {
width: 180px;
height: 130px;
}
.video {
width: 180px;
height: 200px;
overflow-y: auto;
}
.videos {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
width: var(--elem-width);
}
.controls {
@ -165,23 +177,33 @@ form {
}
.videos a {
color: var(--dark-1);
color: var(--dark);
}
.video {
border: solid var(--gray) 3px;
border-radius: 5px;
background: var(--dark);
font-size: 1rem;
padding: 0.5rem;
margin-bottom: 0.5rem;
}
.progressbar {
background-color: var(--light-1);
border: solid var(--dark-2) 2px;
background-color: var(--black);
border: solid var(--primary-light) 2px;
border-radius: 13px;
padding: 3px;
margin: 0;
position: relative;
top: -40px;
width: 893px;
width: calc(var(--elem-width) - 7px);
max-width: 89vmin;
}
.progressbar>div {
background-color: var(--light-2);
background-color: var(--primary-dark);
width: 40%;
height: 20px;
border-radius: 10px;
@ -197,29 +219,48 @@ form {
}
.video-wrapper.full {
background: rgba(0,0,0,0.5);
background: rgba(0, 0, 0, 0.5);
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
img.dark {
filter: invert(1);
.video img {
width: 180px;
height: 130px;
}
pre {
white-space: pre-wrap;
overflow-x: auto;
.full video {
width: 100vw;
height: 80vh;
max-width: none;
max-height: none;
border: none;
}
.pfp-wrapper {
display: flex;
.full .progressbar {
width: 95vw;
max-width: 95vw;
margin: auto;
}
.avatar {
width: 50px;
height: 50px;
margin-right: 15px;
.controls {
border: solid var(--gray) 3px;
border-radius: 5px;
background: var(--dark);
font-size: 1rem;
padding: 0.5rem;
margin-bottom: 0.5rem;
}
video {
border: solid var(--dark-2) 3px;
border-radius: 5px;
width: var(--elem-width);
height: auto;
max-height: 50vh;
max-width: 90vmin;
}