summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-05 12:45:52 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-05 12:45:52 +0100
commit257a559da9d653faf819d258a855f0bd2caec2db (patch)
tree78aeacfa8296853ad4a3f43fe7714f0c60878591
parent18c4913ee1961de2b61e953b6fed1cd35e2051be (diff)
Adds a nice hover effect to the close cross
-rw-r--r--core/static/css/output.css23
-rw-r--r--engagements/templates/engagements/engagement_effort_create.html2
2 files changed, 24 insertions, 1 deletions
diff --git a/core/static/css/output.css b/core/static/css/output.css
index 7850c75..cb296e2 100644
--- a/core/static/css/output.css
+++ b/core/static/css/output.css
@@ -1489,6 +1489,10 @@ html {
border-radius: 0.25rem;
}
+.rounded-full {
+ border-radius: 9999px;
+}
+
.rounded-lg {
border-radius: 0.5rem;
}
@@ -1601,6 +1605,10 @@ html {
background-color: rgb(254 249 195 / var(--tw-bg-opacity));
}
+.p-1 {
+ padding: 0.25rem;
+}
+
.p-1\.5 {
padding: 0.375rem;
}
@@ -1886,6 +1894,16 @@ html {
--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
}
+.transition-colors {
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
+ transition-duration: 150ms;
+}
+
+.duration-200 {
+ transition-duration: 200ms;
+}
+
.placeholder\:text-gray-400::-moz-placeholder {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
@@ -1906,6 +1924,11 @@ html {
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}
+.hover\:bg-gray-200:hover {
+ --tw-bg-opacity: 1;
+ background-color: rgb(229 231 235 / var(--tw-bg-opacity));
+}
+
.hover\:bg-indigo-500:hover {
--tw-bg-opacity: 1;
background-color: rgb(99 102 241 / var(--tw-bg-opacity));
diff --git a/engagements/templates/engagements/engagement_effort_create.html b/engagements/templates/engagements/engagement_effort_create.html
index f4edc8d..06cf513 100644
--- a/engagements/templates/engagements/engagement_effort_create.html
+++ b/engagements/templates/engagements/engagement_effort_create.html
@@ -7,7 +7,7 @@
<div class="container mx-auto max-w-2xl mt-8">
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4 relative">
- <a href="{{ request.META.HTTP_REFERER }}" class="absolute top-2 right-2">
+ <a href="{{ request.META.HTTP_REFERER }}" class="absolute top-2 right-2 p-1 rounded-full hover:bg-gray-200 transition-colors duration-200">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>