themu/assets/css/main.css

301 lines
4.3 KiB
CSS
Raw Normal View History

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