assets/css/main.css (view raw)
1/* Markdown */
2:root{
3--maincolor: red;
4--bordercl:rebeccapurple;
5--callouctcolor:dodgerblue;
6--hovercolor:navy;
7--darkMaincolor: #50fa7b;
8}
9html {
10 color: #232333;
11 font-family: 'Roboto Mono', monospace;
12 font-size: 15px;
13 line-height: 1.6em;
14}
15body{
16 display: block;
17 margin: 8px;
18}
19* {
20 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
21}
22
23::selection {
24 background: var(--maincolor);
25 color: #fff;
26}
27
28p {
29 font-family: 'Fira Sans', sans-serif;
30 line-height: 1.5;
31}
32
33hr {
34 border: 0;
35 border-top: 3px dotted var(--bordercl);
36 margin: 1em 0;
37}
38
39blockquote {
40 border-left: 3px solid var(--bordercl);
41 color: #737373;
42 margin: 0;
43 padding-left: 1em;
44}
45
46a {
47 border-bottom: 3px solid var(--maincolor);
48 color: inherit;
49 text-decoration: none;
50}
51a:hover {
52 background-color: var(--hovercolor);
53 color: #fff;
54}
55
56ul {
57 list-style: none;
58 padding-left: 2ch;
59}
60ul li {
61 text-indent: -2ch;
62}
63ul > li::before {
64 content: '* ';
65 font-weight: bold;
66}
67
68/* Images */
69img {
70 border: 3px solid #ececec;
71 max-width: 100%;
72}
73
74figure {
75 box-sizing: border-box;
76 display: inline-block;
77 margin: 0;
78 max-width: 100%;
79}
80
81figure img {
82 max-height: 500px;
83}
84
85@media screen and (min-width: 600px) {
86 figure {
87 padding: 0 40px;
88 }
89}
90
91figure h4 {
92 font-size: 1rem;
93 margin: 0;
94 margin-bottom: 1em;
95}
96figure h4::before {
97 content: '↳ ';
98}
99
100/* Code blocks */
101code {
102 background-color: #f1f1f1;
103 padding: .1em .2em;
104}
105
106pre {
107 background-color: #ececec;
108 line-height: 1.4;
109 overflow-x: auto;
110 padding: 1em;
111}
112
113.highlight pre ::selection {
114 background: rgba(255, 255, 255, 0.2);
115 color: inherit;
116}
117
118pre code {
119 background-color: transparent;
120 color: inherit;
121 font-size: 100%;
122 padding: 0;
123}
124
125/* Containers */
126.content {
127 margin-bottom: 4em;
128 margin-left: auto;
129 margin-right: auto;
130 max-width: 800px;
131 padding: 0 1ch;
132 word-wrap: break-word;
133}
134
135/* Header */
136header {
137 display: flex;
138 flex-wrap: wrap;
139 justify-content: space-between;
140 margin: 1em 0;
141}
142
143header .main {
144 font-size: 1.5rem;
145}
146h1, h2, h3, h4, h5, h6 {
147 font-size: 1.2rem;
148 margin-top: 2em;
149}
150
151h1::before { color: var(--maincolor); content: '# '; }
152h2::before { color: var(--maincolor); content: '## '; }
153h3::before { color: var(--maincolor); content: '### '; }
154h4::before { color: var(--maincolor); content: '#### '; }
155h5::before { color: var(--maincolor); content: '##### '; }
156h6::before { color: var(--maincolor); content: '###### '; }
157
158.meta {
159 color: #999;
160 letter-spacing: -0.5px;
161}
162
163/* Footer */
164footer {
165 margin-top: 1em;
166}
167
168/* Common */
169.title h1 {
170 margin-bottom: 0;
171}
172
173time {
174 color: grey;
175}
176
177/* Posts */
178article .title {
179 margin-bottom: 1em;
180}
181
182
183/* Callout */
184.callout {
185 background-color: var(--callouctcolor);
186 color: #fff;
187 padding: 1em;
188}
189
190.callout p {
191 font-family: 'IBM Plex Mono', monospace;
192 margin: 0;
193}
194
195.callout a {
196 border-bottom: 3px solid #fff;
197}
198
199.callout a:hover {
200 background-color: #fff;
201 color: var(--callouctcolor);
202}
203
204.site-description {
205display: flex;
206justify-content: space-between;
207}
208.tags li::before{
209 content: "🏷 ";
210}
211.tags a{
212 border-bottom: 3px solid var(--maincolor);
213}
214.tags a:hover{
215 color:white;
216 background-color: var(--hovercolor);
217}
218svg{
219 max-height: 15px;
220}
221.soc:hover{
222 color: white;
223}
224.draft-label{
225 color: var(--bordercl);
226 text-decoration: none;
227 padding: 2px 4px;
228 border-radius: 4px;
229 margin-left: 6px;
230 background-color: #f9f2f4;
231}
232.highlight {
233 position: relative;
234 -webkit-overflow-scrolling: touch;
235}
236.highlight pre code[class*="language-"] {
237 -webkit-overflow-scrolling: touch;
238}
239.highlight pre code[class*="language-"]::before {
240 background: black;
241 border-radius: 0 0 0.25rem 0.25rem;
242 color: white;
243 font-size: 12px;
244 letter-spacing: 0.025rem;
245 padding: 0.1rem 0.5rem;
246 position: absolute;
247 right: 1rem;
248 text-align: right;
249 text-transform: uppercase;
250 top: 0;
251}
252
253.highlight pre code[class=language-javaScript]::before,
254.highlight pre code[class="language-js"]::before {
255content: "js";
256background: #f7df1e;
257color: black;
258}
259.highlight pre code[class*='language-yml']::before,
260.highlight pre code[class*='language-yaml']::before {
261content: 'yaml';
262background: #f71e6a;
263color: white;
264}
265.highlight pre code[class*='language-shell']::before,
266.highlight pre code[class*='language-bash']::before,
267.highlight pre code[class*='language-sh']::before {
268content: 'shell';
269background: green;
270color:white
271}
272.highlight pre code[class*='language-json']::before{
273content: 'json';
274background: dodgerblue;
275 color: #000000
276}
277.highlight pre code[class*='language-python']::before,
278.highlight pre code[class*='language-py']::before {
279content: 'py';
280background: blue;
281color: yellow ;
282}
283.highlight pre code[class*='language-css']::before{
284content: 'css';
285background: cyan;
286color: black ;
287}
288.highlight pre code[class*='language-go']::before{
289content: 'Go';
290background: cyan;
291color: royalblue ;
292}
293.highlight pre code[class*='language-md']::before,
294.highlight pre code[class*='language-md']::before{
295content: 'Markdown';
296background: royalblue;
297color: whitesmoke ;
298}