You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

364 lines
5.8 KiB
CSS

body {
--theme-color-primary: rgba(255, 255, 255, 0.8);
--theme-color-secondary: black;
--theme-accent: #09448c;
}
@media screen and (prefers-color-scheme:dark) {
body {
--theme-color-primary: rgba(0, 0, 0, 0.8);
--theme-color-secondary: white;
--theme-accent: #2db1f3;
}
}
body {
color: var(--theme-color-secondary);
background-color: var(--theme-color-primary);
background-image: url(/res/bg.png);
background-size: 35vh;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: flex-start;
justify-content: space-evenly;
width: 100%;
margin: 0;
overflow-x: hidden;
font-weight: 500;
}
.spacer {
width: 10vw;
}
a,
a:visited,
hr {
color: var(--theme-accent);
}
hr {
width: 100%;
color: var(--theme-accent);
margin-top: 1rem;
margin-bottom: 1rem;
}
img,
audio,
video {
max-width: 100%;
max-height: 50vh;
}
iframe {
max-width: 80%;
max-height: 100vh;
width: 60vw;
height: 25vw;
}
audio {
width: 80%;
}
#profile article {
overflow-y: scroll;
max-width: 95%;
display:flex;
flex-direction: column;
}
article{
display:flex;
flex-direction: column;
align-items: center;
}
#profile-details {
display: flex;
flex-direction: column;
align-items: center;
}
#profile-links {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
}
#profile-links>a {
margin: 0.5rem;
}
#posts {
width: fit-content;
display: flex;
flex-direction: column;
align-items: center;
max-width: 40rem;
height: 95vh;
overflow-y: scroll;
}
.post {
width: 90%;
word-wrap: break-word;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
background-color: var(--theme-color-primary);
color: var(--theme-color-secondary);
border: 0.25rem solid var(--theme-accent);
backdrop-filter: blur(0.5rem);
border-radius: 1rem;
margin-bottom: 1.5rem;
}
.post h2 {
margin-top: 0;
}
#profilephoto {
margin: 1rem;
max-width: 5rem;
}
section {
width: 100%;
}
nav {
width: 100%;
}
#profile>nav,
#profile>div {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
flex-wrap: wrap;
}
#profile-details {
flex-direction: column;
align-items: flex-start;
}
#profile-details>*{
margin:0.25rem;
}
nav {
display: flex;
flex-direction: row;
align-items: baseline;
justify-content: space-evenly;
flex-wrap: wrap;
}
#profile {
display: flex;
flex-direction: column;
align-items: center;
background-color: var(--theme-color-primary);
color: var(--theme-color-secondary);
border: 0.25rem solid var(--theme-accent);
backdrop-filter: blur(0.5rem);
border-radius: 1rem;
margin-bottom: 1.5rem;
width: 90%;
height:95vh
}
aside {
min-width: 40vw;
}
article p,
article h3,
article h4,
article ul,
article ol,
article table {
text-align: left;
width: 90%;
}
article p {
width: 90%;
}
article img {}
blockquote {
margin-left: 10%;
padding-left: 2.5rem;
width: 80%;
border-left: 0.5rem solid var(--theme-accent);
font-style: italic;
}
.gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.gallery>* {
margin: 0.1rem;
}
.gallery p {
width: 100%;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
audio {
padding: 1rem;
}
.post-tags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
font-weight: bolder;
font-size: 1.25rem
}
.post-tags>* {
margin: 0.5rem;
}
@media screen and (orientation: portrait) {
body {
flex-direction: column;
align-items: center;
justify-content: flex-start;
flex-wrap: none;
padding: 0;
font-size: 1rem;
height: unset;
}
#profile,
#posts {
margin-top: 10px;
width: 90%;
max-width: 90vw;
height: unset;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem;
background-color: var(--theme-color-primary);
color: var(--theme-color-secondary);
border: 0.25rem solid var(--theme-accent);
backdrop-filter: blur(0.5rem);
border-radius: 1rem;
margin-bottom: 1.5rem;
}
}
#profile a>img {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.link-preview {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
padding: 1.5%;
justify-content: center;
text-decoration: none;
text-align: left;
width: 80%;
}
.link-preview>div {
margin: 1rem;
}
.link-preview>img {
max-width: 20%;
}
.link-preview>div>p {
text-decoration: none !important;
color: var(--theme-color-secondary);
}
.image-container {
display: flex;
flex-direction: column;
align-items: center;
max-width: 95%;
}
.caption {
padding-left: 10%;
padding-right: 10%;
max-width: 90%;
}
#height-override article,#height-override #profile {
height: unset;
max-height: unset;
overflow-y: unset;
}
.audio-player{
backdrop-filter: blur(1.5rem);
}
article hr {
max-width:95%;
border-style:dashed;
}
article h1,article h2{
width:100%;
text-align: center;
}
.icon{
stroke:var(--theme-accent);
fill:var(--theme-accent);
margin:1rem;
}
.icon-mid {
width:2.5rem;
height:2.5rem;
}
article a {
height:fit-content;
}
.video-container{
width:fit-content;
border: 0.15rem solid var(--theme-accent);
}