freedom/static/css/theme.css
2022-09-20 22:56:20 -04:00

440 lines
No EOL
6.6 KiB
CSS

body{
--theme-color-primary: white;
--theme-color-secondary: black;
--theme-color-accent: #0727c5;
}
@media screen and (prefers-color-scheme:dark){
body{
--theme-color-primary:black;
--theme-color-secondary:white;
--theme-color-accent: #dcb806;
}
}
body {
line-height: 1.25;
width: 100vw;
margin: 0px;
padding: 0px;
overflow-x: hidden;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
color: var(--theme-color-secondary);
background-color: var(--theme-color-primary);
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.background-photo {
position: fixed;
top: 40vh;
max-width: 80vw;
max-height: 70vh;
z-index: -1;
}
header{
margin-top:1rem;
}
header,footer{
text-align: center;
width:100vw;
}
nav{
border-radius:30%;
}
a {
color: var(--theme-color-accent);
}
a:visited {
color: var(--theme-color-accent);
}
hr {
width: 100%;
margin-top: 2rem;
margin-bottom: 2rem;
color: var(--theme-color-accent);
}
main,aside {
padding:2.5rem;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-evenly;
padding:1rem;
max-width:90vw;
}
main>section{
margin:1rem;
padding:0.5rem;
}
main{
padding-left:5rem;
padding-right:5rem;
}
#main-content{
min-width:30vw;
}
.listing {
width: 100%;
margin: 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.listing-preview {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
}
img,
video {
max-width: 95%;
}
audio {
width: 100%;
}
.metadata {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
justify-content: center;
}
.metadata>div {
margin: 1rem;
display:flex;
flex-direction: column;
align-items: center;
}
.metadata p {
max-width: 20rem;
}
.metadata-author {
padding: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
flex-wrap: nowrap;
}
.metadata-author>img {
max-width: 5rem;
border-radius: 3rem;
}
header {
text-align: center;
background-color: transparent;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
font-size:1.25rem
}
nav {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
}
nav>* {
margin: 1rem;
}
section {
display:flex;
flex-direction: column;
align-items: center;
}
h1{
font-size:200%;
}
h2{
font-size:150%;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
font-family:Verdana, Geneva, Tahoma, sans-serif;
max-width:80rem;
font-size: 1.5rem;
}
blockquote {
margin-left: 10%;
padding-left: 2.5rem;
width:80%;
border-left: 0.5rem solid var(--theme-color-accent);
font-style: italic;
}
section ul,
section ol,
article ol,
article ul {
width: 90%;
}
article>a {
text-align: center;
}
article h2,h1{
width:100%;
text-align: center;
}
article h3,
section h3,
article h4,
section h4,
article h5,
article p {
width: 100%;
text-align: left;
}
article h3 {
text-decoration: underline;
}
article img{
align-self: center;
max-width: 80%;
max-height: 50vh;
}
article video,
article iframe {
max-width: 60rem;
width: 80%;
height:30rem;
background-color: transparent;
}
article>section>a{
display:flex;
flex-direction: column;
align-items: center;
}
.listing h2{
text-align: left;
}
table{
width:fit-content;
}
td,
th {
margin: 0;
padding: 0.25rem;
width: min-content;
text-align: left !important;
}
video{
background-color:black;
}
.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);
}
.listing img,
.listing video {
max-width:25rem;
margin:1rem;
}
aside .listing img{
max-height: 15vh;
}
#sidebar {
padding-top:0;
align-items: flex-start;
}
.recent *,
.featured *{
margin:0.25rem;
padding:0;
text-align: left;
}
.recent p,
.featured p{
min-width: 20vw;
}
.recent img,
.featured img,
.recent video,
.featured video{
max-width:15vw;
margin:0.25rem;
}
#social-links{
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
justify-content: space-evenly;
}
.social-link{
display:flex;
flex-direction: column;
align-items: center;
margin:1rem;
}
.social-link img{
width:5rem;
}
@media print {
body{
background-color: white;
}
header,footer{
display:none;
}
body>img{
display:none;
}
img{
max-height: 60vh;
}
*,main,section{
color:black;
background-color: white;
border:none;
box-shadow: none;
padding:0;
max-width:90vw;
}
}
.recent,.featured{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
padding:1rem;
}
.featured a,.recent a{
width:initial;
}
.section-heading{
color: var(--theme-color-accent);
width: 100%;
}
@media screen and (orientation:portrait){
main{
flex-direction: column-reverse;
align-items: center;
}
.recent,.featured{
flex-direction: column;
align-items: center;
width: 100%;
}
.recent img,
.featured img,
.recent video,
.featured video{
max-width:unset;
width:100%;
margin:0;
}
.listing{
flex-direction: column;
}
}
#tags{
display:flex;
flex-direction: row;
flex-wrap: wrap;
}
#tags>*{
margin:1rem;
background-color: var(--theme-color-accent);
color:var(--theme-color-primary);
border-radius: 1.5rem;
padding:1.5rem;
font-weight: bolder;
}
.gallery{
width:70%;
display:flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
}
.gallery>*{
margin:0.1rem;
border:1px solid var(--theme-color-accent);
}