From f6d945cd589921886508f7e4338bd4549dab28d3 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 26 Oct 2025 16:37:12 +0800 Subject: Fix css for firefox android and other mobile. --- _includes/header.html | 3 ++- _includes/nav.html | 2 +- _site/404.html | 5 +++-- _site/about/index.html | 5 +++-- _site/archive/arduino-due/index.html | 5 +++-- _site/archive/arduino-uno/index.html | 5 +++-- _site/archive/awesome-books/index.html | 5 +++-- _site/archive/index.html | 5 +++-- _site/archive/mosfet-switches/index.html | 5 +++-- _site/archive/my-first-pcb/index.html | 5 +++-- _site/archive/neo4j-a-star-search/index.html | 5 +++-- _site/assets/css/main.css | 18 +++++++++++++++++- _site/assets/css/skeleton.css | 14 -------------- _site/feed.xml | 4 ++-- _site/index.html | 5 +++-- _site/posts.xml | 2 +- _site/projects/bumblebee/index.html | 5 +++-- _site/projects/desktop-unix/index.html | 5 +++-- _site/projects/e-reader/index.html | 5 +++-- _site/projects/etlas/index.html | 5 +++-- _site/projects/fpm-door-lock/index.html | 5 +++-- _site/projects/index.html | 5 +++-- _site/projects/matrix-digital-rain/index.html | 5 +++-- assets/css/main.css | 18 +++++++++++++++++- assets/css/skeleton.css | 14 -------------- 25 files changed, 91 insertions(+), 69 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index d83b3ea..610976f 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,5 +1,6 @@ - + + {{ page.title }} diff --git a/_includes/nav.html b/_includes/nav.html index 471012c..985d635 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -8,7 +8,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/404.html b/_site/404.html index e402e1d..d8141f6 100644 --- a/_site/404.html +++ b/_site/404.html @@ -2,7 +2,8 @@ - + + @@ -22,7 +23,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/about/index.html b/_site/about/index.html index ec6cd3c..4ac3a14 100644 --- a/_site/about/index.html +++ b/_site/about/index.html @@ -2,7 +2,8 @@ - + + About @@ -22,7 +23,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/arduino-due/index.html b/_site/archive/arduino-due/index.html index 0588738..f8a26bf 100644 --- a/_site/archive/arduino-due/index.html +++ b/_site/archive/arduino-due/index.html @@ -5,7 +5,8 @@ Bare-metal ARM Cortex M3 chips - + + Bare-metal ARM Cortex M3 chips @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/arduino-uno/index.html b/_site/archive/arduino-uno/index.html index d71c5e8..348b2a8 100644 --- a/_site/archive/arduino-uno/index.html +++ b/_site/archive/arduino-uno/index.html @@ -5,7 +5,8 @@ Notes on programming ATmega328P chips - + + Notes on programming ATmega328P chips @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/awesome-books/index.html b/_site/archive/awesome-books/index.html index 3a3df2b..a0d44ff 100644 --- a/_site/archive/awesome-books/index.html +++ b/_site/archive/awesome-books/index.html @@ -5,7 +5,8 @@ Awesome books - + + Awesome books @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/index.html b/_site/archive/index.html index ca2f1a6..bfecbe5 100644 --- a/_site/archive/index.html +++ b/_site/archive/index.html @@ -2,7 +2,8 @@ - + + Archive @@ -22,7 +23,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/mosfet-switches/index.html b/_site/archive/mosfet-switches/index.html index e51a8ed..861b9e7 100644 --- a/_site/archive/mosfet-switches/index.html +++ b/_site/archive/mosfet-switches/index.html @@ -5,7 +5,8 @@ MOSFETs - + + MOSFETs @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/my-first-pcb/index.html b/_site/archive/my-first-pcb/index.html index aa22594..5dc9114 100644 --- a/_site/archive/my-first-pcb/index.html +++ b/_site/archive/my-first-pcb/index.html @@ -5,7 +5,8 @@ My first PCB - + + My first PCB @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/archive/neo4j-a-star-search/index.html b/_site/archive/neo4j-a-star-search/index.html index a9ebe7a..f863b61 100644 --- a/_site/archive/neo4j-a-star-search/index.html +++ b/_site/archive/neo4j-a-star-search/index.html @@ -5,7 +5,8 @@ Neo4J A* search - + + Neo4J A* search @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css index 19a64a2..8ef0b4d 100644 --- a/_site/assets/css/main.css +++ b/_site/assets/css/main.css @@ -101,10 +101,26 @@ td { padding-top: 20px; } -.title{ +.title { font-size: 3.5em; } +@media only screen and (max-device-width: 480px) { + /* firefox */ + @supports (-moz-appearance: none) { + .title { + font-size: 1.8em !important; + } + } + + /* other */ + @supports (not (-moz-appearance: none)) { + .title { + font-size: 2.0em !important; + } + } +} + .line{ max-width: 100%; display: block; diff --git a/_site/assets/css/skeleton.css b/_site/assets/css/skeleton.css index 4153536..78a8573 100644 --- a/_site/assets/css/skeleton.css +++ b/_site/assets/css/skeleton.css @@ -148,20 +148,6 @@ h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; } h6 { font-size: 1.5rem; } } -@media (max-width: 768px) { - body { - font-size: 3.0em; - line-height: 1.2; - } - - h1 { font-size: 6.0rem; } - h2 { font-size: 5.0rem; } - h3 { font-size: 4.0rem; } - h4 { font-size: 4.0rem; } - h5 { font-size: 2.4rem; } - h6 { font-size: 1.5rem; } -} - p { margin-top: 0; } diff --git a/_site/feed.xml b/_site/feed.xml index 39a51b7..5ec6d51 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -1,2 +1,2 @@ -Jekyll2025-10-26T16:04:53+08:00http://localhost:4000/feed.xmlASCIIMX | ArchiveSimplicity is a great virtue, <br> but it requires hard work to achieve it and education <br> to appreciate it - Edsger W. Dijkstra -Wickramage Don Sadeep MadurangeNeo4J A* search2025-09-14T00:00:00+08:002025-09-14T00:00:00+08:00http://localhost:4000/archive/neo4j-a-star-searchWickramage Don Sadeep MadurangeMy first PCB2025-07-14T00:00:00+08:002025-07-14T00:00:00+08:00http://localhost:4000/archive/my-first-pcbW. D. Sadeep MadurangeMOSFETs2025-06-22T00:00:00+08:002025-06-22T00:00:00+08:00http://localhost:4000/archive/mosfet-switchesW. D. Sadeep MadurangeAwesome books2025-04-20T00:00:00+08:002025-04-20T00:00:00+08:00http://localhost:4000/archive/awesome-booksW. D. Sadeep MadurangeNotes on programming ATmega328P chips2025-04-10T00:00:00+08:002025-04-10T00:00:00+08:00http://localhost:4000/archive/arduino-unoW. D. Sadeep MadurangeBare-metal ARM Cortex M3 chips2024-10-05T00:00:00+08:002024-10-05T00:00:00+08:00http://localhost:4000/archive/arduino-dueW. D. Sadeep Madurange \ No newline at end of file +Jekyll2025-10-26T16:49:34+08:00/feed.xmlASCIIMX | ArchiveSimplicity is a great virtue, <br> but it requires hard work to achieve it and education <br> to appreciate it - Edsger W. Dijkstra +Wickramage Don Sadeep MadurangeNeo4J A* search2025-09-14T00:00:00+08:002025-09-14T00:00:00+08:00/archive/neo4j-a-star-searchWickramage Don Sadeep MadurangeMy first PCB2025-07-14T00:00:00+08:002025-07-14T00:00:00+08:00/archive/my-first-pcbW. D. Sadeep MadurangeMOSFETs2025-06-22T00:00:00+08:002025-06-22T00:00:00+08:00/archive/mosfet-switchesW. D. Sadeep MadurangeAwesome books2025-04-20T00:00:00+08:002025-04-20T00:00:00+08:00/archive/awesome-booksW. D. Sadeep MadurangeNotes on programming ATmega328P chips2025-04-10T00:00:00+08:002025-04-10T00:00:00+08:00/archive/arduino-unoW. D. Sadeep MadurangeBare-metal ARM Cortex M3 chips2024-10-05T00:00:00+08:002024-10-05T00:00:00+08:00/archive/arduino-dueW. D. Sadeep Madurange \ No newline at end of file diff --git a/_site/index.html b/_site/index.html index 2555d41..209dcc0 100644 --- a/_site/index.html +++ b/_site/index.html @@ -2,7 +2,8 @@ - + + ASCIIMX @@ -22,7 +23,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/posts.xml b/_site/posts.xml index 1f2a7d7..19a1279 100644 --- a/_site/posts.xml +++ b/_site/posts.xml @@ -1,2 +1,2 @@ -Jekyll2025-10-26T16:04:53+08:00http://localhost:4000/posts.xmlASCIIMXSimplicity is a great virtue, <br> but it requires hard work to achieve it and education <br> to appreciate it - Edsger W. Dijkstra +Jekyll2025-10-26T16:49:34+08:00/posts.xmlASCIIMXSimplicity is a great virtue, <br> but it requires hard work to achieve it and education <br> to appreciate it - Edsger W. Dijkstra Wickramage Don Sadeep Madurange \ No newline at end of file diff --git a/_site/projects/bumblebee/index.html b/_site/projects/bumblebee/index.html index dc0a360..b229011 100644 --- a/_site/projects/bumblebee/index.html +++ b/_site/projects/bumblebee/index.html @@ -5,7 +5,8 @@ Bumblebee: turn browser sessions to code - + + Bumblebee: turn browser sessions to code @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/desktop-unix/index.html b/_site/projects/desktop-unix/index.html index 3b522e2..b65680a 100644 --- a/_site/projects/desktop-unix/index.html +++ b/_site/projects/desktop-unix/index.html @@ -5,7 +5,8 @@ Unix for the desktop - + + Unix for the desktop @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/e-reader/index.html b/_site/projects/e-reader/index.html index 257ff98..e261650 100644 --- a/_site/projects/e-reader/index.html +++ b/_site/projects/e-reader/index.html @@ -5,7 +5,8 @@ Prototype e-reader - + + Prototype e-reader @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/etlas/index.html b/_site/projects/etlas/index.html index 1823528..d946b53 100644 --- a/_site/projects/etlas/index.html +++ b/_site/projects/etlas/index.html @@ -5,7 +5,8 @@ Etlas: e-paper display for news, stocks, and the weather - + + Etlas: e-paper display for news, stocks, and the weather @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/fpm-door-lock/index.html b/_site/projects/fpm-door-lock/index.html index 8396b7e..b3ede76 100644 --- a/_site/projects/fpm-door-lock/index.html +++ b/_site/projects/fpm-door-lock/index.html @@ -5,7 +5,8 @@ Fingerprint door lock - + + Fingerprint door lock @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/index.html b/_site/projects/index.html index ca0e59f..8b6f9b8 100644 --- a/_site/projects/index.html +++ b/_site/projects/index.html @@ -2,7 +2,8 @@ - + + Projects @@ -22,7 +23,7 @@ arc
  • - pjt + prj
  • abt diff --git a/_site/projects/matrix-digital-rain/index.html b/_site/projects/matrix-digital-rain/index.html index b559edd..5f151ea 100644 --- a/_site/projects/matrix-digital-rain/index.html +++ b/_site/projects/matrix-digital-rain/index.html @@ -5,7 +5,8 @@ The Matrix digital rain - + + The Matrix digital rain @@ -26,7 +27,7 @@ arc
  • - pjt + prj
  • abt diff --git a/assets/css/main.css b/assets/css/main.css index 19a64a2..8ef0b4d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -101,10 +101,26 @@ td { padding-top: 20px; } -.title{ +.title { font-size: 3.5em; } +@media only screen and (max-device-width: 480px) { + /* firefox */ + @supports (-moz-appearance: none) { + .title { + font-size: 1.8em !important; + } + } + + /* other */ + @supports (not (-moz-appearance: none)) { + .title { + font-size: 2.0em !important; + } + } +} + .line{ max-width: 100%; display: block; diff --git a/assets/css/skeleton.css b/assets/css/skeleton.css index 4153536..78a8573 100644 --- a/assets/css/skeleton.css +++ b/assets/css/skeleton.css @@ -148,20 +148,6 @@ h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; } h6 { font-size: 1.5rem; } } -@media (max-width: 768px) { - body { - font-size: 3.0em; - line-height: 1.2; - } - - h1 { font-size: 6.0rem; } - h2 { font-size: 5.0rem; } - h3 { font-size: 4.0rem; } - h4 { font-size: 4.0rem; } - h5 { font-size: 2.4rem; } - h6 { font-size: 1.5rem; } -} - p { margin-top: 0; } -- cgit v1.2.3