From a3fe34508c3e02690f8d1cd2c115c7889d9ac029 Mon Sep 17 00:00:00 2001 From: Sabine Schmaltz Date: Mon, 20 Mar 2023 12:59:32 +0100 Subject: [PATCH] improve source and checksum links --- src/ocamlorg_frontend/components/icons.eml | 6 +++ .../pages/package_overview.eml | 44 +++++++++++-------- tailwind.config.js | 1 + 3 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/ocamlorg_frontend/components/icons.eml b/src/ocamlorg_frontend/components/icons.eml index 0f0cbeb2ba..f389eae194 100644 --- a/src/ocamlorg_frontend/components/icons.eml +++ b/src/ocamlorg_frontend/components/icons.eml @@ -65,6 +65,12 @@ let community class_ = +let copy class_ = + + + let copy_to_clipboard class_ =

Sources

-
-
- <%s! Icons.package_sources "h-5 w-5 mr-2" %> -
-
- <%s Filename.basename uri %> -
- <% checksums |> List.iter begin fun checksum -> %> - <%s String.trim checksum %> - <% end; %> -
-
- -
- <%s! Icons.download "h-6 w-6" %> -
-
+
+ + + <%s Filename.basename uri %> + + +
+ <%s! Icons.download "h-6 w-6" %>
+
+ + <% checksums |> List.iter begin fun checksum -> %> +
+ <%s String.trim checksum %> + + + +
+ <% end; %>
<% ; %> diff --git a/tailwind.config.js b/tailwind.config.js index 36376e1e3c..fec41bc622 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -45,6 +45,7 @@ module.exports = { 700: "#DC5402", 600: "#EE6A1A", 300: "rgba(238, 106, 26, 0.48)", + 200: "rgba(238, 106, 26, 0.15)", 100: "rgba(238, 106, 26, 0.1)", }, background: {