themu/assets/css/main.css

421 lines
7.2 KiB
CSS
Raw Normal View History

2023-07-30 11:58:54 +03:00
root {
--maincolor : blue;
2020-04-11 09:59:56 +03:00
}
2020-04-08 21:44:29 +03:00
html {
2023-07-30 11:58:54 +03:00
color : #232333;
font-family : 'Roboto Mono', monospace;
font-size : 15px;
line-height : 1.6em;
2020-04-08 21:44:29 +03:00
}
2023-07-30 11:58:54 +03:00
body {
display : block;
margin : 8px;
2020-04-08 21:44:29 +03:00
}
::selection {
2023-07-30 11:58:54 +03:00
background : blue;
color : #fff;
2020-04-08 21:44:29 +03:00
}
p {
2023-07-30 11:58:54 +03:00
font-family : 'Fira Sans', sans-serif;
line-height : 1.5;
2020-04-08 21:44:29 +03:00
}
hr {
2023-07-30 11:58:54 +03:00
margin : 1em 0;
2020-04-08 21:44:29 +03:00
}
blockquote {
2023-07-30 11:58:54 +03:00
color : #737373;
margin : 0;
padding-left : 1em;
2020-04-08 21:44:29 +03:00
}
a {
2023-07-30 11:58:54 +03:00
border-bottom : 3px solid blue;
color : inherit;
text-decoration : none;
2020-04-08 21:44:29 +03:00
}
a:hover {
2023-07-30 11:58:54 +03:00
background-color : blue;
color : #fff;
2020-04-08 21:44:29 +03:00
}
ul {
2023-07-30 11:58:54 +03:00
list-style : none;
padding-left : 2ch;
2020-04-08 21:44:29 +03:00
}
ul li {
2023-07-30 11:58:54 +03:00
text-indent : -2ch;
2020-04-08 21:44:29 +03:00
}
2021-01-30 15:42:02 +03:00
ul > li::before {
2023-07-30 11:58:54 +03:00
content : '* ';
font-weight : bold;
2020-04-08 21:44:29 +03:00
}
img {
2023-07-30 11:58:54 +03:00
border : #ececec solid 3px;
max-width : 100%;
2020-04-08 21:44:29 +03:00
}
figure {
2023-07-30 11:58:54 +03:00
box-sizing : border-box;
display : inline-block;
margin : 0;
max-width : 100%;
2020-04-08 21:44:29 +03:00
}
figure img {
2023-07-30 11:58:54 +03:00
max-height : 500px;
2020-04-08 21:44:29 +03:00
}
@media screen and (min-width: 600px) {
2023-07-30 11:58:54 +03:00
figure {
padding : 0 40px;
}
2020-04-08 21:44:29 +03:00
}
figure h4 {
2023-07-30 11:58:54 +03:00
font-size : 1rem;
margin : 0;
margin-bottom : 1em;
2020-04-08 21:44:29 +03:00
}
figure h4::before {
2023-07-30 11:58:54 +03:00
content : '↳ ';
2020-04-08 21:44:29 +03:00
}
code {
2023-07-30 11:58:54 +03:00
background-color : #f1f1f1;
padding : 0.1em 0.2em;
2020-04-08 21:44:29 +03:00
}
pre {
2023-07-30 11:58:54 +03:00
background-color : #ececec;
line-height : 1.4;
overflow-x : auto;
padding : 1em;
2020-04-08 21:44:29 +03:00
}
.highlight pre ::selection {
2023-07-30 11:58:54 +03:00
background : rgb(255, 255, 255, 0.2);
color : inherit;
2020-04-08 21:44:29 +03:00
}
pre code {
2023-07-30 11:58:54 +03:00
background-color : transparent;
color : inherit;
font-size : 100%;
padding : 0;
2020-04-08 21:44:29 +03:00
}
.content {
2023-07-30 11:58:54 +03:00
margin-bottom : 4em;
margin-left : auto;
margin-right : auto;
max-width : 800px;
padding : 0 1ch;
overflow-wrap : break-word;
}
2020-04-08 21:44:29 +03:00
header {
2023-07-30 11:58:54 +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
}
header .main {
2023-07-30 11:58:54 +03:00
font-size : 1.5rem;
2020-04-08 21:44:29 +03:00
}
2020-04-11 17:45:12 +03:00
h1, h2, h3, h4, h5, h6 {
2023-07-30 11:58:54 +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 11:58:54 +03:00
color : #999;
letter-spacing : -0.5px;
}
2020-04-08 21:44:29 +03:00
footer {
2023-07-30 11:58:54 +03:00
display : flex;
align-items : center;
padding : 2rem 0;
margin-top : 2rem;
}
.soc {
2023-07-30 11:58:54 +03:00
display : flex;
align-items : center;
border-bottom : none;
}
.border {
2023-07-30 11:58:54 +03:00
margin-left : 0.5rem;
margin-right : 0.5rem;
border : solid 1px;
}
2020-04-08 21:44:29 +03:00
.title h1 {
2023-07-30 11:58:54 +03:00
margin-bottom : 0;
2020-04-08 21:44:29 +03:00
}
time {
2023-07-30 11:58:54 +03:00
color : grey;
2020-04-08 21:44:29 +03:00
}
article .title {
2023-07-30 11:58:54 +03:00
margin-bottom : 1em;
2020-04-08 21:44:29 +03:00
}
.callout {
2023-07-30 11:58:54 +03:00
background-color : blue;
color : #fff;
padding : 1em;
2020-04-08 21:44:29 +03:00
}
.callout p {
2023-07-30 11:58:54 +03:00
font-family : 'IBM Plex Mono', monospace;
margin : 0;
2020-04-08 21:44:29 +03:00
}
.callout a {
2023-07-30 11:58:54 +03:00
border-bottom : 3px solid #fff;
2020-04-08 21:44:29 +03:00
}
.callout a:hover {
2023-07-30 11:58:54 +03:00
background-color : #fff;
color : var(--maincolor);
2020-04-08 21:44:29 +03:00
}
.site-description {
2023-07-30 11:58:54 +03:00
display : flex;
justify-content : space-between;
}
.tags li::before {
content : "<";
}
.tags li::after {
content : ">";
}
.tags a {
border-bottom : 3px solid blue;
}
.tags a:hover {
color : white;
background-color : blue;
}
svg {
max-height : 15px;
2020-06-24 10:57:58 +03:00
}
2023-07-30 11:58:54 +03:00
.soc:hover {
color : white;
}
.draft-label {
text-decoration : none;
padding : 2px 4px;
margin-left : 6px;
background-color : #f9f2f4;
}
.highlight {
position : relative;
2020-06-24 10:57:58 +03:00
}
.highlight pre code[class*="language-"]::before {
2023-07-30 11:58:54 +03:00
background : black;
border-radius : 0 0 0.25rem 0.25rem;
color : white;
font-size : 12px;
letter-spacing : 0.025rem;
padding : 0.1rem 0.5rem;
position : absolute;
right : 1rem;
text-align : right;
text-transform : uppercase;
top : 0;
}
.highlight pre code[class="language-javaScript"]::before, .highlight pre code[class="language-js"]::before {
content : "js";
background : #f7df1e;
color : black;
}
.highlight pre code[class*="language-yml"]::before, .highlight pre code[class*="language-yaml"]::before {
content : 'yaml';
background : #f71e6a;
color : white;
}
.highlight pre code[class*="language-shell"]::before, .highlight pre code[class*="language-bash"]::before, .highlight pre code[class*="language-sh"]::before {
content : 'shell';
background : green;
color : white;
}
.highlight pre code[class*="language-json"]::before {
content : 'json';
background : dodgerblue;
color : #000000;
}
.highlight pre code[class*="language-python"]::before, .highlight pre code[class*="language-py"]::before {
content : 'py';
background : blue;
color : yellow;
}
.highlight pre code[class*="language-css"]::before {
content : 'css';
background : cyan;
color : black;
}
.highlight pre code[class*="language-go"]::before {
content : 'Go';
background : cyan;
color : royalblue;
}
.highlight pre code[class*="language-md"]::before, .highlight pre code[class*="language-md"]::before {
content : 'Markdown';
background : royalblue;
color : whitesmoke;
}
table {
2023-07-30 11:58:54 +03:00
border-spacing : 0;
border-collapse : collapse;
}
2023-07-30 11:58:54 +03:00
table th {
padding : 6px 13px;
border : #dfe2e5 solid 1px;
font-size : large;
}
2023-07-30 11:58:54 +03:00
table td {
padding : 6px 13px;
border : #dfe2e5 solid 1px;
}
2023-07-29 17:04:05 +03:00
body {
2023-07-30 11:58:54 +03:00
color : white;
background-color : black;
2023-07-29 17:04:05 +03:00
}
::-moz-selection {
2023-07-30 11:58:54 +03:00
background : blue;
color : #fff;
text-shadow : none;
2023-07-29 17:04:05 +03:00
}
::selection {
2023-07-30 11:58:54 +03:00
background : blue;
color : #fff;
text-shadow : none;
2023-07-29 17:04:05 +03:00
}
hr {
2023-07-30 11:58:54 +03:00
border-top : 3px dotted blue;
2023-07-29 17:04:05 +03:00
}
code {
2023-07-30 11:58:54 +03:00
background-color : lightblue;
color : black;
padding : 0.1em 0.2em;
2023-07-29 17:04:05 +03:00
}
pre {
2023-07-30 11:58:54 +03:00
background-color : #272822;
line-height : 1.4;
overflow-x : auto;
padding : 1em;
2023-07-29 17:04:05 +03:00
}
blockquote {
2023-07-30 11:58:54 +03:00
border-color : blue;
}
h1, h2, h3, h4, h5, h6 {
color : #ddd;
}
2023-07-29 17:04:05 +03:00
h1::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "# ";
2023-07-29 17:04:05 +03:00
}
h2::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "## ";
2023-07-29 17:04:05 +03:00
}
h3::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "### ";
2023-07-29 17:04:05 +03:00
}
h4::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "#### ";
2023-07-29 17:04:05 +03:00
}
h5::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "##### ";
2023-07-29 17:04:05 +03:00
}
h6::before {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
content : "###### ";
2023-07-29 17:04:05 +03:00
}
a {
2023-07-30 11:58:54 +03:00
border-bottom : 3px solid blue;
color : inherit;
2023-07-29 17:04:05 +03:00
}
a:hover {
2023-07-30 11:58:54 +03:00
background-color : blue;
color : black;
2023-07-29 17:04:05 +03:00
}
.site-description a {
2023-07-30 11:58:54 +03:00
color : #ddd;
2023-07-29 17:04:05 +03:00
}
.site-description a:hover {
2023-07-30 11:58:54 +03:00
color : black;
2023-07-29 17:04:05 +03:00
}
.tags a {
2023-07-30 11:58:54 +03:00
border-bottom : 3px solid blue;
2023-07-29 17:04:05 +03:00
}
.tags a:hover {
2023-07-30 11:58:54 +03:00
background-color : blue;
color : black;
2023-07-29 17:04:05 +03:00
}
.site-title a {
2023-07-30 11:58:54 +03:00
color : white;
text-decoration : none !important ;
2023-07-29 17:04:05 +03:00
}
2023-07-30 11:58:54 +03:00
.header nav, .footer {
border-color : #333;
2023-07-29 17:04:05 +03:00
}
.highlight {
2023-07-30 11:58:54 +03:00
background-color : #333;
2023-07-29 17:04:05 +03:00
}
.soc:hover {
2023-07-30 11:58:54 +03:00
color : black;
2023-07-29 17:04:05 +03:00
}
.draft-label {
2023-07-30 11:58:54 +03:00
color : var(--maincolor);
background-color : blue;
}
.highlight pre code[class="language-javaScript"]::before, .highlight pre code[class="language-js"]::before {
content : "js";
background : #f7df1e;
color : black;
}
.highlight pre code[class*="language-yml"]::before, .highlight pre code[class*="language-yaml"]::before {
content : 'yaml';
background : #f71e6a;
color : white;
}
.highlight pre code[class*="language-shell"]::before, .highlight pre code[class*="language-bash"]::before, .highlight pre code[class*="language-sh"]::before {
content : 'shell';
background : green;
color : white;
}
.highlight pre code[class*="language-json"]::before {
content : 'json';
background : dodgerblue;
color : #000000;
}
.highlight pre code[class*="language-python"]::before, .highlight pre code[class*="language-py"]::before {
content : 'py';
background : blue;
color : yellow;
}
.highlight pre code[class*="language-css"]::before {
content : 'css';
background : cyan;
color : black;
}
.highlight pre code[class*="language-go"]::before {
content : 'Go';
background : cyan;
color : royalblue;
}
.highlight pre code[class*="language-md"]::before, .highlight pre code[class*="language-md"]::before {
content : 'Markdown';
background : royalblue;
color : whitesmoke;
2023-07-29 17:04:05 +03:00
}