themu/assets/css/main.css

276 lines
3.6 KiB
CSS
Raw Normal View History

2023-07-30 12:11:08 +03:00
:root{
2023-09-25 16:16:02 +03:00
--maincolor: peachpuff;
2020-04-11 09:59:56 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
html {
2023-07-30 12:11:08 +03:00
color: #232333;
2023-07-30 21:31:39 +03:00
font-family: monospace;
2023-07-30 12:11:08 +03:00
font-size: 15px;
line-height: 1.6em;
2023-09-25 16:16:02 +03:00
scrollbar-color: var(--maincolor) black;
scrollbar-width: thin;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
body{
display: block;
margin: 8px;
2023-07-30 12:34:53 +03:00
background-color: black;
2023-07-30 12:36:25 +03:00
color: white;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
* {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
2020-04-08 21:44:29 +03:00
::selection {
2023-07-30 12:11:08 +03:00
background: var(--maincolor);
2023-09-24 13:10:12 +03:00
color: black;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
p {
2023-07-30 12:11:08 +03:00
line-height: 1.5;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
hr {
2023-07-30 12:11:08 +03:00
margin: 1em 0;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
blockquote {
2023-07-30 12:11:08 +03:00
color: #737373;
margin: 0;
padding-left: 1em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
a {
2023-07-30 12:11:08 +03:00
border-bottom: 3px solid var(--maincolor);
color: inherit;
text-decoration: none;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
a:hover {
2023-07-30 12:11:08 +03:00
background-color: var(--maincolor);
2023-09-24 13:10:12 +03:00
color: black;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
ul {
2023-07-30 12:11:08 +03:00
list-style: none;
padding-left: 2ch;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
ul li {
2023-07-30 12:11:08 +03:00
text-indent: -2ch;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2021-01-30 15:42:02 +03:00
ul > li::before {
2023-07-30 12:11:08 +03:00
content: '* ';
font-weight: bold;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2023-07-30 12:45:03 +03:00
ul.pagination {
padding-left: 0;
}
2023-07-30 12:11:08 +03:00
/* Images */
2020-04-08 21:44:29 +03:00
img {
2023-07-30 12:11:08 +03:00
border: 3px solid #ececec;
max-width: 100%;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
figure {
2023-07-30 12:11:08 +03:00
box-sizing: border-box;
display: inline-block;
margin: 0;
max-width: 100%;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
figure img {
2023-07-30 12:11:08 +03:00
max-height: 500px;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
@media screen and (min-width: 600px) {
2023-07-30 12:11:08 +03:00
figure {
padding: 0 40px;
}
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
figure h4 {
2023-07-30 12:11:08 +03:00
font-size: 1rem;
margin: 0;
margin-bottom: 1em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:13:21 +03:00
2020-04-08 21:44:29 +03:00
figure h4::before {
2023-07-30 12:11:08 +03:00
content: '↳ ';
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
/* Code blocks */
2020-04-08 21:44:29 +03:00
code {
2023-07-30 12:11:08 +03:00
background-color: #f1f1f1;
padding: .1em .2em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
pre {
2023-07-30 12:11:08 +03:00
background-color: #ececec;
line-height: 1.4;
padding: 1em;
2023-09-25 13:49:42 +03:00
white-space: pre-wrap;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
.highlight pre ::selection {
2023-07-30 12:11:08 +03:00
background: rgba(255, 255, 255, 0.2);
color: inherit;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
pre code {
2023-07-30 12:11:08 +03:00
background-color: transparent;
color: inherit;
font-size: 100%;
padding: 0;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
/* Containers */
2020-04-08 21:44:29 +03:00
.content {
2023-07-30 12:11:08 +03:00
margin-left: auto;
margin-right: auto;
max-width: 800px;
padding: 0 1ch;
word-wrap: break-word;
}
/* Header */
2020-04-08 21:44:29 +03:00
header {
2023-07-30 12:11:08 +03:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 1em 0;
line-height: 2.5em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
header .main {
2023-07-30 12:11:08 +03:00
font-size: 1.5rem;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:13:21 +03:00
2020-04-11 17:45:12 +03:00
h1, h2, h3, h4, h5, h6 {
2023-07-30 12:11:08 +03:00
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 {
2023-07-30 12:11:08 +03:00
color: #999;
letter-spacing: -0.5px;
}
2023-07-30 12:11:08 +03:00
/* Footer */
2020-04-08 21:44:29 +03:00
footer {
2023-07-30 12:11:08 +03:00
display: flex;
align-items: center;
padding: 2rem 0rem;
2023-07-30 19:46:18 +03:00
margin-top: 0;
}
2023-07-30 12:11:08 +03:00
.soc {
2023-07-30 12:11:08 +03:00
display: flex;
2023-09-25 16:59:10 +03:00
justify-content: space-between;
width: 100%;
}
2023-07-30 12:11:08 +03:00
.border {
2023-07-30 12:11:08 +03:00
margin-left: 0.5rem;
margin-right: 0.5rem;
}
.footer-info {
padding: var(--footer-padding);
}
2023-07-30 12:11:08 +03:00
/* Common */
2020-04-08 21:44:29 +03:00
.title h1 {
2023-07-30 12:11:08 +03:00
margin-bottom: 0;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
time {
2023-07-30 12:11:08 +03:00
color: grey;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
/* Posts */
2020-04-08 21:44:29 +03:00
article .title {
2023-07-30 12:11:08 +03:00
margin-bottom: 1em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
/* Callout */
2020-04-08 21:44:29 +03:00
.callout {
2023-07-30 12:11:08 +03:00
background-color: var(--maincolor);
color: #fff;
padding: 1em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
.callout p {
2023-07-30 12:11:08 +03:00
margin: 0;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
.callout a {
2023-07-30 12:11:08 +03:00
border-bottom: 3px solid #fff;
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2020-04-08 21:44:29 +03:00
.callout a:hover {
2023-07-30 12:11:08 +03:00
background-color: #fff;
color: var(--maincolor);
2020-04-08 21:44:29 +03:00
}
2023-07-30 12:11:08 +03:00
2023-07-30 19:40:29 +03:00
body .site-description{
text-align: center;
}
.site-description pre{
2023-07-30 12:11:08 +03:00
display: flex;
justify-content: space-between;
2023-07-30 19:33:19 +03:00
text-align: left;
display: inline-block;
2023-07-30 19:48:02 +03:00
background-color: black;
2023-07-30 12:11:08 +03:00
}
2023-09-24 16:19:26 +03:00
.site-description pre ascii{
color: var(--maincolor);
}
2023-07-30 12:13:21 +03:00
.tags li::before {
2023-07-30 13:26:19 +03:00
content: "* ";
2023-07-30 12:11:08 +03:00
}
2023-07-30 12:13:21 +03:00
svg {
2023-07-30 12:11:08 +03:00
max-height: 15px;
}
2023-07-30 11:58:54 +03:00
.highlight {
2023-07-30 12:11:08 +03:00
position: relative;
-webkit-overflow-scrolling: touch;
2020-06-24 10:57:58 +03:00
}
2023-09-25 16:01:56 +03:00
2023-09-25 19:31:25 +03:00
span:not([style])::before {
2023-09-25 18:01:58 +03:00
content: "$ ";
2023-09-25 19:31:25 +03:00
color: #555;
}
code {
background-color: #111;
2023-09-25 18:01:58 +03:00
}
2023-09-25 16:01:56 +03:00
::-webkit-scrollbar {
width: 3.5px;
}
::-webkit-scrollbar-track {
background: black;
}
::-webkit-scrollbar-thumb {
background: var(--maincolor);
}