aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2021-12-07 16:41:32 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2021-12-07 16:41:32 +0100
commitaa37cb8ec0e1694228a4f3082aebd1e3ee2526d0 (patch)
tree99ac03086c411cb7e7f1c4c6d55840ba571aa4fa
parent70e1bde5b2c3e326b4b240cac7cb3d0619764bc9 (diff)
downloadmitjafelicijan.com-aa37cb8ec0e1694228a4f3082aebd1e3ee2526d0.tar.gz
Move back to Times font and cleanup
-rw-r--r--Makefile2
-rw-r--r--posts/2019-01-03-encoding-binary-data-into-dna-sequence.md8
-rwxr-xr-xtemplate/_meta.html4
-rwxr-xr-xtemplate/index.html2
-rwxr-xr-xtemplate/post.html2
-rwxr-xr-xtemplate/style.css392
6 files changed, 24 insertions, 386 deletions
diff --git a/Makefile b/Makefile
index eade890..fb44b73 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ dev:
16 alternator --watch 16 alternator --watch
17 17
18build: 18build:
19 bash dither-images.sh 19 #bash dither-images.sh
20 mkdir -p public 20 mkdir -p public
21 openring -l 165 -n 4 -p 1 \ 21 openring -l 165 -n 4 -p 1 \
22 -s https://cronokirby.com/posts/index.xml \ 22 -s https://cronokirby.com/posts/index.xml \
diff --git a/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md b/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
index ea2bec8..6f6b3d7 100644
--- a/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
+++ b/posts/2019-01-03-encoding-binary-data-into-dna-sequence.md
@@ -174,10 +174,10 @@ FASTA format was extended by [FASTQ](https://en.wikipedia.org/wiki/FASTQ_format)
174 174
175| Nucleotides | RGB | Color name | 175| Nucleotides | RGB | Color name |
176| ------------- | ----------- | ---------- | 176| ------------- | ----------- | ---------- |
177| A -> Adenine | (0,0,255) | Blue | 177| A Adenine | (0,0,255) | Blue |
178| G -> Guanine | (0,100,0) | Green | 178| G Guanine | (0,100,0) | Green |
179| C -> Cytosine | (255,0,0) | Red | 179| C Cytosine | (255,0,0) | Red |
180| T -> Thymine | (255,255,0) | Yellow | 180| T Thymine | (255,255,0) | Yellow |
181 181
182With this in mind we can create a simple algorithm to create PNG representation of a DNA sequence. 182With this in mind we can create a simple algorithm to create PNG representation of a DNA sequence.
183 183
diff --git a/template/_meta.html b/template/_meta.html
index 4d8494f..925fb68 100755
--- a/template/_meta.html
+++ b/template/_meta.html
@@ -5,10 +5,10 @@
5 5
6<meta name="theme-color" content="#ffffff"> 6<meta name="theme-color" content="#ffffff">
7 7
8<link rel="stylesheet" href="/style.css?v=2021-10-07-3"> 8<link rel="stylesheet" href="/style.css?v=2021-12-07-2">
9 9
10<link rel="alternate" type="application/rss+xml" href="/feed.rss"> 10<link rel="alternate" type="application/rss+xml" href="/feed.rss">
11<link rel="alternate" type="application/feed+json" href="/feed.json"> 11<link rel="alternate" type="application/feed+json" href="/feed.json">
12<link rel="alternate" type="application/rss+xml" href="/yapyap.xml" title="YapYap"> 12<link rel="alternate" type="application/rss+xml" href="/yapyap.xml" title="YapYap">
13 13
14<link rel="icon" href="/assets/general/favicon.png?v=2021-10-07" type="image/png"> 14<link rel="icon" href="/assets/general/favicon.png?v=2021-12-07-1" type="image/png">
diff --git a/template/index.html b/template/index.html
index 83567e7..d768c64 100755
--- a/template/index.html
+++ b/template/index.html
@@ -15,7 +15,7 @@
15 {{template "_navigation.html"}} 15 {{template "_navigation.html"}}
16 16
17 <main class="wrapper"> 17 <main class="wrapper">
18 <h2>Posts</h2> 18 <h2>Blog posts</h2>
19 <nav itemscope itemtype="https://schema.org/SiteNavigationElement"> 19 <nav itemscope itemtype="https://schema.org/SiteNavigationElement">
20 <meta itemprop="name" content="Article list"> 20 <meta itemprop="name" content="Article list">
21 21
diff --git a/template/post.html b/template/post.html
index 512fff6..0404820 100755
--- a/template/post.html
+++ b/template/post.html
@@ -19,7 +19,7 @@
19 <header> 19 <header>
20 <h1 itemtype="headline">{{.Title}}</h1> 20 <h1 itemtype="headline">{{.Title}}</h1>
21 {{if .Listing}} 21 {{if .Listing}}
22 <time>{{.CreatedFormatted}}</time> 22 <time>Posted on {{.CreatedFormatted}}</time>
23 {{end}} 23 {{end}}
24 </header> 24 </header>
25 <div> 25 <div>
diff --git a/template/style.css b/template/style.css
index d4c77ad..9862087 100755
--- a/template/style.css
+++ b/template/style.css
@@ -1,19 +1,19 @@
1@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
2
3:root { 1:root {
4 --base-document-width: 760px; 2 --base-document-width: 740px;
5 --base-font-size: 18px; 3 --base-font-size: 18px;
6 --base-color: #111111; 4 --base-color: #111111;
7 5
8 --link-color: #111111; 6 --link-color: #111111;
9 --link-color-hover: #111111; 7 --link-color-hover: #111111;
10 8
11 --label-color: #5f5f5f; 9 --label-color: #333333;
12 10
13 --border-color: #eeeeee; 11 --border-color: #eeeeee;
14 12
15 --badge-background-color: #eeeeee; 13 --badge-background-color: #eeeeee;
16 --badge-label-color: #111111; 14 --badge-label-color: #111111;
15
16 --code-font-size: 13px;
17} 17}
18 18
19* { 19* {
@@ -22,7 +22,7 @@
22 22
23body { 23body {
24 background: white; 24 background: white;
25 font-family: 'IBM Plex Sans', sans-serif; 25 font-family: 'Times New Roman', Times, serif;
26 color: var(--base-color); 26 color: var(--base-color);
27 font-size: var(--base-font-size); 27 font-size: var(--base-font-size);
28 line-height: 1.7em; 28 line-height: 1.7em;
@@ -56,14 +56,9 @@ hr {
56 56
57/* links */ 57/* links */
58 58
59a { 59a {}
60 color: var(--link-color);
61 /* font-weight: 600; */
62}
63 60
64a:hover { 61a:hover {}
65 color: var(--link-color-hover);
66}
67 62
68 63
69/* headings */ 64/* headings */
@@ -126,7 +121,6 @@ blockquote p {
126/* header navigation */ 121/* header navigation */
127 122
128.navigation { 123.navigation {
129 /*border-bottom: 1px dotted var(--border-color);*/
130 margin-block-start: 10px; 124 margin-block-start: 10px;
131 margin-block-end: 50px; 125 margin-block-end: 50px;
132} 126}
@@ -180,16 +174,14 @@ blockquote p {
180 display: block; 174 display: block;
181 font-size: 70%; 175 font-size: 70%;
182 font-weight: 500; 176 font-weight: 500;
177 line-height: 1.2em;
183} 178}
184 179
185.post-list li a { 180.post-list li a {
186 display: inline-block; 181 display: inline-block;
187 text-decoration: none;
188} 182}
189 183
190.post-list li a:hover { 184.post-list li a:hover {}
191 text-decoration: underline;
192}
193 185
194.post-list li a h2 { 186.post-list li a h2 {
195 font-weight: 500; 187 font-weight: 500;
@@ -204,10 +196,7 @@ blockquote p {
204 margin-top: 60px; 196 margin-top: 60px;
205} 197}
206 198
207.project-list a { 199.project-list a {}
208 font-weight: 400;
209 text-decoration: none;
210}
211 200
212.project-list li { 201.project-list li {
213 list-style-type: disclosure-closed; 202 list-style-type: disclosure-closed;
@@ -253,11 +242,11 @@ blockquote p {
253} 242}
254 243
255code { 244code {
256 font-family: 'IBM Plex Mono', monospace; 245 font-family: monospace;
257 background: rgb(255, 241, 177); 246 background: rgb(255, 241, 177);
258 border-radius: 5px; 247 border-radius: 5px;
259 padding: 2px 8px; 248 padding: 2px 8px;
260 font-size: 14px; 249 font-size: var(--code-font-size);
261 font-weight: 500; 250 font-weight: 500;
262} 251}
263 252
@@ -271,7 +260,7 @@ pre > code {
271} 260}
272 261
273pre { 262pre {
274 font-size: 14px; 263 font-size: var(--code-font-size);
275 line-height: 1.5em; 264 line-height: 1.5em;
276 265
277 margin-block-start: 40px; 266 margin-block-start: 40px;
@@ -306,7 +295,7 @@ article img {
306 width: 120%; 295 width: 120%;
307 position: relative; 296 position: relative;
308 left: -10%; 297 left: -10%;
309 margin: 70px auto; 298 margin: 40px auto;
310 border: 1px solid #eee; 299 border: 1px solid #eee;
311} 300}
312 301
@@ -337,356 +326,7 @@ audio {
337} 326}
338 327
339.footer a { 328.footer a {
340 color: #777; 329 color: #666;
341}
342
343
344/* responsive */
345
346@media only screen and (max-width: 960px) {
347 main { padding: 0 20px; }
348 footer { padding: 0 20px; }
349 h1[itemtype="headline"] { font-size: 220%; }
350 .navigation header { padding: 0 20px; }
351
352 article img {
353 max-width: 100%;
354 position: initial;
355 margin: 50px auto;
356 }
357}
358
359@media only screen and (max-width: 600px) {
360 .navigation header { display: block; }
361 .navigation header h3 { text-align: center; margin-bottom: 10px; }
362 .navigation header nav { text-align: center; }
363}
364
365
366/* light/dark mode */@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
367
368:root {
369 --base-document-width: 760px;
370 --base-font-size: 18px;
371 --base-color: #111111;
372
373 --link-color: #111111;
374 --link-color-hover: #111111;
375
376 --label-color: #5f5f5f;
377
378 --border-color: #eeeeee;
379
380 --badge-background-color: #eeeeee;
381 --badge-label-color: #111111;
382}
383
384* {
385 box-sizing: border-box;
386}
387
388body {
389 background: white;
390 font-family: 'IBM Plex Sans', sans-serif;
391 color: var(--base-color);
392 font-size: var(--base-font-size);
393 line-height: 1.7em;
394 padding: 0;
395 margin: 0;
396 padding-bottom: 100px;
397}
398
399hr {
400 border: 0;
401 border-top: 5px solid #f7f7f7;
402}
403
404/* width of the page */
405
406.wrapper {
407 max-width: var(--base-document-width);
408 margin: 0 auto;
409}
410
411/* links */
412
413a {
414 color: var(--link-color);
415 /* font-weight: 600; */
416}
417
418a:hover {
419 color: var(--link-color-hover);
420}
421
422
423/* headings */
424
425h1 { font-size: 220%; line-height: 1.2em; }
426h2 { font-size: 180%; line-height: 1.2em; }
427h3 { font-size: 160%; line-height: 1.2em; }
428h4 { font-size: 140%; line-height: 1.2em; }
429h5 { font-size: 120%; line-height: 1.2em; }
430h6 { font-size: 100%; line-height: 1.2em; }
431
432h1[itemtype="headline"] {
433 padding-bottom: 0;
434 margin-bottom: 20px;
435 font-size: 260%;
436 line-height: 1.2em;
437}
438
439/* tables */
440
441table {
442 width: 100%;
443}
444
445table, th, td {
446 border: 1px solid black;
447 text-align: left;
448}
449
450th, td {
451 padding: 5px 10px;
452}
453
454
455/* quotes */
456
457blockquote {
458 position: relative;
459 margin-block-start: 30px;
460 margin-block-end: 30px;
461 margin-right: 0;
462}
463
464blockquote:before {
465 content: ' ';
466 background-image: url('/assets/general/alert.svg');
467 background-size: 30px 30px;
468 height: 30px;
469 width: 30px;
470 position: absolute;
471 left: -40px;
472 top: 6px;
473}
474
475blockquote p {
476 padding-left: 10px;
477}
478
479
480/* header navigation */
481
482.navigation {
483 /*border-bottom: 1px dotted var(--border-color);*/
484 margin-block-start: 30px;
485 margin-block-end: 50px;
486}
487
488.navigation header {
489 display: flex;
490 align-items: center;
491}
492
493.navigation header a {
494 text-decoration: none;
495}
496
497.navigation header a:hover {
498 text-decoration: underline;
499}
500
501.navigation header .home {
502 font-size: 130%;
503 font-weight: 900;
504}
505
506.navigation header .home a:hover {
507 text-decoration: none;
508}
509
510.navigation header nav {
511 flex-grow: 1;
512 text-align: right;
513}
514
515.navigation header nav a {
516 padding: 0 10px;
517 font-size: 90%;
518 font-weight: 500;
519}
520
521/* index post list */
522
523.post-list {
524 list-style-type: none;
525 padding: 0;
526 margin: 0;
527}
528
529.post-list li {
530 margin: 0 0 20px 0;
531}
532
533.post-list li time {
534 display: block;
535 font-size: 70%;
536 font-weight: 500;
537}
538
539.post-list li a {
540 display: inline-block;
541 text-decoration: none;
542}
543
544.post-list li a:hover {
545 text-decoration: underline;
546}
547
548.post-list li a h2 {
549 font-weight: 500;
550 font-size: 100%;
551 margin: 0;
552}
553
554
555/* project list */
556
557.project-list {
558 margin-top: 60px;
559}
560
561.project-list a {
562 font-weight: 400;
563 text-decoration: none;
564}
565
566.project-list li {
567 list-style-type: disclosure-closed;
568 padding-left: 10px;
569}
570
571
572/* webring */
573
574.webring a {
575 font-weight: 500;
576}
577
578
579/* tag badges */
580
581.tags {
582 margin-top: 5px;
583}
584
585.tags a {
586 font-size: 80%;
587 padding: 2px 10px;
588 border-radius: 20px;
589
590 background: var(--badge-background-color);
591 color: var(--badge-label-color) !important;
592}
593
594.tags a:hover {
595 filter: brightness(90%);
596}
597
598
599/* helpers */
600
601.top-margin {
602 margin-top: 60px;
603}
604
605.top-margin-huge {
606 margin-top: 100px;
607}
608
609code {
610 font-family: 'IBM Plex Mono', monospace;
611 background: rgb(255, 241, 177);
612 border-radius: 5px;
613 padding: 2px 8px;
614 font-size: 14px;
615 font-weight: 500;
616}
617
618pre > code {
619 background: unset;
620 padding: unset;
621
622 padding: 15px 20px !important;
623 border-radius: 5px !important;
624 font-weight: 400;
625}
626
627pre {
628 font-size: 14px;
629 line-height: 1.5em;
630
631 margin-block-start: 40px;
632 margin-block-end: 40px;
633}
634
635img, video {
636 max-width: 100%;
637 margin: 30px auto;
638 display: block;
639 border-radius: 5px;
640}
641
642time {
643 color: var(--label-color);
644 font-size: 90%;
645}
646
647/* article */
648
649article a {
650 overflow-wrap: break-word;
651 word-wrap: break-word;
652 -webkit-hyphens: auto;
653 -ms-hyphens: auto;
654 -moz-hyphens: auto;
655 hyphens: auto;
656}
657
658article img {
659 max-width: 120%;
660 width: 120%;
661 position: relative;
662 left: -10%;
663 margin: 70px auto;
664}
665
666article strong {
667 font-weight: 600;
668}
669
670/* audio */
671
672audio {
673 width: 100%;
674 outline: none;
675}
676
677
678/* footer */
679
680.footer {
681 margin-top: 70px;
682 padding-top: 20px;
683 padding-bottom: 50px;
684 font-size: 90%;
685 color: #888;
686}
687
688.footer a {
689 color: #777;
690} 330}
691 331
692 332
@@ -696,7 +336,6 @@ audio {
696 main { padding: 0 20px; } 336 main { padding: 0 20px; }
697 footer { padding: 0 20px; } 337 footer { padding: 0 20px; }
698 h1[itemtype="headline"] { font-size: 220%; } 338 h1[itemtype="headline"] { font-size: 220%; }
699 .navigation { margin-block-start: 30px; }
700 .navigation header { padding: 0 20px; } 339 .navigation header { padding: 0 20px; }
701 340
702 article img { 341 article img {
@@ -712,7 +351,6 @@ audio {
712 .navigation header nav { text-align: center; } 351 .navigation header nav { text-align: center; }
713} 352}
714 353
715
716/* light/dark mode */ 354/* light/dark mode */
717 355
718@media (prefers-color-scheme: light) { } 356@media (prefers-color-scheme: light) { }