- Remove category list from the menu items and add a link to the categories page. The pages are listed in the order given by the configuration variable MENU_PAGES. Each element must be the title of the page for which a link must be added. Add category to displayed article metadata. - Pagination nav is now flex to have a better and predictive layout and sizing. Element are no longer list elements. - Adapte css sheet to change in the layout and make necessary change to unify the style between different site using the theme.
439 lines
7 KiB
CSS
439 lines
7 KiB
CSS
:root {
|
|
--color-darkest: #404040;
|
|
--color-lightest: #EEE;
|
|
|
|
--color-orange-darker: #894504;
|
|
--color-orange-dark: #bc6817;
|
|
--color-orange-base: #ff445a;
|
|
--color-orange-light: #ffab5a;
|
|
--color-orange-lighter: #dfb287;
|
|
|
|
--color-red-darker: #801F00;
|
|
--color-red-dark: #9D0B04;
|
|
--color-red-base: #D90A00;
|
|
--color-red-light: #FF693A;
|
|
--color-red-lighter: #FF8862;
|
|
|
|
--color-purple-darkest: #58004D;
|
|
--color-purple-darker: #4F0B46;
|
|
--color-purple-dark: #7E026F;
|
|
--color-purple-base: #CE0FB7;
|
|
--color-purple-light: #CD4FBE;
|
|
--color-purple-lighter: #F76FE6;
|
|
--color-purple-lightest: rgb(225, 198, 225);
|
|
|
|
--color-yellow-darker: #805900;
|
|
--color-yellow-dark: #B68003;
|
|
--color-yellow-base: #F4AD06;
|
|
--color-yellow-light: #FFC43A;
|
|
--color-yellow-lighter: #FFD062;
|
|
}
|
|
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.highlight {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
font-size: 1em;
|
|
color: var(--color-purple-darker);
|
|
background-color: var(--color-lightest);
|
|
}
|
|
|
|
a {
|
|
color: var(--color-red-dark);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--color-red-base);
|
|
}
|
|
|
|
a:active {
|
|
color: var(--color-orange-darker);
|
|
}
|
|
|
|
[aria-current]:not([aria-current="false"]), [aria-current]:not([aria-current="false"]) a {
|
|
font-weight: bold;
|
|
color: var(--color-purple-base);
|
|
}
|
|
|
|
.info {
|
|
display: inline-block;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
footer {
|
|
font-size: 0.8em;
|
|
text-align: center;
|
|
width: 50%;
|
|
margin: auto;
|
|
margin-top: 10px;
|
|
border-top-style: solid;
|
|
border-top-width: 3px;
|
|
border-top-color: var(--color-purple-base);
|
|
}
|
|
|
|
.banner a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.icon {
|
|
width: 2em;
|
|
border-radius: 5px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.icon:active {
|
|
background-color: var(--color-yellow-lighter);
|
|
}
|
|
|
|
hr {
|
|
color: var(--color-purple-lightest);
|
|
width: 70%;
|
|
max-width: 500px;
|
|
}
|
|
|
|
nav {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.banner {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 100%;
|
|
margin-bottom: 5px;
|
|
padding: 5px 0;
|
|
align-items: center;
|
|
background: linear-gradient(22deg, var(--color-yellow-darker) 0%, var(--color-red-darker) 20%, var(--color-purple-darker) 100%);
|
|
color: var(--color-red-light);
|
|
border-bottom-style: solid;
|
|
border-bottom-width: 2px;
|
|
}
|
|
|
|
.banner a {
|
|
color: var(--color-yellow-base);
|
|
}
|
|
|
|
.banner a:hover {
|
|
color: var(--color-yellow-light);
|
|
}
|
|
|
|
.banner a:active {
|
|
color: var(--color-yellow-lighter);
|
|
}
|
|
|
|
.title-block {
|
|
flex-grow: 2;
|
|
}
|
|
|
|
.social {
|
|
display: flex;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.social-left {
|
|
display: none;
|
|
flex-grow: 1;
|
|
text-align: left;
|
|
align-content: center;
|
|
padding-left: 4vw;
|
|
}
|
|
|
|
.social-right {
|
|
flex-grow: 2;
|
|
text-align: right;
|
|
align-content: center;
|
|
padding-right: 4vw;
|
|
}
|
|
|
|
.logo-block {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.title, .subtitle {
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin: 10px 0px;
|
|
}
|
|
|
|
.tags {
|
|
text-align: center;
|
|
margin: 10px 0px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 5vw;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--color-red-lighter);
|
|
font-size: 2vw;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
height: 10vw;
|
|
border-radius: 50%;
|
|
margin: auto;
|
|
padding: 8px;
|
|
}
|
|
|
|
.overflowHidden {
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
touch-action: none;
|
|
-ms-touch-action: none;
|
|
}
|
|
|
|
menu {
|
|
width: 90%;
|
|
padding: 0;
|
|
margin: auto;
|
|
text-align: center;
|
|
font-size: 1.1em
|
|
}
|
|
|
|
#nav-stack {
|
|
display: none;
|
|
width: 100vw;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
z-index: 1;
|
|
background-color: var(--color-lightest);
|
|
}
|
|
|
|
#nav-stack.active {
|
|
display: block;
|
|
}
|
|
|
|
menu.stack {
|
|
height: 90vh;
|
|
overflow: scroll
|
|
}
|
|
|
|
.menu-stack-footer {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.menu-button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-stack-footer button.menu-button {
|
|
color: var(--color-red-light);
|
|
}
|
|
|
|
.menu-item {
|
|
display: inline-block;
|
|
margin: 10px;
|
|
}
|
|
|
|
.stack {
|
|
display: block;
|
|
width: 100%;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.menu-item > a {
|
|
display: block;
|
|
}
|
|
|
|
menu ul, nav ul {
|
|
list-style-type: none;
|
|
margin: 0;
|
|
}
|
|
|
|
menu li, nav li {
|
|
display: inline;
|
|
}
|
|
|
|
.content {
|
|
width: 90%;
|
|
margin: auto;
|
|
}
|
|
|
|
article > footer {
|
|
width: 90%;
|
|
}
|
|
|
|
nav.pagination {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
text-align: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
a.pagination, .pagination-dummy{
|
|
padding: 0.7em;
|
|
margin: 3px;
|
|
border-radius: 10px;
|
|
border: solid 1px;
|
|
}
|
|
|
|
.meta {
|
|
font-size: 0.9em;
|
|
list-style-type: none;
|
|
border-left: solid 1px var(--color-purple-dark);
|
|
padding-left: 10px;
|
|
}
|
|
|
|
footer.meta {
|
|
border-top: none;
|
|
text-align: left;
|
|
}
|
|
|
|
.meta em {
|
|
color: var(--color-purple-dark);
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
article h2 {
|
|
font-size: 1.2em;
|
|
text-align: left;
|
|
}
|
|
|
|
h2.post {
|
|
text-align: center;
|
|
}
|
|
|
|
h1.article {
|
|
font-size: 2.5em;
|
|
margin-block: 0.67em;
|
|
margin: 0;
|
|
color: var(--color-purple-darker);
|
|
}
|
|
|
|
article img {
|
|
display: block;
|
|
width: 40vw;
|
|
margin: auto;
|
|
}
|
|
|
|
article {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.content-warning {
|
|
color: var(--color-red-base);
|
|
font-family: Monospace;
|
|
font-size: 2em;
|
|
font-style: italic;
|
|
text-align: center;
|
|
}
|
|
|
|
.content-warning > div {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.simple-footnotes {
|
|
font-size: 0.8em;
|
|
margin: 40px 0;
|
|
border-top: solid 1px var(--color-orange-light);
|
|
padding-top: 15px;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: var(--color-darkest);
|
|
color: var(--color-purple-lightest);
|
|
}
|
|
|
|
#nav-stack {
|
|
background-color: var(--color-darkest);
|
|
}
|
|
|
|
.content-warning {
|
|
color: var(--color-red-lighter);
|
|
}
|
|
|
|
a {
|
|
color: var(--color-orange-lighter);
|
|
background-color: initial;
|
|
}
|
|
|
|
.menu-item[aria-current]:not([aria-current="false"]) a, [aria-current]:not([aria-current="false"]) {
|
|
color: var(--color-purple-lighter);
|
|
background-color: initial;
|
|
}
|
|
|
|
a:hover, .menu-item:hover > a, [aria-current]:not([aria-current="false"]):hover {
|
|
color: var(--color-red-light);
|
|
background-color: initial;
|
|
}
|
|
|
|
a:active, .menu-item:active > a, [aria-current]:not([aria-current="false"]):hover {
|
|
color: var(--color-red-lighter);
|
|
background-color: initial;
|
|
}
|
|
|
|
.meta {
|
|
border-color: var(--color-purple-base);
|
|
}
|
|
|
|
.meta em {
|
|
color: var(--color-yellow-base);
|
|
}
|
|
|
|
.content-warning {
|
|
color: var(--color-red-lighter);
|
|
}
|
|
|
|
h1.article {
|
|
color: var(--color-red-light);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 880px) {
|
|
.banner {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.logo {
|
|
height: 28vw;
|
|
}
|
|
|
|
.title {
|
|
font-size: 8vw;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 3vw;
|
|
|
|
}
|
|
|
|
.social {
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.icon {
|
|
width: 2.5em;
|
|
}
|
|
|
|
.social-left {
|
|
display: initial;
|
|
}
|
|
|
|
.menu-list {
|
|
display: none;
|
|
}
|
|
|
|
.nav-stack {
|
|
display: initial;
|
|
}
|
|
}
|