From 8231ef81cdbed41a1fd10572e3a5ada50f88327a Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sat, 11 Jul 2020 06:15:13 +0200 Subject: [PATCH] add info icon for things with a tooltip --- Makefile | 2 +- images/info.svg | 1 + style.css | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 images/info.svg diff --git a/Makefile b/Makefile index f2b93a8..62fc244 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PAGES = index.html IMAGES = $(patsubst %,images/%, \ mlem.gif mlem_static.png icon.png \ niss_uwu_bg_dim.png niss_uwu_bg.png \ - star_small.png sparkles_large.png niss_wave_large.png \ + info_small.png star_small.png sparkles_large.png niss_wave_large.png \ shortcake_large.png \ ) diff --git a/images/info.svg b/images/info.svg new file mode 100644 index 0000000..c96440d --- /dev/null +++ b/images/info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/style.css b/style.css index 94a2e09..3cb5215 100644 --- a/style.css +++ b/style.css @@ -112,6 +112,11 @@ dd { text-decoration: dotted underline; text-decoration-thickness: 2px; } + [title]::after { + content: url(images/info_small.png); + vertical-align: text-top; + mix-blend-mode: hard-light; + } } @media (hover: none) { [title]::after { @@ -259,7 +264,8 @@ footer a { .cake::before, .cake::after, header rt::before, header rt::after, - section h2::before, section h2::after { + section h2::before, section h2::after, + [title]::after { mix-blend-mode: initial; } }