From cc7a6146e9be5b82d1c2594090ca20305f25a073 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Fri, 18 Nov 2022 22:49:45 -0500 Subject: [PATCH] Improve hidden display of links --- hackaday.css | 19 +++++++++- hackaday.html | 102 +++++++++++++++++++++++++------------------------- 2 files changed, 69 insertions(+), 52 deletions(-) diff --git a/hackaday.css b/hackaday.css index 78a688d..a31f0ec 100644 --- a/hackaday.css +++ b/hackaday.css @@ -92,6 +92,23 @@ */ } -a.blog, a.demo, a.source { /* Display source links only if demos break */ +.links a { + font-size: x-small; + text-decoration: none; +} +a.demo { + display: none; +} +a.blog, a.demo, a.source { /* Display source, blog links only if demos break */ display: none; } + +a.demo::before { + content: "demo"; +} +a.source::before { + content: "code"; +} +a.blog::before { + content: "blog"; +} diff --git a/hackaday.html b/hackaday.html index 4290fd5..1759603 100644 --- a/hackaday.html +++ b/hackaday.html @@ -13,9 +13,9 @@ Hack-A-Blog 03 - demo - source - blog + + + a blog for anyone @@ -24,9 +24,9 @@ Hack-A-Chat 04 - demo - source - blog + + + an online chatroom @@ -35,9 +35,9 @@ Hack-A-Paste 05 - demo - source - blog + + + a pastebin @@ -46,9 +46,9 @@ Hack-A-Link 05 - demo - source - blog + + + a link shortener @@ -57,9 +57,9 @@ Hack-A-Homepage 05 - demo - source - blog + + + make your own homepage @@ -68,9 +68,9 @@ Hack-An-Icecube 06 - demo - source - blog + + + icecubes fall @@ -79,9 +79,9 @@ Hack-An-Asteroid 07 - demo - source - blog + + + asteroids clone @@ -90,9 +90,9 @@ Hack-A-Dictionary 08 - demo - source - blog + + + look up words @@ -101,9 +101,9 @@ Hack-A-Mandelbrot 09 - demo - source - blog + + + explore fractals @@ -112,9 +112,9 @@ Hack-A-Machine 10 - demo - source - blog + + + goofy machine with assembly @@ -123,9 +123,9 @@ Hack-A-Tile 11 - demo - source - blog + + + arrange matching tiles @@ -142,9 +142,9 @@ Hack-A-Line 13 - demo - source - blog + + + play 5-in-a-row with a friend @@ -153,9 +153,9 @@ Hack-A-Stats 14 - demo - source - blog + + + see how hack-a-day is doing @@ -164,9 +164,9 @@ Hack-A-Sound 15 - demo - source - blog + + + play sounds and make tracks @@ -175,9 +175,9 @@ Hack-A-Song 16 - demo - source - blog + + + listen to 'greensleeves' @@ -186,9 +186,9 @@ Hack-A-Tank 17 - demo - source - blog + + + relax and play with fish @@ -197,9 +197,9 @@ Hack-A-Crop 18 - demo - source - blog + + + crop images -- 2.47.3