Skip to content

Commit 1118ed9

Browse files
authored
Merge pull request #8 from ColourlessSpearmint/figcaption
Add figcaptions to most images
2 parents beddc3a + 4dcf16c commit 1118ed9

20 files changed

Lines changed: 105 additions & 101 deletions

assets/common.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,17 @@ a {
355355

356356
figure {
357357
display: flex;
358+
flex-direction: column;
359+
align-items: center;
358360
justify-content: center;
359361
margin: 0;
360362
text-align: center;
361363
font-style: italic;
362364
color: var(--color-text-secondary);
365+
366+
figcaption {
367+
width: fit-content;
368+
}
363369
}
364370

365371
img,

content/blog/anagram.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ An [Anagram](https://en.wikipedia.org/wiki/Anagram) is a word created by rearran
1212

1313
For example, my full name, 'Ethan Oliver Marks', is an anagram for 'Martin Kolver Shea'.
1414

15-
![GIF Ethan Oliver Marks is an anagram for Martin Kolver Shea](~/example_anagram.webm)
15+
![GIF Ethan Oliver Marks Martin Kolver Shea](~/example_anagram.webm "Ethan Oliver Marks ⇄ Martin Kolver Shea")
1616

1717
I generated the above animation using [Anagram Animator](https://colab.research.google.com/drive/1MqpogsUUTuzctVKgg8n8btD3WUuENPAK), a Colab Notebook I wrote in a few hours.
1818

19-
![A screenshot of Anagram Animator in Colab](~/anagramcolab.webp)
19+
![A screenshot of Anagram Animator in Colab](~/anagramcolab.webp "Anagram Animator in Colab")
2020

2121
## Usage
2222

content/blog/asciiglobe.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Well, allow me to introduce **ASCII-Globe**, a program I made that dynamically r
1515
## Demo
1616

1717
<figure>
18-
<video src="/media/ascii_globe_demo.webm" class="noborder bigimage" alt="A spinning globe rendered with text" autoplay loop playsinline>
18+
<video src="/media/ascii_globe_demo.webm" class="noborder bigimage" alt="A spinning globe rendered with text" autoplay loop playsinline></video>
19+
<figcaption>An example output from ASCII GLOBE</figcaption>
1920
</figure>
2021

2122
Here's a flattened text version. Feel free to copy and paste it.
@@ -26,20 +27,20 @@ Here's a flattened text version. Feel free to copy and paste it.
2627
............................................... ......... .....:::.... ................................ . ....... ..... ...............................................
2728
..................................... . .:.;..g....YVW.L.gwwiooi.....W.YVV.WWWX.g.''.,. .. ......... .. ................. .... ....:. ..........................................
2829
................................ ... ...:.;o.W.HX.W..@V.Oo....V@@@@@@@@@@@@@@VVVVVVVVWg,:..............'.,ooiii'............;......... ..............o..i;.. .......... ....................
29-
.. .. ..................... ....',i,.:.io,wg'.goHWY..o. ;o.YVVV@@VVVVVVVVVVVVVVVVVV.Y.' ...............,oH.;i;................. .....:......... . .:;i...;;;.................... .. ........
30+
.. .. ..................... ....',i,.:.io,wg'.goHWY..o. ;o.YVVV@@VVVVVVVVVVVVVVVVVV.Y.' ...............,oH.;i;................. .....:......... . .:;i...;;;.................... .. ........
3031
.............................. .,ii.g..io';..O...LLo..g.. ...;.;;;,OVVVVVVVVVVVVVVVVVV.WL'...... ......... .. ................ ,.g.,... ...'..OHW.....V.YWo ...;gg.w;;,;.......... .....
3132
.......... .. :WV.XH.oi,w...oW.g..,.L.HLgO,. ..V@VVVVVVVVVVVVW.Lo;........................ ...............,.L'. .g,.;''.LX.VVVVVV.WY.Y...X..O.iLL., ....,..,,,. .. ....;..
3233
;.........,.gOoiw,.;;.. ..:;.:,i:;X..@@VVLw;,.WH:;L.WVWW.VW..,. .....og.VVVVVVVVVV@VW.Li ................... .;,.ww.. . .. .g. ... .Y@L.WWVY.VV....YYW...VVV....VVVVVVWoH.HHWVV.....gOOi......;;:..
3334
... . ..HV@@@@@VVV.YW.LLHXWWY..W.L.L.LLLHX.'i.oWVL.'...;,LL.@..;.... ;.LVVVVVV@@@WLOow. .............. .w...W..X.LLL.. .'...i...OWWXOHV..W.VVV.WWWW...YWW.WWWW.HH.HX.W.VVWWWV.YYWWWY.V.V..WWW.LV.YW.
3435
XWWXO:.wOOHYWW....L.L.W..W.W.H..g.XV.WWWYV.YVV..VV@VH.o. ;,o.X.L.L: . .H.VVVVV.HL.. ..;,.w............ w.XO.';.ggw,,.og'.L.X..WWWWWWWWWWLX.YYYWW.HWWWWWW..WWWWW...X..XWV.W.WW.V.Y..YWWW.WWY.VV.V...VV
3536
:.;:.;iwgHHLL.XL.LX..XH.WY.WX.LX....WW..V.WW..VVL.i....w'..W.Ho..... :H@@VVY. .....;iOg,. ........ .;oHO.w....OOO..,.g.LOOLLO.LLg.OLO.WYYWYW..LLLXX....L.XXH...LOOL...WWWY....WWY.YWWW.VVV.W...VVV.o
3637
. ...LW...XWWXW.HWW..LO.HWWHLX..Lig..WWYWWY...; .;..oL.i,',; ..... .O.VV. ........ . .. . .o..HLg,...Lo...O.OHLOLLOLLLOLL.L.X..WWWW.W.H.OOOLLLLLLL...X.LO.L.XHX..XXHW...VVVVV.V.og.gWVY..g..;
37-
. .....:..L..WL,w..;',.L....O.Og.OOLLLLL..X.W.... .. . X@VVW;..' ..... .;' ................... . .H.,,,.. .,iwgigLOOLO.g..O.OLO.L.HW.XHXXXH.HHX.OOO.OLLLLLLLLL.XLOLLLLL.L..Y.Lgogo.Lg. :.gw..;.
38+
. .....:..L..WL,w..;',.L....O.Og.OOLLLLL..X.W.... .. . X@VVW;..' ..... .;' ................... . .H.,,,.. .,iwgigLOOLO.g..O.OLO.L.HW.XHXXXH.HHX.OOO.OLLLLLLLLL.XLOLLLLL.L..Y.Lgogo.Lg. :.gw..;.
3839
... . .;i,'. ;,.H....ig.O..gL..L..L..Wiw; ...WWWY..V., ..... ............... . ... ....,' .wXLggoLLO.LO.OHLLX...L..HHHH....L.LO.LOLOOgog..O.HWWWWW..WW....XO,. ;LW., ....
39-
. .....;;;. ......... .,LOi.g..g.O....g...OL..WWLgi ,g.H...H..Xi; ........................ ....;. .;...:.,..O..OL.LX.L..HX.W..L.WWWWYYYYYWW.X.XO.L.L.oO..go.HLOOXLOOLO.HX... ...... .V.o.........
40+
. .....;;;. ......... .,LOi.g..g.O....g...OL..WWLgi ,g.H...H..Xi; ........................ ....;. .;...:.,..O..OL.LX.L..HX.W..L.WWWWYYYYYWW.X.XO.L.L.oO..go.HLOOXLOOLO.HX... ...... .V.o.........
4041
.......... .............. ;ggogLLgL..W.XXLg..Og..O.YW.,W..HX..LLOLL. ..................... ....;;: ...;;..,iw...,,ggOWYW.WW..Y..WX...VV...Y.YWWW..OOO.gOXL..iwoow..o.i.i..O..go.i. .... ,.. ... .. ..
4142
...... ................... .igiwgOgO.WWYWY.......g...LOL...O..io.,w. ..................... ...:.....;;''...',w....HWWH...VV...VVVVVV...YYYWWW.LXXOL.LH..iOi;...W.O'.OLW,.igo,.. ....... ...........
42-
. ......................... .;i'',ww...W.LH..'i.;;.iog..ggg.i.. igw. .. ................... ...;;;...,.;;;;.',,,w.,i....LWYHXVVVV..VV..V.WWW.WWY..g..YLw.L..O..V.V.,.Vg.'.i,;..; . ... ...........
43+
. ......................... .;i'',ww...W.LH..'i.;;.iog..ggg.i.. igw. .. ................... ...;;;...,.;;;;.',,,w.,i....LWYHXVVVV..VV..V.WWW.WWY..g..YLw.L..O..V.V.,.Vg.'.i,;..; . ... ...........
4344
....................................',.w.....w.';.;;:..,i,.ig.;,.... ..... .................... ....,.w,;.;..;.;........;...';oH......g..HOLHL....V..LL..g.oo.XW.WW.i.LWg;.g.:. :. .... ..............
4445
.................................w.,igL...w,,,,,,,.;.i,i.;;;;:. .. ............................;;:'......;;;;;;. . ....; ..oOi....,,w.ioO...XO..Ogo..goo...g.gLo..,g,..,.. ..i....................
4546
.............................. ...gLLO....w,,,w,,.w.,.w.;';:.. ..............................:;.;.;. .......;;.;...:..;;.Ow,. ;.i.i.ow.'.gH.O.L....g........ggo.ww,.,,..;;. .. .:.. ..................
@@ -79,10 +80,10 @@ XWWXO:.wOOHYWW....L.L.W..W.W.H..g.XV.WWWYV.YVV..VV@VH.o. ;,o.X.L.L: . .H.VVVVV.H
7980
........................................................... :ww,..';... ........................................... .................................................:... ..;w...,.. .......... . .
8081
............................................................;ww,...'; ........................................ ................................................. ...... .,,'.:.......... ......
8182
.......................................................... ..,ww,,;. ............................................................................................................. .... .......... ...
82-
.......................................................... ..,,w.. ................................................................................................................ ... ......... :...
83-
....................................................... ;,w.. ...................................................................................................................................
83+
.......................................................... ..,,w.. ................................................................................................................ ... ......... :...
84+
....................................................... ;,w.. ...................................................................................................................................
8485
.......................................................... ;,,w; .............................................................. ......... .......................................... ......... .;: ...
85-
.......................................................... ii,... ..................................................................... .. .................................................... ....
86+
.......................................................... ii,... ..................................................................... .. .................................................... ....
8687
.......................................................... w,,; .. ......... ......................................................... .. ...........................................................
8788
.......................................................... .;;;. ........................................................................ ....................................................... .....
8889
.............................................................;;.. . ............. .......................................................................................................................
@@ -94,7 +95,7 @@ XWWXO:.wOOHYWW....L.L.W..W.W.H..g.XV.WWWYV.YVV..VV@VH.o. ;,o.X.L.L: . .H.VVVVV.H
9495
........................................... .............'...V..: ....................... ... ....;... ..:'.i,:'gL.WYVVVVV.WW.HXg......VVVVVVVV.VVVVVVVVVVVVVVVVVVVVVVVVVVVYV...i':... .....
9596
....................... . ..... ;g..W..Y.' .................. .,woOLL.WW.XX.W.W..WW..X..VVVV..VVVVV......VVV.YVVVYVVV....................................V.VVVVVW...O,. ....
9697
............ . .. ....i,.;:.......;OWWYXLLL.o,;,oL..W....Y.; ..... ..... :.wL.WVVVVVVVV.VVVVV...VVVV..VV..Y.V..............YWW...Y................................................WW.o:.....
97-
.. .wioOX..H.X....VV...YYW.W.H.....VVVVV@VVVVVVV......Hi,;.. : ..;O.YVVVV...........................V...................V.................................................YW.. .
98+
.. .wioOX..H.X....VV...YYW.W.H.....VVVVV@VVVVVVV......Hi,;.. : ..;O.YVVVV...........................V...................V.................................................YW.. .
9899
.,;;;::....,.WXWVVVVVVVVVVVVV.........VVVV..........WW............V@VVW..Oow'.w,....W.V.V................................................................V....................................WOLi...goow.
99100
@VVV......VVVVVV...................................V.WY...............VVVV@@VVVVVVVV........................................................................................................WHH.VV@VV@@@@@
100101
.VVVVVVVVV...VVV.VV.......V.VVV.....................VV........VV.V...........Y..........................................................................................V...V...............W.XH.YWY......

content/blog/backgroundclip.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Earlier today, I opened my [personal website](/blog/personalwebsite) in Google C
99

1010
As a long-time Firefox user, I'd never even thought to test my site in another browser. The only reason I was using Chrome was because I was trying to work around *another* compatibility bug. It all started with my laptop. My laptop is fairly powerful, which means that it's heavy and has an abysmal battery life. Because of this, I use a [laptop dock](https://www.youtube.com/watch?v=Pc31L3zJiaU) to effectively turn it into a desktop with a built-in keyboard. I'd like to be able to code from places other than my desk, so I've been considering buying a cheap portable laptop with just barely enough processing power to run a browser, and using a [remote tunnel](https://code.visualstudio.com/docs/remote/tunnels) to puppeteer my main laptop that has all of my files on it. The best way to do this seems to be [vscode.dev](https://code.visualstudio.com/blogs/2021/10/20/vscode-dev), so I decided to try it out and see if it was viable. I booted up the webpage in Firefox, aaaaand it doesn't work.
1111

12-
![when vscode.dev runs in Firefox, all of the icons are replaced with empty boxes](~/vscode-dot-dev-icon-font.webp)
12+
![when vscode.dev runs in Firefox, all of the icons are replaced with empty boxes](~/vscode-dot-dev-icon-font.webp "Firefox is bad at icon fonts")
1313

1414
[Firefox has trouble with icon fonts](https://support.mozilla.org/en-US/questions/1016919), so all of the interface buttons were replaced with empty boxes. After an hour of trying to fix it, I just gave up and used another browser. Much as I dislike it, Google Chrome is less buggy than Firefox and has more support for new browser technologies (like [CSS carousels](https://chrome.dev/carousel/)), so I grudgingly conceded that it's fine for just running a web app. I installed Chrome, navigated to vscode.dev, and it worked perfectly. I'm still very impressed that Microsoft managed to make a browser port of an entire code editor.
1515

1616
I logged into my GitHub account, did some configuration, and started coding. I started up my personal website's [Hugo](/blog/hugoswitch) [server](https://gohugo.io/commands/hugo_server/) and opened it in a new Chrome tab. At that point, I discovered that portions of my website were invisible.
1717

18-
![The mint gradient is visible on Firefox but not on Chrome](~/background-clip-firefox-chrome.webm)
18+
![The mint gradient is visible on Firefox but not on Chrome](~/background-clip-firefox-chrome.webm "Firefox (left) vs Chrome (right)")
1919

2020
I opened the page on Firefox, and it looked fine, so I deduced that the problem was browser-specific. I started troubleshooting. I disabled likely-looking CSS styles at random until something changed, and eventually realized that I could make the text visible by unchecking the `webkit-text-fill-color: transparent;` style. Although this made the text visible, the resulting text was pure white rather than my mint gradient. I eventually realized that the problem was in how the two browsers handled the `background-clip: text;` style.
2121

@@ -30,7 +30,7 @@ In the end, I settled on just using a solid mint colour by default, and adding a
3030
```css
3131
h1 {
3232
color: var(--color-h1);
33-
33+
3434
@-moz-document url-prefix() {
3535
/* Add a cool gradient on Firefox; other browsers don't support it :( */
3636
background: var(--color-gradient-mint);
@@ -43,14 +43,14 @@ h1 {
4343

4444
The solid colour isn't too noticeable, but it definitely doesn't look quite as nice on Chrome or Edge as it does on Firefox.
4545

46-
![headings have the mint gradient on Firefox, but are solid teal on Chrome and Edge](~/mint-headings-firefox-chrome-edge.webp)
46+
![headings have the mint gradient on Firefox, but are solid teal on Chrome and Edge](~/mint-headings-firefox-chrome-edge.webp "Firefox (left) vs Chrome (top right) vs Edge (bottom right)")
4747

48-
Then I checked to see if anyone else had noticed this. I found a [Stack Overflow post](https://stackoverflow.com/questions/55198363/webkit-background-clip-text-working-on-mozilla-but-not-on-chrome). The author of the post, [Paul Stephen Davis](https://stackoverflow.com/users/5925418/paul-stephen-davis), noticed the background-clip inconsistency while working on his photography website and asked for help. A user named [Jason](https://stackoverflow.com/users/4243228/jason) suggested using `display: inline;` (which doesn't fix the bug) and then gave up.
48+
Then I checked to see if anyone else had noticed this. I found a [Stack Overflow post](https://stackoverflow.com/questions/55198363/webkit-background-clip-text-working-on-mozilla-but-not-on-chrome). The author of the post, [Paul Stephen Davis](https://stackoverflow.com/users/5925418/paul-stephen-davis), noticed the background-clip inconsistency while working on his photography website and asked for help. A user named [Jason](https://stackoverflow.com/users/4243228/jason) suggested using `display: inline;` (which doesn't fix the bug) and then gave up.
4949

5050
This was over 6 years ago. `background-clip` was [first introduced by WebKit in 2008](https://www.css3.info/webkit-introduces-background-cliptext/), and has been supported by Chrome since 2010. It has been a standard CSS property for a decade and a half, and the Stack Overflow post proves that this bug has been known since at least 2019.
5151

5252
I think that Firefox's implementation of `background-clip` is much better, both in principle and in what it allows you to do. Chrome apparently doesn't agree, and has spent the last 15 years being wrong.
5353

5454
Please fix it, Google.
5555

56-
~Ethan
56+
~Ethan

content/blog/collectivenoun.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A [collective noun](https://en.wikipedia.org/wiki/Collective_noun) is a word tha
99

1010
For reasons unbeknownst to me, people really love coming up with ridiculous and silly collective nouns for animals. For example, a 'business' is the collective noun for ferrets.
1111

12-
![The collective noun for ferrets is a business](~/business_of_ferrets.webp)
12+
![Five anthropomorphic ferrets wearing suits sitting around an office table in a meeting, generated with Imagen 3](~/business_of_ferrets.webp "The collective noun for ferrets is a business")
1313

1414
Below is my collection.
1515

0 commit comments

Comments
 (0)