jeffs-pelican-theme/static/css-include/pelican.css

421 lines
7.9 KiB
CSS

/************************************************/
/* Pelican Theme CSS Stuff */
/* */
/* This is everything that can be ported to */
/* any theme that I make that isn't "theme" */
/* so I can change theme stuff a lot! */
/************************************************/
/************************************************/
/* resets */
.post st-link {
text-decoration: none;
}
/************************************************/
/* main */
.tmpl-library .photo_gallery {
border: 1px solid var(--base-dark);
margin: 0 auto;
padding: 1em;
}
/************************************************/
/* This is the stuff for my reading library */
.wip {
width: 150px;
opacity: 75%;
border: 5px solid #d11586
}
.read {
width: 150px;
}
.dnf {
width: 150px;
opacity: 75%;
filter: grayscale(100%);
}
/************************************************/
/* Gallery TEMPLATE */
/* "sourced" aka copied from - https://www.pagemelt.ink/published/ */
/* I have probably made enough changes that is it now "inspired by", but where is that lie really? */
.tmpl-library {
margin: 0 auto;
overflow-x: hidden;
}
.photo_gallery {
display: flex;
flex-wrap: wrap;
justify-content: left;
/*margin: .25em 0 0 0; */
padding-left: 0;
width: 100%;
/*border: 1px;*/
}
ol.photo_gallery {
list-style: decimal;
margin: 0 0 2em 0;}
ol li {
padding-left: 20px;
}
ol li a {
border:0;
}
/************************************************/
/* photos */
.photo {
display: flex;
justify-content: center;
position: relative;
text-transform: initial;
transition: transform .05s;
width: calc(100%/5); /* 13 is for the inner padding and the 0.4 is photo margins. If you want more or less photos per line it will be (n-1) * 0.1 */
z-index: 1;
}
@media screen and (max-width: 900px) {
.gallery-home li.photo:nth-of-type(7n) {
display: none;
}
}
@media screen and (max-width: 800px) {
.gallery-home li.photo:nth-of-type(6n) {
display: none;
}
}
@media screen and (max-width: 710px) {
.gallery-home li.photo:nth-of-type(5n) {
display: none;
}
}
@media screen and (max-width: 600px) {
.gallery-home li.photo:nth-of-type(4n) {
display: none;
}
}
.photo:focus .photo__back {
display: flex;
}
.photo:hover, photo:focus {
transform: scale(1.4);
z-index: 1000;
}
.footer .photo:hover, photo:focus {
transform: scale(2);
}
@media screen and (max-width: 800px) {
.photo:hover, photo:focus {
transform: scale(1.5);
}
}
@media screen and (max-width: 800px) {
.photo.photo--widescreen {
display: none;
}
}
@media screen and (max-width: 650px) {
.photo.photo--midscreen {
display: none;
width: 400px;
}
}
.photo:hover .photo__image {
box-shadow: 0 0 10px rgba(0,0,0,.5);
}
/************************************************/
/* Article/Entry Info */
#content {
width:100%;
}
#entry-info {
margin: 0 0 1em 0;
/*border-bottom: solid 5px var(--style-colour);
padding: 1em 0 0 0;*/
position: relative;
}
#entry-info p {
line-height: 1;
}
#post-info {
margin: 1em 0 1em 0;
border-bottom: solid 5px var(--style-colour);
padding: 1em 0 2em 0;
position: relative;
}
#post-info p {
line-height: 1;
}
.pentry {
margin: 0 0 0 0;
}
/************************************************/
/* Special Classes */
.share {
margin: 1em 0 1em 0;
}
/************************************************/
/* Post Series Styling */
.post-series p {
color: var(--header-colour);
font-family: "Roboto Slab", serif;
font-weight: 700;
font-size: 1.5em;
text-decoration: underline;
margin-top: 1em;
margin-bottom: -0.5em;
}
.parts {
display: block;
list-style-type: decimal;
margin-top: 1em;
margin-bottom: 2em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}
/************************************************/
/* Article footer */
#article-footer {
margin-top: 5em;
}
/************************************************/
/* Comments */
.comments {
margin: .1em;
max-width: 650px;
}
/*************************************************/
/* Mastodon Comments */
.mastodon-comment {
background-color:var(--body-background);
border-radius:var(--card-border-radius);
padding:var(--card-padding);
margin-bottom:1rem;
display:flex;
gap:1rem;
flex-direction:column;
flex-grow:2
}
.mastodon-comment .comment {
display:flex;
flex-direction:row;
gap:1rem;
flex-wrap:true
}
.mastodon-comment .comment-avatar img {
width:6rem
}
.mastodon-comment .content {
flex-grow:2
}
.mastodon-comment .comment-author {
display:flex;
flex-direction:column
}
.mastodon-comment .comment-author-name {
font-weight:700
}
.mastodon-comment .comment-author-name a {
display:flex;
align-items:center
}
.mastodon-comment .comment-author-date {
margin-left:auto
}
.mastodon-comment .disabled {
color:var(--accent-color)
}
.mastodon-comment-content p:first-child {
margin-top:0
}
.mastodon {
--dlg-bg:#282c37;
--dlg-w:600px;
--dlg-color:#9baec8;
--dlg-button-p:0.75em 2em;
--dlg-outline-c:#00D9F5
}
.mastodon-wrapper {
display: flex;
gap: 3rem;
flex-direction: row;
}
.mastodon-comment-content p:first-child {
margin-top: 0;
}
.mastodon {
--dlg-bg: #282c37;
--dlg-w: 600px;
--dlg-color: #9baec8;
--dlg-button-p: 0.75em 2em;
--dlg-outline-c: #00D9F5;
}
/* -- admonitions ----------------------------------------------------------- */
div.admonition {
width: 80%;
margin-top: 10px;
margin-bottom: 10px;
margin-right: 10px;
padding: 7px;
background-color: var(--admonition-backgroud);
}
div.admonition dt {
font-weight: bold;
}
p.admonition-title {
background-color: var(--admonition-header-backgroud);
margin: 0px 10px 5px 0px;
font-weight: bold;
font-size: 1em;
}
div.body p.centered {
text-align: center;
margin-top: 25px;
}
div.admonition > :last-child {
margin-bottom: 0;
}
div.admonition::after,
blockquote::after {
display: block;
content: '';
clear: both;
}
/************************************************/
/* Graphviz */
div.graphviz {
margin: 10px;
}
div.graphviz img {
display: block;
padding: 5px;
margin-left: auto;
margin-right: auto;
text-align: center;
border-style: solid;
border-width: 1px;
border-color: rgb(192, 177, 177);
}
/************************************************/
/* Linktrees are a thing */
/* CSS based on this page https://hashnode.com/post/linktree-clone-using-html-and-css-ckshpyzkz0138wqs19rf61foz from Mar 6, 2024 */
.linktree{
padding:20%;
padding-top:1%;
padding-bottom:1%;
}
.linktreelink{
text-align: center;
margin-top: 1px;
padding: 20px 0;
max-width: 590px;
display: block;
margin-left: auto;
margin-right: auto;
margin-top:10px;
background-color:var(--style-colour);
color:white;
text-decoration:none;
}
.linktreelink a {
border-bottom: none;
}
.linktreelink:hover{
color:var(--style-colour);
background-color:white;
border: 2px solid;
border-color:var(--style-colour);
}
.social-links {
text-align: center;
margin-top:20px;
margin-left: auto;
margin-right: auto;
padding-left: 10%;
padding-right: 10%;
align-items: center;
display: flex;
justify-content: space-between;
width: 100%;
}
.social-links a {
background: none;
font-size: 120%;
padding: 0 .625rem;
border-bottom: none;
}