From 786909dac2d350ee95866c0bb3207588dae66cc0 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:19:41 +0100 Subject: [PATCH 1/6] custom cursors --- media/hand.2x.png | 3 +++ media/hand.png | 3 +++ media/tail.2x.png | 3 +++ media/tail.png | 3 +++ style/base.css | 11 ++++++++++- 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 media/hand.2x.png create mode 100644 media/hand.png create mode 100644 media/tail.2x.png create mode 100644 media/tail.png diff --git a/media/hand.2x.png b/media/hand.2x.png new file mode 100644 index 0000000..1549507 --- /dev/null +++ b/media/hand.2x.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be8a350c7207d7bfee2aaf5e388d8a7e89ea5128839e2025f0afa6e806392939 +size 814 diff --git a/media/hand.png b/media/hand.png new file mode 100644 index 0000000..81f2e25 --- /dev/null +++ b/media/hand.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6449d5d6a5dfcbeaca03ac7acab4bff1f75245efad192d5a5aa2517100f9b9c +size 689 diff --git a/media/tail.2x.png b/media/tail.2x.png new file mode 100644 index 0000000..10ec72f --- /dev/null +++ b/media/tail.2x.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74de54cfd9a1795a6da3f9caab5ea019d87085af7dae59af329b713a0165c9a2 +size 1222 diff --git a/media/tail.png b/media/tail.png new file mode 100644 index 0000000..3231886 --- /dev/null +++ b/media/tail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c31db8a6e7270e45216a105c20372726760805b79717bf8850607fed6a012938 +size 1001 diff --git a/style/base.css b/style/base.css index 02b4d41..9bff4e7 100644 --- a/style/base.css +++ b/style/base.css @@ -21,8 +21,17 @@ actually exists min-height: 100lvh; margin: 0; scrollbar-gutter: stable; + + cursor: + image-set("../media/tail.png" 1x, "../media/tail.2x.png" 2x) 34 1, + auto; + --pointer: + image-set("../media/hand.png" 1x, "../media/hand.2x.png" 2x) 31 1, + auto; } + a { cursor: var(--pointer); } + :root { font-size: large; @@ -90,7 +99,7 @@ actually exists } } - input, label { cursor: pointer; } + input, label { cursor: var(--pointer); } input { appearance: none; From aa6fa9731061ba1812cb45cfa5a293b7fbfbf31b Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:20:07 +0100 Subject: [PATCH 2/6] fix selection on #six --- style/base.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style/base.css b/style/base.css index 9bff4e7..4897175 100644 --- a/style/base.css +++ b/style/base.css @@ -545,7 +545,7 @@ actually exists } @layer faces.six { - #six, #six ::selection { + #six { --hue: 250deg; --bg-angle: 130deg; From 3277f8f4cf4037f260534e2d4fba78ac63ea62d0 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:20:13 +0100 Subject: [PATCH 3/6] background --- style/base.css | 4 +++- style/properties.css | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/style/base.css b/style/base.css index 4897175..1f9416d 100644 --- a/style/base.css +++ b/style/base.css @@ -59,12 +59,14 @@ actually exists } --shadow-hsl: 330deg 40% 40%; - --base-background: var(--gradient) fixed; + --base-background: url(../media/church.png), var(--gradient) fixed; background: var(--base-background); font-family: Muller, sans-serif; font-weight: 500; + @media (prefers-reduced-data: reduce) { + --base-background: var(--gradient) fixed; font-family: sans-serif; font-weight: normal; } diff --git a/style/properties.css b/style/properties.css index 0a3c261..a3fefe4 100644 --- a/style/properties.css +++ b/style/properties.css @@ -1,3 +1,9 @@ +@property --base-background { + syntax: "*"; + inherits: false; + initial-value: transparent; +} + /* face backgrounds */ @property --hue { From 9286d4342fc4213d2f760896f9395bdab57c4fdd Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:19:41 +0100 Subject: [PATCH 4/6] custom cursors --- media/hand.png | 3 +++ media/tail.png | 3 +++ style/base.css | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 media/hand.png create mode 100644 media/tail.png diff --git a/media/hand.png b/media/hand.png new file mode 100644 index 0000000..f943df0 --- /dev/null +++ b/media/hand.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:669a1ee8a1c0a3389a41e71fc847dd8351d8a3d483751d7fbdfbfb0b68675f26 +size 705 diff --git a/media/tail.png b/media/tail.png new file mode 100644 index 0000000..f883571 --- /dev/null +++ b/media/tail.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61a24968a025a4c723732c14957481405186fa74f17f5568435c423a7dfe876e +size 1017 diff --git a/style/base.css b/style/base.css index 02b4d41..e1d3ef2 100644 --- a/style/base.css +++ b/style/base.css @@ -21,8 +21,13 @@ actually exists min-height: 100lvh; margin: 0; scrollbar-gutter: stable; + + cursor: url("../media/tail.png") 34 1, auto; + --pointer: url("../media/hand.png") 31 1, auto; } + a { cursor: var(--pointer); } + :root { font-size: large; @@ -90,7 +95,7 @@ actually exists } } - input, label { cursor: pointer; } + input, label { cursor: var(--pointer); } input { appearance: none; From 2a8b42ec3d4b683f4bff0367a2308f3be0324a6f Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:20:07 +0100 Subject: [PATCH 5/6] fix selection on #six --- style/base.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style/base.css b/style/base.css index e1d3ef2..8b1e179 100644 --- a/style/base.css +++ b/style/base.css @@ -541,7 +541,7 @@ actually exists } @layer faces.six { - #six, #six ::selection { + #six { --hue: 250deg; --bg-angle: 130deg; From 1b42446243c219031bf3ae8c2bc14d11fc3232f8 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Mon, 17 Feb 2025 03:20:13 +0100 Subject: [PATCH 6/6] background --- media/church.png | 3 +++ style/base.css | 4 +++- style/properties.css | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 media/church.png diff --git a/media/church.png b/media/church.png new file mode 100644 index 0000000..4ecf6cc --- /dev/null +++ b/media/church.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c654930a72f5948cbcc07c93fb3de6c77e24682f2db39971a61b2031a93ceb54 +size 8014 diff --git a/style/base.css b/style/base.css index 8b1e179..6198e23 100644 --- a/style/base.css +++ b/style/base.css @@ -55,12 +55,14 @@ actually exists } --shadow-hsl: 330deg 40% 40%; - --base-background: var(--gradient) fixed; + --base-background: url(../media/church.png), var(--gradient) fixed; background: var(--base-background); font-family: Muller, sans-serif; font-weight: 500; + @media (prefers-reduced-data: reduce) { + --base-background: var(--gradient) fixed; font-family: sans-serif; font-weight: normal; } diff --git a/style/properties.css b/style/properties.css index 0a3c261..a3fefe4 100644 --- a/style/properties.css +++ b/style/properties.css @@ -1,3 +1,9 @@ +@property --base-background { + syntax: "*"; + inherits: false; + initial-value: transparent; +} + /* face backgrounds */ @property --hue {