From a017acb0689378d2cb844f8e0c5348e764e3363d Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Sun, 18 Aug 2024 09:31:40 -0400 Subject: okay, this lays out in firefox+chrome+vimb and looks normal in lynx+links2+w3m --- bg.xcf | Bin 29046 -> 0 bytes border.png | Bin 1105 -> 0 bytes index.php | 32 ++++++++++++++++++++++--- media/arrow-down.gif | Bin 0 -> 89 bytes media/arrow-right.gif | Bin 0 -> 87 bytes media/border-full.gif | Bin 0 -> 102 bytes media/border-hr.gif | Bin 0 -> 54 bytes media/border-summary.gif | Bin 0 -> 70 bytes style.css | 61 +++++++++++++++++++++++++++++++++++++++++++---- style/firefox.css | 20 ++++++++++++++++ style/mobile-chrome.css | 5 ++++ times.css | 28 ++++++++++++++++++++++ times/bold-italic.ttf | Bin 0 -> 620008 bytes times/bold.ttf | Bin 0 -> 842168 bytes times/italic.ttf | Bin 0 -> 660268 bytes times/times.ttf | Bin 0 -> 834452 bytes 16 files changed, 139 insertions(+), 7 deletions(-) delete mode 100644 bg.xcf delete mode 100644 border.png create mode 100644 media/arrow-down.gif create mode 100644 media/arrow-right.gif create mode 100644 media/border-full.gif create mode 100644 media/border-hr.gif create mode 100644 media/border-summary.gif create mode 100644 style/firefox.css create mode 100644 style/mobile-chrome.css create mode 100644 times.css create mode 100644 times/bold-italic.ttf create mode 100644 times/bold.ttf create mode 100644 times/italic.ttf create mode 100644 times/times.ttf diff --git a/bg.xcf b/bg.xcf deleted file mode 100644 index 288a5c7..0000000 Binary files a/bg.xcf and /dev/null differ diff --git a/border.png b/border.png deleted file mode 100644 index 5369ddd..0000000 Binary files a/border.png and /dev/null differ diff --git a/index.php b/index.php index 38d201b..9677f01 100644 --- a/index.php +++ b/index.php @@ -11,6 +11,25 @@ define("NAMES", [ "Marcy", "Sasha" ]); + +$wb = new WhichBrowser\Parser(getallheaders()); + +function lstart(string $title) { + global $wb; + if (!$wb->isMobile()) + return "

$title

"; + else + return "

$title

"; +} + +function lend() { + global $wb; + if (!$wb->isMobile()) + return "
"; + else + return ""; +} + ?> @@ -18,14 +37,21 @@ define("NAMES", [ + isEngine("Gecko")): ?> + + + isEngine("Blink") && $wb->isMobile()): ?> + + -isType("mobile")) echo " class=mobile"; ?>> + -
-

text text text

+ +
+ diff --git a/media/arrow-down.gif b/media/arrow-down.gif new file mode 100644 index 0000000..1171d81 Binary files /dev/null and b/media/arrow-down.gif differ diff --git a/media/arrow-right.gif b/media/arrow-right.gif new file mode 100644 index 0000000..3b245d0 Binary files /dev/null and b/media/arrow-right.gif differ diff --git a/media/border-full.gif b/media/border-full.gif new file mode 100644 index 0000000..29ddc88 Binary files /dev/null and b/media/border-full.gif differ diff --git a/media/border-hr.gif b/media/border-hr.gif new file mode 100644 index 0000000..fcd2f32 Binary files /dev/null and b/media/border-hr.gif differ diff --git a/media/border-summary.gif b/media/border-summary.gif new file mode 100644 index 0000000..5ff5792 Binary files /dev/null and b/media/border-summary.gif differ diff --git a/style.css b/style.css index f53e107..49e6fff 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,16 @@ +/*@import url("/times.css");*/ + :root { - background: #122; + image-rendering: pixelated; + font-family: "Times New Roman"; } +p { + font-size: 15px; +} +h3 { + font-size: 18px; +} /* --- LOGO --- */ #logo { @@ -24,7 +33,51 @@ /* --- BORDER --- */ .border { - border: 22px solid #0000; - border-image: url(/border.png) 22; - border-image-repeat: round; + border-image-slice: 6 5 5 6 fill; + border-image-width: 6px 5px 5px 6px; + border-image-outset: 5px 5px 5px 5px; + border-image-repeat: stretch stretch; + border-image-source: url("data:image/gif;base64,R0lGODdhDAAMAHcAACH5BAgKAAAALAAAAAAMAAwAgiIgNEUoPGY5MY9WO9mgZu7DmgAAAAAAAAMrGLq89DCCQIa9VsyKr6YWIALZFj5BCQ4AUaTDxzEq18XmjQdC7/+joBCQAAA7"); + border-style: solid; + padding: 0px } + +.border > hr { + border-image-slice: 1 1 5 1; + border-image-width: 1px 1px 5px 1px; + border-image-outset: 0px 4px 0px 4px; + border-image-repeat: stretch stretch; + border-image-source: url("data:image/gif;base64,R0lGODdhAwAGAHcAACH5BAgKAAAALAAAAAADAAYAgSIgNEUoPI9WO9mgZgIHjIWZwDBRAAA7"); + border-style: solid; + border-width: 1px 1px 5px 1px; + margin: 0px; + margin-top: 3px; +} + +.border > h3:first-child { + margin: 0px; + font-weight: bold; +} +.border > summary > h3:first-child { + margin: 0px; + margin-left: 8px; + font-weight: bold; + display: inline; + border-image-slice: 1 0 1 6; + border-image-width: 1px 0px 1px 6px; + border-image-outset: 0px 0px 0px 6px; + border-image-repeat: stretch stretch; + border-image-source: url("data:image/gif;base64,R0lGODdhBgAEAKIAACIgNEUoPGY5MY9WO9mgZu7DmgAAAAAAACH5BAgKAAAALAAAAAAGAAQAAAMLCLMAsQOQxyYMIQEAOw=="); + border-left-style: solid; + box-sizing: border-box; + padding-top: 4px; + padding-bottom: 5px; +} +.border > summary { + margin-left: 5px; + height: 21px; +} +.border > summary::marker { + color: #663931; +} + diff --git a/style/firefox.css b/style/firefox.css new file mode 100644 index 0000000..f6b67aa --- /dev/null +++ b/style/firefox.css @@ -0,0 +1,20 @@ +/* sigh, spacings are all over the place between browsers. + my attempt to fix it with unicode-char markers only made + things *significantly* worse. webkit and chromium seem + to have parity the way things are now, so it's just + gecko that needs a 1px tweak. + + rip. */ + +.border > summary > h3:first-child { + padding-bottom: 4px; +} + +/* tweak to square summary marker box */ + +.border > summary { + margin-left: 7px; +} +.border > summary > h3:first-child { + margin-left: 9px; +} diff --git a/style/mobile-chrome.css b/style/mobile-chrome.css new file mode 100644 index 0000000..36c86e9 --- /dev/null +++ b/style/mobile-chrome.css @@ -0,0 +1,5 @@ +/* unfuck the pixels! */ +/* TODO: idk submit a bug ticket */ +.border > hr { + border-image-outset: 0px 2px 0px 2px; +} diff --git a/times.css b/times.css new file mode 100644 index 0000000..bd0a148 --- /dev/null +++ b/times.css @@ -0,0 +1,28 @@ +@font-face { + font-family: "Times New Roman"; + src: + local("Times New Roman"), + url("/times/times.ttf"); +} +@font-face { + font-family: "Times New Roman"; + font-weight: bold; + src: + local("Times New Roman"), + url("/times/bold.ttf"); +} +@font-face { + font-family: "Times New Roman"; + font-style: italic; + src: + local("Times New Roman"), + url("/times/italic.ttf"); +} +@font-face { + font-family: "Times New Roman"; + font-weight: bold; + font-style: italic; + src: + local("Times New Roman"), + url("/times/bold-italic.ttf"); +} diff --git a/times/bold-italic.ttf b/times/bold-italic.ttf new file mode 100644 index 0000000..47e8580 Binary files /dev/null and b/times/bold-italic.ttf differ diff --git a/times/bold.ttf b/times/bold.ttf new file mode 100644 index 0000000..578542c Binary files /dev/null and b/times/bold.ttf differ diff --git a/times/italic.ttf b/times/italic.ttf new file mode 100644 index 0000000..eff3616 Binary files /dev/null and b/times/italic.ttf differ diff --git a/times/times.ttf b/times/times.ttf new file mode 100644 index 0000000..d7969c3 Binary files /dev/null and b/times/times.ttf differ -- cgit v1.2.3-54-g00ecf