freedom/static/css/theme.css
2022-09-09 17:02:10 -04:00

416 lines
No EOL
6.3 KiB
CSS

body {
line-height: 1.25;
--theme-color-primary: white;
--theme-color-secondary: black;
--theme-color-accent: #076cc5;
--theme-color-accent-transparent: #1d7fd444;
--theme-color-accent2: #0852a5;
--theme-color-accent2-transparent: #ebb71644;
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;
}
footer{
margin-bottom:0;
}
nav{
border-radius:30%;
}
h1{
font-size:250%;
}
p {
}
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;
}
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;
font-size: 1.25rem;
}
.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;
bottom: 0;
font-size:1.5rem
}
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;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
font-size:2.25rem;
font-family:Verdana, Geneva, Tahoma, sans-serif;
max-width:60rem;
}
blockquote {
margin-left: 10%;
padding-left: 2.5rem;
width:80%;
border-left: 0.5rem solid var(--theme-color-accent2);
font-style: italic;
}
section ul,
section ol,
article ol,
article ul {
width: 90%;
}
article>a {
text-align: center;
}
article h2,h1{
font-size:150%;
width:100%;
text-align: center;
}
h1{
font-size:175%;
}
article h3,
section h3,
article h4,
section h4,
article h5,
article p {
width: 100%;
}
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;
border: 1px solid var(--theme-color-accent2);
padding: 0.5rem;
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;
border:0.5rem solid var(--theme-color-accent);
border-radius: 1rem;
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: 10vw;
margin:0.25rem;
}
#social-links{
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.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{
background-color: var(--theme-color-accent);
color: var(--theme-color-primary);
width: 100%;
}
@media screen and (orientation:portrait){
main{
flex-direction: column;
align-items: center;
}
.recent,.featured{
flex-direction: column;
align-items: center;
}
}
#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;
}