From 048ed0c7e1199e277dc13ec461b4acb9866a18ed Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 25 Jan 2024 18:38:35 +0100 Subject: [PATCH 1/3] 2024 --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index c113632..8c6ab73 100644 --- a/LICENSE +++ b/LICENSE @@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - Copyright (C) 2023 Mylloon + Copyright (C) 2023-2024 Mylloon This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published From c380da6380b66e391ae74c2fe7436f84dc0826a6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 26 Jan 2024 16:58:16 +0100 Subject: [PATCH 2/3] Support list in portfolio cards --- static/css/portfolio.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/static/css/portfolio.css b/static/css/portfolio.css index 124abec..c4a6618 100644 --- a/static/css/portfolio.css +++ b/static/css/portfolio.css @@ -20,7 +20,7 @@ main { } /* List */ -main ul { +main ul:not(ul ul) { padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); @@ -34,7 +34,7 @@ main ul { } /* Card */ -main li { +main li:not(ul ul > li) { display: flex; border-radius: 8px; @@ -50,12 +50,12 @@ main li { margin-inline: 5px; } -main li:hover { +main li:hover:not(ul ul > li) { background: color-mix(in srgb, var(--background) 40%, var(--extreme)); box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3); } -main li[role="button"]:hover { +main li[role="button"]:hover:not(ul ul > li) { cursor: pointer; } @@ -91,10 +91,17 @@ span { /* Element text */ div p, -div a { +div a, +ul ul li { font-size: var(--font-size-card); } +/* Element list */ +ul ul { + list-style: initial; + padding: 1em; +} + /* Element language */ p[data-lang] { margin: 0; From 058eb3c8c80c2c45b2b6e06e0d5e993c0db0cc50 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 26 Jan 2024 17:02:01 +0100 Subject: [PATCH 3/3] mouseup instead of mousedown --- templates/portfolio/card.html | 2 +- templates/portfolio/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/portfolio/card.html b/templates/portfolio/card.html index a79ec0a..e0b0a82 100644 --- a/templates/portfolio/card.html +++ b/templates/portfolio/card.html @@ -1,5 +1,5 @@ {{#metadata}} {{#info}} {{#portfolio}} {{#link}} -
  • +
  • {{>portfolio/project.html}}
  • {{/link}} {{^link}} diff --git a/templates/portfolio/index.html b/templates/portfolio/index.html index b2ce21e..4a3e6fb 100644 --- a/templates/portfolio/index.html +++ b/templates/portfolio/index.html @@ -36,7 +36,7 @@ document.querySelectorAll("main a").forEach(function (link) { link.setAttribute("target", "_blank"); link.setAttribute("rel", "noreferrer"); - link.addEventListener("mousedown", function (event) { + link.addEventListener("mouseup", function (event) { event.stopPropagation(); }); })