dot-emacs/publish/assets/layout.css

348 lines
6.4 KiB
CSS

@charset "UTF-8";
/* nextDESIGN v9
*
* nextDESIGN is a personal web design for mmk2410.org.
* The current version (v9) is focused in simplicity and minimalism.
*
* 2020-2022 © Marcel Kapfer <opensource@mmk2410.org>
* Licensed under the MIT License
*/
html {
font-size: 18px;
}
body {
background-color: #fafafa;
color: #333;
font-family: "Raleway", sans-serif;
line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: #fafafa;
}
}
body > #preamble {
align-items: center;
color: #333;
display: flex;
justify-content: space-between;
padding: 20px 40px;
}
body > #preamble #title {
color: #333;
font-size: 36px;
font-weight: 700;
text-decoration: underline;
text-decoration-color: #4d3c9b;
text-decoration-thickness: 5px;
}
body > #preamble a {
color: #4d3c9b;
text-decoration: none;
}
body > #preamble a:hover {
text-decoration: underline;
}
body > #preamble nav {
display: inline;
}
body > #preamble nav a {
text-transform: capitalize;
padding: 5px 6px;
display: inline-block;
}
body > #preamble nav a:hover {
text-decoration: none;
}
body > #preamble nav a:hover:after {
width: 100%;
background: #4d3c9b;
}
body > #preamble nav a:after {
content: "";
display: block;
margin: auto;
height: 2px;
width: 0;
background: 0 0;
transition: width 0.25s ease, background-color 0.25s ease;
}
body > #preamble nav ul {
margin: 0;
padding: 0;
float: right;
}
body > #preamble nav ul li {
display: inline;
}
body > #preamble nav ul li:last-child {
padding-right: 0;
}
body > #preamble .show-menu {
display: none;
margin-top: 10px;
padding: 10px;
text-align: center;
width: 100%;
color: #4d3c9b;
font-weight: bold;
text-transform: uppercase;
}
@media (prefers-color-scheme: dark) {
body > #preamble .show-menu {
color: #ad9bff;
}
}
body > #preamble input[type=checkbox] {
display: none;
}
@media screen and (max-width: 1100px) {
body > #preamble {
border-radius: initial;
flex-direction: column;
background: #fff;
padding-bottom: 0;
}
body > #preamble nav {
display: none;
text-align: center;
width: 100%;
}
body > #preamble nav ul {
float: unset;
}
body > #preamble nav ul li {
display: block;
padding: 0;
}
body > #preamble nav ul li a {
display: block;
padding: 10px 0;
}
body > #preamble .show-menu {
display: block;
}
body > #preamble input[type=checkbox]:checked ~ nav {
display: block;
}
}
@media (prefers-color-scheme: dark) {
body > #preamble {
background: #333;
}
body > #preamble a {
color: #ad9bff;
}
body > #preamble #title {
color: #fafafa;
text-decoration-color: #ad9bff;
}
body > #preamble nav a:hover:after {
background: #ad9bff;
}
}
#content {
background-color: #fff;
border: solid 2px #4d3c9b;
border-radius: 25px;
box-shadow: 1px 1px 5px #888;
margin: 50px auto 100px;
max-width: 800px;
padding: 20px 60px 80px;
}
@media (prefers-color-scheme: dark) {
#content {
background-color: #222;
box-shadow: none;
}
}
#content article {
margin: 40px 0;
}
#content h1, #content h2 {
font-size: 3rem;
margin: 20px 0 0;
padding: 0;
text-decoration: underline;
text-decoration-color: #4d3c9b;
text-decoration-thickness: 4px;
}
@media (prefers-color-scheme: dark) {
#content h1, #content h2 {
text-decoration-color: #ad9bff;
}
}
#content h2 {
font-size: 2rem;
margin: 40px 0 0;
text-decoration-thickness: 3px;
}
#content h2 a {
color: #333;
text-decoration-color: #4d3c9b;
}
@media (prefers-color-scheme: dark) {
#content h2 a {
color: #fafafa;
text-decoration-color: #ad9bff;
}
}
#content h2 a:hover {
text-decoration: none;
}
#content h3 {
font-size: 1.3rem;
}
#content h4 {
font-size: 1.1rem;
}
#content figure {
margin: 0;
}
#content figure img {
width: 100%;
border-radius: 20px;
}
#content p {
text-align: justify;
}
#content a {
color: #4d3c9b;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
#content a {
color: #ad9bff;
}
}
#content a:hover {
text-decoration: underline;
}
#content dt {
font-weight: 700;
}
code, pre {
font-family: "JetBrains Mono", monospace;
}
#content .btn {
border: 1px solid #4d3c9b;
padding: 8px 12px;
border-radius: 20px;
line-height: 3;
white-space: nowrap;
transition: all 0.15s;
margin-right: 5px;
}
#content .btn:hover {
box-shadow: #aaa 1px 2px 6px;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
#content .btn:hover {
box-shadow: #000 1px 2px 6px;
}
}
@media (prefers-color-scheme: dark) {
#content .btn {
border-color: #ad9bff;
}
}
#content .org-src-container {
border-radius: 20px;
}
#content .org-src-container > pre {
overflow-y: auto;
padding: 20px;
}
#content .pagination {
text-align: center;
}
#content .page-item {
display: inline;
padding-right: 10px;
}
#content .page-item:last-child {
padding-right: 0;
}
#content .comment {
margin-top: 60px;
text-align: center;
}
#content .comment a {
font-size: 1.1rem;
}
#content .comment p {
font-size: 0.95rem;
text-align: center;
}
#content #tags > a, #content #categories > a {
font-size: 0.9rem;
color: #fff;
padding: 4px 8px;
border-radius: 20px;
white-space: nowrap;
transition: all 0.15s;
}
#content #tags > a:hover, #content #categories > a:hover {
box-shadow: #aaa 1px 1px 4px;
text-decoration: none;
}
@media (prefers-color-scheme: dark) {
#content #tags > a:hover, #content #categories > a:hover {
box-shadow: #000 1px 1px 4px;
}
}
#content #tags > a {
color: #8171c8;
border: 1px solid #8171c8;
}
@media (prefers-color-scheme: dark) {
#content #tags > a {
color: #a49ccc;
border-color: #a49ccc;
}
}
#content #categories > a {
color: #4d3c9b;
border: 1px solid #4d3c9b;
margin-right: 3px;
}
@media (prefers-color-scheme: dark) {
#content #categories > a {
color: #ad9bff;
border: 1px solid #ad9bff;
}
}
@media screen and (max-width: 1100px) {
#content {
border: none;
box-shadow: none;
margin: 0 auto;
padding: 0 20px 80px;
}
#content .tagories {
text-align: left;
}
#content #tags a, #content #categories a {
line-height: 35px;
}
}
#postamble {
background-color: #333;
color: #fafafa;
padding: 40px;
text-align: center;
}
#postamble a {
color: #fafafa;
text-decoration: none;
}
#postamble a:hover {
text-decoration: underline;
}