Update the style

This commit is contained in:
foo-dogsquared 2019-08-20 00:28:07 +08:00
parent 7aa2e53188
commit eed51db43e

View File

@ -1,12 +1,14 @@
:root {
--accent: #d59783;
--background: #080a0e;
--border-color: #ffffff;
--color: #dbdbdb;
--border-color: var(--color);
}
body {
background: var(--background);
font-size: 1.1rem;
color: var(--color);
}
h2 {
@ -25,6 +27,31 @@ h2:not(first-child) {
margin-top: 60px;
}
footer {
display: flex;
justify-content: center;
padding: 0;
margin: 1.5em auto;
flex-flow: column wrap;
color: inherit;
}
footer > * {
margin: 1.4em auto;
}
svg {
height: 2em;
width: 2em;
color: currentColor;
fill: currentColor;
}
svg:hover {
fill: var(--accent);
}
/* Theme customizations */
.header__logo a {
min-width: 45%;
}
@ -33,11 +60,114 @@ h2:not(first-child) {
white-space: pre-wrap;
}
.attribution {
margin-bottom: 40px;
text-align: right;
.post-header-wrapper {
display: flex;
flex-flow: row nowrap;
align-items: center;
}
.post-title {
flex-grow: 10;
}
.post-type {
flex-grow: 1;
min-width: 5em;
}
.content {
display: unset;
}
.posts {
width: 100%;
}
.pagination__buttons {
justify-content: space-evenly;
}
.pagination .button__icon {
border-radius: 2em;
font-weight: bolder;
padding: 0.5rem;
background: var(--accent);
color: var(--background);
}
.button a {
align-items: center;
}
@media screen and (max-width: 683px) {
.pagination__buttons {
flex-flow: column wrap;
}
.pagination .button {
max-width: unset;
margin: 0.75rem;
}
}
#disqus_thread {
--border-deco: dashed var(--border-color) 1px;
--spacing: 50px;
border-top: var(--border-deco);
border-bottom: var(--border-deco);
margin: var(--spacing) auto;
padding: var(--spacing) 0;
}
a.read-more {
text-decoration: underline;
}
/* Asciidoctor style overrides */
.attribution {
margin-bottom: 40px;
text-align: right;
}
.imageblock {
margin: 2rem auto;
}
.imageblock .title {
font-style: italic;
text-align: center;
}
.admonitionblock {
border: none;
}
.admonitionblock .icon,
.admonitionblock .content {
border: none
}
.admonitionblock .icon {
width: 10%;
border: dashed var(--accent) 1px;
}
.admonitionblock .content {
padding: 1em;
display: block;
}
/* My own classes customization */
.social-icons {
display: flex;
justify-content: center;
align-items: center;
margin: auto;
flex-flow: row wrap;
}
.social-icons > * {
margin: 1em;
text-decoration: none;
}