From 1c8dcab7443ce53f1d41b3018ab76fee6498a261 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 9 Sep 2022 22:34:17 +0900 Subject: [PATCH 1/5] Add UnoCSS Detection --- src/technologies/u.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/technologies/u.json b/src/technologies/u.json index 600911977..4c01c8ae6 100644 --- a/src/technologies/u.json +++ b/src/technologies/u.json @@ -773,6 +773,15 @@ "saas": true, "website": "https://ulogin.ru" }, + "UnoCSS": { + "cats": [ + 66 + ], + "css": "--un-(?:rotate|translate|space-x|text-opacity|border-opacity)", + "description": "UnoCSS is instant on-demand Atomic CSS engine.", + "icon": "UnoCSS.svg", + "website": "https://uno.antfu.me/" + }, "uPortal": { "cats": [ 21 @@ -820,4 +829,4 @@ "website": "https://github.com/utterance/utterances", "xhr": "\\.utteranc\\.es" } -} \ No newline at end of file +} From 89c97f4da54b30b2f02fd9d3ba26293ceb2ec01e Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 9 Sep 2022 22:34:22 +0900 Subject: [PATCH 2/5] Add UnoCSS Logo --- src/drivers/webextension/images/icons/UnoCSS.svg | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/drivers/webextension/images/icons/UnoCSS.svg diff --git a/src/drivers/webextension/images/icons/UnoCSS.svg b/src/drivers/webextension/images/icons/UnoCSS.svg new file mode 100644 index 000000000..50a9835b7 --- /dev/null +++ b/src/drivers/webextension/images/icons/UnoCSS.svg @@ -0,0 +1,11 @@ + + + + + From b60f702b3701efb278d90828419c35e16a657b4c Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 13 Sep 2022 13:53:48 +0900 Subject: [PATCH 3/5] Change svg size --- .../webextension/images/icons/UnoCSS.svg | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/drivers/webextension/images/icons/UnoCSS.svg b/src/drivers/webextension/images/icons/UnoCSS.svg index 50a9835b7..7549566cf 100644 --- a/src/drivers/webextension/images/icons/UnoCSS.svg +++ b/src/drivers/webextension/images/icons/UnoCSS.svg @@ -1,11 +1,12 @@ - - - - + + + + + + + + + + + From f35e147a247c730b9e8e4cdc054da303f81604e2 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 13 Sep 2022 13:54:18 +0900 Subject: [PATCH 4/5] Add oss true to UnoCSS --- src/technologies/u.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/technologies/u.json b/src/technologies/u.json index 4c01c8ae6..7e9342257 100644 --- a/src/technologies/u.json +++ b/src/technologies/u.json @@ -779,6 +779,7 @@ ], "css": "--un-(?:rotate|translate|space-x|text-opacity|border-opacity)", "description": "UnoCSS is instant on-demand Atomic CSS engine.", + "oss": true, "icon": "UnoCSS.svg", "website": "https://uno.antfu.me/" }, From 79fcc727045d861ccdcde5560fab09ad0851e433 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 13 Sep 2022 13:54:59 +0900 Subject: [PATCH 5/5] Add version dom detection to UnoCSS --- src/technologies/u.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/technologies/u.json b/src/technologies/u.json index 7e9342257..68af8223a 100644 --- a/src/technologies/u.json +++ b/src/technologies/u.json @@ -777,8 +777,15 @@ "cats": [ 66 ], - "css": "--un-(?:rotate|translate|space-x|text-opacity|border-opacity)", "description": "UnoCSS is instant on-demand Atomic CSS engine.", + "css": "--un-(?:rotate|translate|space-x|text-opacity|border-opacity)", + "dom": { + "style[data-unocss]": { + "attributes": { + "data-unocss": "([\\d\\.]+)\\;version:\\1" + } + } + }, "oss": true, "icon": "UnoCSS.svg", "website": "https://uno.antfu.me/"