godsip.club/static/css/style.css

742 lines
12 KiB
CSS

html[theme='dark-mode'] {
filter: invert(1) hue-rotate(180deg);
height: 100%;
margin: 0;
}
body {
line-height: 1;
/* font: normal 15px/1.5em 'Helvetica Neue', Helvetica, Arial, sans-serif; */
font-family: 'Merriweather', Helvetica, Arial, sans-serif;
font-weight: 300;
font-size: 1.1em;
color: #01eaa9;
line-height: 1.75;
letter-spacing: 0.008em;
background: #181518;
height: 100%;
margin: 0;
}
a {
text-decoration: none;
color: #ffce00;
}
a:hover {
color: #ffae00;
}
/* markdown content styles */
blockquote {
font-size: 1.1em;
margin-top: 5px;
margin-bottom: 5px;
padding-left: 1em;
margin-left: 0px;
border-left: 3px solid #ffce00;
color: #ffae00;
}
hr {
display: block;
border: none;
height: 2px;
margin: 40px auto;
background: #8c8c8c;
}
table {
width: 100%;
margin: 40px 0;
border-collapse: collapse;
line-height: 1.5em;
}
th, td {
text-align: left;
padding-right: 20px;
vertical-align: top;
}
table td, td {
border-spacing: none;
border-style: solid;
padding: 10px 15px;
border-width: 1px 0 0 0;
}
thead th, th {
text-align: left;
padding: 10px 15px;
height: 20px;
font-size: 13px;
font-weight: bold;
color: #444;
cursor: default;
white-space: nowrap;
border: 1px solid #dadadc;
}
tr>td {
border: 1px solid #dadadc;
}
tr:nth-child(odd)>td {
background: #fcfcfc;
}
h1,
h2,
h3 {
font-weight: 400;
}
h1 {
color: #f640c1;
}
h2 {
color: #9e00b2;
font-size: 1.4em;
}
h4 {
font-weight: normal;
font-size: 1em;
color: #8c8c8c;
}
p {
margin-block-start: 1.5em;
margin-block-end: 1.5em;
text-align: justify;
}
p,
pre {
word-break: normal;
overflow-wrap: anywhere;
}
.markdown-image img {
max-width: 100%;
}
.anchor {
font-size: 1rem;
visibility: hidden;
color:silver;
}
h1:hover a,
h2:hover a,
h3:hover a {
visibility: visible
}
.highlight pre {
padding: 7px;
overflow-x: auto;
}
.highlight {
max-width: 100%;
overflow-x: auto;
}
p code {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
font-size: inherit;
background-color: rgba(0, 0, 0, 0.06);
padding: 0 2px;
border: 1px solid rgba(0, 0, 0, 0.08);
border-radius: 2px 2px;
line-height: inherit;
word-wrap: break-word;
text-indent: 0;
}
pre code {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace;
}
/* navigation */
nav.navigation {
font-family: 'Bebas Neue', Helvetica, Arial, sans-serif;
font-size: 1.1em;
padding: 20px 20px 20px;
background: #181518;
margin: .5em -2.5em 0;
text-align: right;
z-index: 100;
width: 100%;
/* position: fixed; /* Set the navbar to fixed position
top: 0; /* Position the navbar at the top of the page
/* Full width */
}
nav.navigation a {
top: 8px;
right: 6px;
padding: 8px 12px;
color: #f640c1;
line-height: 1.35;
border-radius: 3px;
}
nav.navigation a:hover {
color: #9e00b2;
}
nav.navigation a.button {
background: #f640c1;
color: #181518;
margin-left: 12px;
margin-right: 12px;
}
@media (max-width: 700px) {
nav.navigation {
padding: 20px 10px 0 0;
background: #181518;
margin: 0 auto;
text-align: right;
z-index: 100;
}
nav.navigation a {
top: 8px;
right: 6px;
padding: 8px 8px;
color: #f640c1;
font-size: 1em;
line-height: 1.35;
border-radius: 3px;
}
}
@media (max-width: 324px) {
nav.navigation a.button {
display: none;
}
}
/* toc */
.toc {
margin: auto;
background: #f8f8f8;
border-radius: 0;
padding: 10px 7px;
margin-top: 36px;
}
.toc details summary {
cursor: zoom-in;
margin-inline-start: 14px;
font-weight: 500;
}
.toc details[open] summary {
cursor: zoom-out;
}
.toc #TableOfContents {
margin-left: 10px;
}
.toc ul {
padding-inline-start: 24px;
}
/* comment */
#comment {
margin-top: 64px;
}
/* footer */
#footer {
margin-top: 100px;
margin-bottom: 100px;
text-align: center;
color: #8c8c8c;
font-size: .9em;
}
#footer .copyright {
margin: 20px auto;
font-size: .9em;
}
.powerby {
margin: 20px auto;
font-size: .9em;
}
#footer .split {
cursor: pointer;
}
#footer .split:hover path {
fill: #ff3356;
transition: 0.7s ease-out;
cursor: pointer;;
}
#social a {
margin: 0 4px;
}
/* main content */
.main {
width: 100%;
margin: 0 auto;
}
/* profile */
.profile {
margin: 20px auto 0 auto;
font-size: 1.6rem;
text-align: center;
max-width: 700px;
}
.profile .avatar {
display: inline-block;
width: 80px;
height: 80px;
border-radius: 50%;
}
.profile h1 {
font-weight: 400;
line-height: 1.2;
letter-spacing: 0px;
font-size: 3rem;
color: #f640c1;
margin-bottom: 20px;
margin-top: 0;
}
.profile h2 {
font-size: 1.8rem;
font-weight: 400;
color: #01eaa9;
margin-top: 0;
line-height: 1.5;
}
@media (max-width: 700px) {
.profile {
max-width: 90%;
}
.profile h1 {
font-size: 2rem;
}
.profile h2 {
font-size: 1.3rem;
}
}
/* index post list */
#list-page {
min-height: 50vh;
max-width: 580px;
margin: 0 auto;
padding: 0 24px;
}
#list-page .item {
margin: 12px 0;
}
#list-page .title {
display: inline-block;
color: #f640c1;
font-size: 1.2em;
font-weight: 400;
margin: 0;
width: 60%;
}
#list-page .title a {
color: #ffce00;
display: block;
}
#list-page .title a:hover {
color: #ffae00;
}
#list-page .date {
font-size: 1.1em;
width: 40%;
display: inline;
float: right;
text-align: right;
position: relative;
top: 1px;
color: #bbb;
}
#list-page .summary {
color: #757575;
margin-top: 12px;
word-break: normal;
overflow-wrap: anywhere;
margin-bottom: 36px;
}
#list-page .cover {
width: 100px;
height: 100px;
background: #fff;
}
#list-page .cover img {
width: 100%;
text-align: center;
}
#list-page .pagination {
margin: 48px 0;
width: 100%;
height: 32px;
margin-top: 48px;
}
#list-page .pagination .pre {
float: left;
}
#list-page .pagination .next {
float: right;
}
#list-page h3 {
font-size: 1.5rem;
font-weight: 300;
color: #f640c1;
margin-top: 0;
text-align: left;
}
/* single page */
#single {
max-width: 680px;
margin: 60px auto 0 auto;
padding: 0 64px;
}
#single .title {
text-align: center;
font-size: 2em;
font-weight: 400;
line-height: 48px;
color: #ffce00;
margin-bottom: 0;
}
@media (max-width: 700px) {
#single {
padding: 0 18px;
margin: 20px auto 0 auto;
}
#single .title {
font-size: 24px;
line-height: 32px;
}
}
#single .tip {
text-align: center;
color: #8c8c8c;
margin-top: 18px;
font-size: .9rem;
}
#single .tip .split {
margin: 0 4px;
}
#single .content {
margin-top: 36px;
}
#single .tags {
margin-top: 24px;
text-align: center;
}
#single .tags a {
background: #f640c1;
padding: 4px 7px;
color: #181518;
font-size: 14px;
margin-right: 3px;
}
#single .tags a:hover {
background: #9e00b2;
color: #181518;
}
#single img {
max-width: 100%;
max-height: 500px;
width: auto;
}
#single ul {
margin-block-start: 0px;
}
#archive {
max-width: 580px;
margin: 0 auto;
padding: 0 24px;
}
#archive .total {
font-size: 15px;
}
#archive .group {
margin: 24px auto;
}
#archive .group .key {
font-size: 1.5em;
margin-bottom: 12px;
}
#archive .group .value {
display: block;
font-size: 1.1em;
margin-bottom: 12px;
}
#archive .group .value .date {
display: inline-block;
color: #8c8c8c;
min-width: 60px;
}
#archive .group .value .title {
display: inline;
margin: 0 10px;
}
#archive .group .value .title a {
color: #ffce00;
}
#archive .group .value .title a:hover {
color: #ffae00;
}
#archive .group .value .tags {
display: inline;
margin-left: 7px;
}
#archive .group .value .tags a {
background: #f640c1;
padding: 4px 7px;
color: #181518;
font-size: .85rem;
margin-right: 3px;
}
#archive .group .value .tags a:hover {
background: #9e00b2;
color: #181518;
}
/* taxonomy */
#tags {
max-width: 700px;
margin: 48px auto 0 auto;
padding: 0 12px;
text-align: center;
}
#tags .tag {
display: inline-block;
margin: 7px 7px;
}
@media (max-width: 700px) {
#tags {
margin: 100px auto 0 auto;
}
#tags .tag {
display: inline-block;
margin: 4px 5px;
}
}
#tags .tag a {
background: #01eaa9;
padding: 4px 7px;
color: #757575;
color: #404040;
font-size: 14px;
margin-right: 3px;
}
#tags .tag a:hover {
color: white;
}
/* section page */
#section {
max-width: 580px;
margin: 48px auto 0 auto;
padding: 0 12px;
}
/* 404 page */
#page-404 {
max-width: 580px;
margin: 0 auto;
padding: 0 24px;
}
#page-404 .item {
margin: 12px 0 0 0;
}
#page-404 .title {
display: inline-block;
color: #404040;
font-size: 15px;
font-weight: 400;
margin: 0;
width: 80%;
}
#page-404 .text {
text-align: center;
margin-top: 60px;
}
#page-404 .read-more {
font-weight: 300;
font-size: 20px;
margin-top: 48px;
margin-bottom: 12px;
}
#page-404 .date {
width: 20%;
float: right;
text-align: right;
position: relative;
top: 1px;
color: #bbb;
}
#page-404 img {
margin-top: 3em;
width: 100%;
text-align: center;
}
/* Scaglio from here */
.footnote-ref {
font-size: .9em;
margin-left: .2em;
}
.footnotes {
font-size: .9em;
}
figure {
display: flex;
flex-flow: column;
max-width: 100%;
margin: auto;
}
figure img {
width: fit-content;
text-align: center;
margin: auto;
}
figcaption {
color: #8c8c8c;
font-style: italic;
font-size: .9em;
margin-inline-start: unset;
margin: auto;
}
figcaption p {
margin: .5em;
}
.parallax {
/* The image used */
background-image: url('../img/bg-home.jpg');
/* Set a specific height */
height:100vh;
margin: 0;
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
overflow:hidden;
}
@media (max-width: 1024px) and (orientation: portrait){
.parallax{
background-size: contain;
background-position: 50% 50px;
height: 40vh;
}
}
nav.navigation a.button:hover {
background: #9e00b2;
}
/* about page */
#about {
max-width: 580px;
margin: 48px auto 0 auto;
padding: 0 12px;
}
#about h1{
color: #f640c1;
}
@font-face {
font-family: 'Bebas Neue';
src: url('../fonts/BebasNeue-Regular.woff2') format('woff2'),
url('../fonts/BebasNeue-Regular.woff') format('woff'),
url('../fonts/BebasNeue-Regular.ttf') format('truetype'),
url('../fonts/BebasNeue-Regular.svg#fonts/BebasNeue-Regular') format('svg');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Merriweather';
src: url('../fonts/MerriweatherSans-Regular.woff2') format('woff2'),
url('../fonts/MerriweatherSans-Regular.woff') format('woff'),
url('../fonts/MerriweatherSans-Regular.ttf') format('truetype');
font-weight: 400;
font-display: swap;
font-style: normal;
}
@font-face {
font-family: 'Merriweather';
src: url('../fonts/MerriweatherSans-Italic.woff2') format('woff2'),
url('../fonts/MerriweatherSans-Italic.woff') format('woff'),
url('../fonts/MerriweatherSans-Italic.ttf') format('truetype');
font-weight: 400;
font-display: swap;
font-style: italic;
}
@font-face {
font-family: 'Merriweather';
src: url('../fonts/MerriweatherSans-Bold.woff2') format('woff2'),
url('../fonts/MerriweatherSans-Bold.woff') format('woff'),
url('../fonts/MerriweatherSans-Bold.ttf') format('truetype');
font-weight: 700;
font-display: swap;
font-style: normal;
}
@font-face {
font-family: 'Merriweather';
src: url('../fonts/MerriweatherSans-BoldItalic.woff2') format('woff2'),
url('../fonts/MerriweatherSans-BoldItalic.woff') format('woff'),
url('../fonts/MerriweatherSans-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-display: swap;
font-style: italic;
}