freedom/static/css/theme.css

682 lines
No EOL
10 KiB
CSS

body {
--theme-color-primary: white;
--theme-color-secondary: black;
--theme-accent: #0727c5;
}
@media screen and (prefers-color-scheme:dark) {
body {
--theme-color-primary: black;
--theme-color-secondary: white;
--theme-accent: gold;
}
}
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: 5px;
}
header img {
max-height: 8rem;
}
header,
footer {
text-align: center;
width: 100vw;
}
nav {
border-radius: 30%;
}
a {
color: var(--theme-accent);
}
a:visited {
color: var(--theme-accent);
}
hr {
width: 100%;
margin-top: 15px;
margin-bottom: 15px;
color: var(--theme-accent);
}
main,
aside {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-evenly;
padding: 1rem;
padding-top: 0;
}
article{
max-width:90vw;
}
article > *{
max-width:90vw;
}
#main-content {
min-width: 30vw;
}
.listing {
margin: 15px;
width:620px;
height:340px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
background-size:cover;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: bottom;
border-radius: 15px;
text-align: center;
margin-bottom: 25px;
}
.listing-text {
width:100%;
height:100%;
border-radius: 15px;
background:rgba(0, 0, 0, 0.55);
backdrop-filter: blur(0px);
display:flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
font-size:24px;
}
.listing-text >*{
margin:5px;
width:fit-content
}
.listing-text .bare-link,.listing-text h2{
text-shadow: black -2px 2px 2px;
}
@keyframes blur-in{
from {
backdrop-filter:blur(0px);
background:rgba(0, 0, 0, 0.55);
}
to {
backdrop-filter:blur(5px);
background:rgba(0, 0, 0, 0.25);
}
}
.listing-text:hover{
animation: blur-in 0.2s;
backdrop-filter: blur(5px);
background:rgba(0, 0, 0, 0.25);
}
.listing p{
font-size:25px;
}
.listing .tags a {
font-size:15px;
}
.listing .tags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}
.tags>a {
margin: 5px;
padding:2px;
border-radius: 3px;
font-size:14px;
font-weight: bolder;
display:flex;
flex-direction: row;
align-items: center; background-color: var(--theme-accent);
color: var(--theme-color-primary);
border-radius: 1.25rem;
padding:5px;
}
img,
video {
max-width: 95%;
}
audio {
width: 100%;
}
.metadata {
display: flex;
flex-direction: row;
align-items: center;
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;
}
nav {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-evenly;
}
nav>a {
margin: 10px;
}
section {
display: flex;
flex-direction: column;
align-items: center;
}
section div {
display: flex;
flex-direction: column;
align-items: center;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
max-width: 60rem;
font-size:25px;
}
article table {
width: 80%;
}
article .media-container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.media-container a {
width: 100%;
display: flex;
align-items: center;
flex-direction: column;
}
article td,
article th {
width: fit-content;
}
article .footnotes {
width: 100%;
}
article .footnotes a {
text-decoration: none;
}
article sup a {
text-decoration: none;
}
blockquote {
margin-left: 10%;
padding-left: 2.5rem;
width: 80%;
border-left: 0.5rem solid var(--theme-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%;
}
article video,
article iframe {
height: 40rem;
width: 95%;
max-height: 60vh;
background-color: transparent;
}
article>section>a {
display: flex;
flex-direction: column;
align-items: center;
}
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: left;
text-decoration: none;
text-align: left;
width: 80%;
box-shadow: 0px 0px 0.5rem var(--theme-accent);
border-radius: 2rem;
overflow: hidden;
margin-bottom: 1rem;
margin-top: 1rem;
}
.link-preview>div {
margin: 1rem;
}
.link-preview>img {
max-width: 20rem;
}
.link-preview>div>p {
text-decoration: none !important;
color: var(--theme-color-secondary);
}
#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: 2.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-accent);
width: 100%;
}
#tags {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
#tags>a {
margin: 5px;
padding:10px;
border-radius: 50px;
font-size:20px;
background-color: var(--theme-accent);
color: var(--theme-color-primary);
font-weight: bolder;
display:flex;
flex-direction: row;
align-items: center;
}
#tags>a>*{
margin:5px;
}
.gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
width:90vw;
}
#banner{
position:relative;
width:100vw;
height:35vh;
overflow:hidden;
background-repeat: no-repeat;
background-size:cover;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-position: center;
background-position-y:center;
}
#banner-text{
max-height:20vh;
width:fit-content;
color:white;
background-color: rgba(0,0,0,0.5);
backdrop-filter: blur(0.25rem);
min-width: 10vw;
border-radius:25px;
text-shadow: 1px 1px 2px black;
padding:1rem;
}
.image-container {
margin-bottom: 1rem;
}
.image-container,
.image-container a {
width: fit-content;
display: flex;
flex-direction: column;
justify-content: center;
}
.image-container .caption {
width: fit-content;
border: 1px solid var(--theme-accent);
padding: 0.5rem;
border-radius: 0.5rem;
}
.gallery>* {
margin-bottom: 1.5rem;
}
#content-list{
display:flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}
@media screen and (orientation:portrait) {
main {
flex-direction: column-reverse;
align-items: center;
width: 100vw;
}
.link-preview {
flex-direction: column;
}
.recent,
.featured {
flex-direction: column;
align-items: center;
width: 100%;
}
.listing img,
.listing video {
width: unset;
max-width: 100%;
height: 25vh;
padding-left: 2vw;
padding-right: 2vw;
}
.recent img,
.featured img,
.recent video,
.featured video {
max-width: unset;
width: 100%;
margin: 0;
}
.listing {
max-width:90vw;
max-height: 40vh;
}
.listing-text{
font-size:14px;
}
.metadata{
max-width: 100%;
flex-wrap: wrap;
}
.metadata #tags a {
font-size:10px;
padding:0;
}
.metadata .icon{
width:2rem;
height:2rem;
}
nav{
font-size:10px;
}
.social-link strong{
display:none;
}
#social-links img{
}
}
svg{
stroke: black;
fill:black;
}
.icon {
width:2.5rem;
height:2.5rem;
}
.icon-small{
height:1rem;
width:1rem;
}
#info>div{
display:flex;
flex-direction: row;
}
#info>div>*{
margin:10px;
}
.bare-link{
color:var(--theme-color-secondary) !important;
text-decoration: none;
}