freedom/static/css/theme.css

437 lines
6.6 KiB
CSS
Raw Normal View History

2022-09-15 17:12:24 -04:00
body{
2022-09-09 15:34:02 -04:00
--theme-color-primary: white;
--theme-color-secondary: black;
2022-09-15 17:12:24 -04:00
--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;
2022-08-22 20:03:48 -04:00
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);
2022-09-09 17:02:10 -04:00
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
2022-08-22 20:03:48 -04:00
}
.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
}
nav{
border-radius:30%;
}
a {
2022-09-09 17:02:10 -04:00
color: var(--theme-color-accent);
2022-08-22 20:03:48 -04:00
}
a:visited {
2022-09-09 17:02:10 -04:00
color: var(--theme-color-accent);
2022-08-22 20:03:48 -04:00
}
hr {
width: 100%;
margin-top: 2rem;
margin-bottom: 2rem;
2022-09-09 17:02:10 -04:00
color: var(--theme-color-accent);
2022-08-22 20:03:48 -04:00
}
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;
}
2022-09-09 17:02:10 -04:00
main>section{
margin:1rem;
2022-09-15 17:12:24 -04:00
padding:0.5rem;
2022-09-09 17:02:10 -04:00
}
2022-09-05 19:26:00 -04:00
main{
2022-08-22 20:03:48 -04:00
2022-09-09 17:02:10 -04:00
padding-left:5rem;
padding-right:5rem;
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;
2022-09-15 17:12:24 -04:00
font-size:1.25rem
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;
}
2022-09-16 16:04:37 -04:00
h1{
font-size:200%;
}
h2{
font-size:150%;
}
2022-08-22 20:03:48 -04:00
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 17:02:10 -04:00
font-family:Verdana, Geneva, Tahoma, sans-serif;
2022-09-15 17:12:24 -04:00
max-width:80rem;
2022-09-17 19:22:55 -04:00
font-size: 1.5rem;
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-09-17 19:22:55 -04:00
border-left: 0.5rem solid var(--theme-color-accent);
2022-08-22 20:03:48 -04:00
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{
width:100%;
text-align: center;
}
2022-08-22 20:03:48 -04:00
article h3,
section h3,
article h4,
section h4,
article h5,
article p {
width: 100%;
2022-09-17 19:22:55 -04:00
text-align: left;
2022-08-22 20:03:48 -04:00
}
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;
2022-09-15 17:12:24 -04:00
padding: 0.25rem;
width: min-content;
2022-08-22 20:03:48 -04:00
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;
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 *{
2022-09-09 17:02:10 -04:00
margin:0.25rem;
2022-08-22 20:03:48 -04:00
padding:0;
2022-09-05 19:26:00 -04:00
text-align: left;
2022-08-22 20:03:48 -04:00
}
2022-09-09 17:02:10 -04:00
.recent p,
.featured p{
min-width: 20vw;
}
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-18 16:21:16 -04:00
max-width:15vw;
2022-09-09 15:34:02 -04:00
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-09-15 17:12:24 -04:00
align-items: baseline;
justify-content: space-evenly;
2022-08-17 14:50:07 -04:00
}
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;
2022-09-09 17:02:10 -04:00
padding:1rem;
2022-09-05 19:26:00 -04:00
}
.featured a,.recent a{
width:initial;
}
2022-08-22 20:03:48 -04:00
2022-09-09 17:02:10 -04:00
.section-heading{
2022-09-15 17:12:24 -04:00
color: var(--theme-color-accent);
2022-09-09 17:02:10 -04:00
width: 100%;
}
2022-08-22 20:03:48 -04:00
@media screen and (orientation:portrait){
main{
2022-09-15 17:12:24 -04:00
flex-direction: column-reverse;
2022-09-05 19:26:00 -04:00
align-items: center;
2022-09-15 17:12:24 -04:00
2022-09-05 19:26:00 -04:00
}
.recent,.featured{
flex-direction: column;
align-items: center;
2022-08-22 20:03:48 -04:00
}
2022-09-18 16:21:16 -04:00
.recent img,
.featured img,
.recent video,
.featured video{
max-width:100%;
margin:0.25rem;
}
.listing{
flex-direction: column;
}
2022-08-17 14:50:07 -04:00
}
2022-08-22 20:03:48 -04:00
2022-09-09 17:02:10 -04:00
#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;
2022-09-16 16:04:37 -04:00
}
.gallery{
2022-09-17 19:22:55 -04:00
width:70%;
2022-09-16 16:04:37 -04:00
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);
2022-09-09 17:02:10 -04:00
}