themu/assets/css/main.css
2023-10-10 01:56:29 +06:00

293 lines
4.4 KiB
CSS

:root{
--maincolor: peachpuff;
}
html {
background-color: black;
background-image: url("https://mm4rk3t.neocities.org/gif/stars.gif");
background-size: 600px;
background-attachment: fixed;
background-position: center top;
color: #232333;
font-family: monospace;
font-size: 15px;
line-height: 1.6em;
scrollbar-color: var(--maincolor) black;
scrollbar-width: thin;
cursor: url("//fruw.org/cursor-auto.svg") 10 10, none;
}
body{
display: block;
margin: 0;
color: white;
}
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
::selection {
background: var(--maincolor);
color: black;
}
p {
line-height: 1.5;
}
hr {
margin: 1em 0;
}
blockquote {
color: #737373;
margin: 0;
padding-left: 1em;
}
a {
border-bottom: 3px solid var(--maincolor);
color: inherit;
text-decoration: none;
cursor: url("//fruw.org/cursor-pointer.svg") 10 10, pointer;
}
a:hover {
background-color: var(--maincolor);
color: black;
cursor: url("//fruw.org/cursor-pointer.svg") 10 10, pointer;
}
ul {
list-style: none;
padding-left: 2ch;
}
ul li {
text-indent: -2ch;
}
ul > li::before {
content: '* ';
font-weight: bold;
}
ul.pagination {
padding-left: 0;
}
/* Images */
img {
border: 3px solid #ececec;
max-width: 100%;
}
figure {
box-sizing: border-box;
display: inline-block;
margin: 0;
max-width: 100%;
}
figure img {
max-height: 500px;
}
@media screen and (min-width: 600px) {
figure {
padding: 0 40px;
}
}
figure h4 {
font-size: 1rem;
margin: 0;
margin-bottom: 1em;
}
figure h4::before {
content: '↳ ';
}
/* Code blocks */
code {
background-color: #f1f1f1;
padding: .1em .2em;
}
pre {
background-color: #ececec;
line-height: 1.4;
padding: 1em;
white-space: pre-wrap;
}
.highlight pre ::selection {
background: rgba(255, 255, 255, 0.2);
color: inherit;
}
pre code {
background-color: transparent;
color: inherit;
font-size: 100%;
padding: 0;
}
/* Containers */
.content {
background-color: black;
margin: auto;
max-width: 800px;
padding: 1% 3%;
word-wrap: break-word;
/* border-style: solid;
border-bottom-width: 0;
border-top-width: 0;
border-color: var(--maincolor); */
}
/* Header */
header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 1em 0;
line-height: 2.5em;
}
header .main {
font-size: 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
font-size: 1.2rem;
margin-top: 2em;
}
h1::before { color: var(--maincolor); content: '# '; }
h2::before { color: var(--maincolor); content: '## '; }
h3::before { color: var(--maincolor); content: '### '; }
h4::before { color: var(--maincolor); content: '#### '; }
h5::before { color: var(--maincolor); content: '##### '; }
h6::before { color: var(--maincolor); content: '###### '; }
.meta {
color: #999;
letter-spacing: -0.5px;
}
/* Footer */
footer {
display: flex;
align-items: center;
padding: 2rem 0rem;
margin-top: 0;
}
.soc {
display: flex;
justify-content: space-between;
width: 100%;
}
.border {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
.footer-info {
padding: var(--footer-padding);
}
/* Common */
.title h1 {
margin-bottom: 0;
}
time {
color: grey;
}
/* Posts */
article .title {
margin-bottom: 1em;
}
/* Callout */
.callout {
background-color: var(--maincolor);
color: #fff;
padding: 1em;
}
.callout p {
margin: 0;
}
.callout a {
border-bottom: 3px solid #fff;
}
.callout a:hover {
background-color: #fff;
color: var(--maincolor);
}
body .site-description{
text-align: center;
}
.site-description pre{
display: flex;
justify-content: space-between;
text-align: left;
display: inline-block;
background-color: black;
}
.site-description pre ascii{
color: var(--maincolor);
}
.tags li::before {
content: "* ";
}
svg {
max-height: 15px;
}
.highlight {
position: relative;
-webkit-overflow-scrolling: touch;
}
code.language-shell span:not([style]):not([class="language-sh"] span):not([class="meta"]):not([class="pagination"] span)::before {
content: "# ";
color: #555;
}
code.language-bash span:not([style]):not([class="language-sh"] span):not([class="meta"]):not([class="pagination"] span)::before {
content: "$ ";
color: #555;
}
code {
background-color: #111;
}
::-webkit-scrollbar {
width: 3.5px;
height: 3.5px;
}
::-webkit-scrollbar-track {
background: black;
}
::-webkit-scrollbar-thumb {
background: var(--maincolor);
}