freedom/static/css/theme.css

388 lines
5.7 KiB
CSS
Raw Normal View History

2022-08-22 20:03:48 -04:00
body {
line-height: 1.25;
2022-09-09 15:34:02 -04:00
--theme-color-primary: white;
--theme-color-secondary: black;
2022-08-22 20:03:48 -04:00
--theme-color-accent: #1d7fd4;
--theme-color-accent-transparent: #1d7fd444;
2022-09-09 15:34:02 -04:00
--theme-color-accent2: #0852a5;
2022-08-22 20:03:48 -04:00
--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);
}
.background-photo {
position: fixed;
top: 40vh;
max-width: 80vw;
max-height: 70vh;
z-index: -1;
}
header{
margin-top:1rem;
}
header,footer{
text-align: center;
2022-08-17 14:50:07 -04:00
width:100vw;
2022-08-22 20:03:48 -04:00
}
footer{
margin-bottom:0;
}
nav{
border-radius:30%;
}
2022-08-29 19:54:54 -04:00
h1{
font-size:250%;
}
2022-08-22 20:03:48 -04:00
p {
}
a {
color: var(--theme-color-accent2);
}
a:visited {
color: var(--theme-color-accent2);
}
hr {
width: 100%;
margin-top: 2rem;
margin-bottom: 2rem;
color: var(--theme-color-accent2);
}
main,aside {
padding:2.5rem;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-evenly;
padding:1rem;
2022-09-05 19:26:00 -04:00
max-width:90vw;
}
main{
2022-08-22 20:03:48 -04:00
2022-09-05 19:26:00 -04:00
padding-left:10%;
padding-right:10%;
2022-08-22 20:03:48 -04:00
}
2022-09-09 15:34:02 -04:00
#main-content{
min-width:30vw;
}
2022-08-22 20:03:48 -04:00
.listing {
width: 100%;
margin: 1rem;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
}
.listing-preview {
display: flex;
2022-08-17 14:50:07 -04:00
flex-direction: row;
flex-wrap: wrap;
2022-08-22 20:03:48 -04:00
align-items: flex-start;
2022-08-17 14:50:07 -04:00
justify-content: center;
}
2022-08-22 20:03:48 -04:00
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;
2022-09-05 19:26:00 -04:00
display:flex;
flex-direction: column;
align-items: center;
2022-08-22 20:03:48 -04:00
}
.metadata p {
max-width: 20rem;
}
.metadata-author {
padding: 0.5rem;
display: flex;
2022-08-17 14:50:07 -04:00
flex-direction: column;
2022-08-22 20:03:48 -04:00
align-items: center;
flex-wrap: nowrap;
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00
.metadata-author>img {
max-width: 5rem;
border-radius: 3rem;
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00
header {
text-align: center;
background-color: transparent;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
bottom: 0;
2022-09-09 15:34:02 -04:00
font-size:1.5rem
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00
nav {
display: flex;
2022-08-17 14:50:07 -04:00
flex-direction: row;
flex-wrap: wrap;
align-items: center;
2022-08-22 20:03:48 -04:00
justify-content: space-evenly;
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00
nav>* {
margin: 1rem;
}
section {
display:flex;
flex-direction: column;
align-items: center;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding: 1.25rem;
border-radius: 1rem;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
2022-09-09 15:34:02 -04:00
padding: 1.5rem;
2022-08-22 20:03:48 -04:00
display: flex;
flex-direction: column;
align-items: center;
2022-09-09 15:34:02 -04:00
font-size:2.25rem;
2022-08-22 20:03:48 -04:00
}
blockquote {
margin-left: 10%;
2022-09-05 19:26:00 -04:00
padding-left: 2.5rem;
width:80%;
2022-08-22 20:03:48 -04:00
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;
}
2022-09-05 19:26:00 -04:00
article h2,h1{
font-size:150%;
width:100%;
text-align: center;
}
h1{
font-size:175%;
}
2022-08-22 20:03:48 -04:00
article h3,
section h3,
article h4,
section h4,
article h5,
article p {
width: 100%;
}
article h3 {
text-decoration: underline;
}
2022-09-05 19:26:00 -04:00
article img{
align-self: center;
max-width: 80%;
max-height: 50vh;
}
2022-08-22 20:03:48 -04:00
article video,
article iframe {
2022-08-29 19:54:54 -04:00
max-width: 60rem;
width: 80%;
height:30rem;
2022-09-09 15:34:02 -04:00
background-color: transparent;
2022-08-22 20:03:48 -04:00
}
2022-08-29 19:54:54 -04:00
article>section>a{
display:flex;
flex-direction: column;
align-items: center;
2022-09-09 15:34:02 -04:00
}
.listing h2{
text-align: left;
2022-08-22 20:03:48 -04:00
}
2022-08-29 19:54:54 -04:00
2022-08-22 20:03:48 -04:00
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{
2022-08-17 14:50:07 -04:00
display:flex;
flex-direction: row;
2022-08-22 20:03:48 -04:00
flex-wrap: nowrap;
padding:1.5%;
2022-09-09 15:34:02 -04:00
justify-content: center;
2022-08-22 20:03:48 -04:00
text-decoration: none;
text-align: left;
2022-09-09 15:34:02 -04:00
width:80%;
2022-09-05 19:26:00 -04:00
}
.link-preview>div{
margin:1rem;
2022-08-22 20:03:48 -04:00
}
.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;
margin-top:3rem;
2022-09-09 15:34:02 -04:00
border:0.25rem solid var(--theme-color-accent);
2022-09-05 19:26:00 -04:00
align-items: flex-start;
2022-08-22 20:03:48 -04:00
}
2022-09-05 19:26:00 -04:00
2022-08-22 20:03:48 -04:00
.recent *,
.featured *{
margin:0;
padding:0;
2022-09-05 19:26:00 -04:00
text-align: left;
2022-08-22 20:03:48 -04:00
}
.recent img,
2022-08-29 19:54:54 -04:00
.featured img,
.recent video,
.featured video{
2022-09-09 15:34:02 -04:00
max-width: 10vw;
margin:0.25rem;
2022-08-22 20:03:48 -04:00
}
#social-links{
display: flex;
flex-direction: row;
2022-08-17 14:50:07 -04:00
flex-wrap: wrap;
}
2022-08-22 20:03:48 -04:00
.social-link{
display:flex;
flex-direction: column;
align-items: center;
2022-08-17 14:50:07 -04:00
margin:1rem;
}
2022-08-22 20:03:48 -04:00
.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;
2022-09-05 19:26:00 -04:00
max-width:90vw;
2022-08-22 20:03:48 -04:00
}
}
2022-09-05 19:26:00 -04:00
.recent,.featured{
width: 100%;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: flex-start;
}
.featured a,.recent a{
width:initial;
}
2022-08-22 20:03:48 -04:00
@media screen and (orientation:portrait){
main{
flex-direction: column;
2022-09-05 19:26:00 -04:00
align-items: center;
}
.recent,.featured{
flex-direction: column;
align-items: center;
2022-08-22 20:03:48 -04:00
}
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00