Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Style links globally (#727)

Krystle Salazar3aaf038f5f30
diff --git a/src/components/VAllResultsGrid/VAllResultsGrid.vue b/src/components/VAllResultsGrid/VAllResultsGrid.vue
index ee92147df..287c5aea9 100644
--- a/src/components/VAllResultsGrid/VAllResultsGrid.vue
+++ b/src/components/VAllResultsGrid/VAllResultsGrid.vue
@@ -8,7 +8,7 @@
v-for="[key, item] in results"
:key="key"
:to="{ path: `/search/${key}`, query: $route.query }"
- class="lg:col-span-2 focus:bg-white focus:border-tx focus:ring focus:ring-pink focus:outline-none focus:shadow-ring focus:text-black rounded-sm"
+ class="lg:col-span-2 hover:no-underline"
>
<VContentLink :results-count="item.count" :media-type="key" />
</NuxtLink>
diff --git a/src/components/VAudioTrack/layouts/VFullLayout.vue b/src/components/VAudioTrack/layouts/VFullLayout.vue
index 60fd7e567..6d36110ca 100644
--- a/src/components/VAudioTrack/layouts/VFullLayout.vue
+++ b/src/components/VAudioTrack/layouts/VFullLayout.vue
@@ -21,7 +21,7 @@
>
<template #creator>
<a
- class="text-pink hover:text-pink p-px rounded-sm focus:outline-none focus:ring focus:ring-pink"
+ class="p-px rounded-sm focus:outline-none focus:ring focus:ring-pink"
:href="audio.creator_url"
>{{ audio.creator }}</a
>
diff --git a/src/components/VContentLink/VContentLink.vue b/src/components/VContentLink/VContentLink.vue
index f6b6d21d3..d0989d22e 100644
--- a/src/components/VContentLink/VContentLink.vue
+++ b/src/components/VContentLink/VContentLink.vue
@@ -1,6 +1,6 @@
<template>
<div
- class="bg-white border border-dark-charcoal/20 rounded-sm flex hover:bg-dark-charcoal hover:text-white overflow-hidden flex-col items-start py-4 ps-4 pe-12 w-full lg:flex-row lg:justify-between lg:items-center lg:p-6"
+ class="text-dark-charcoal bg-white border border-dark-charcoal/20 rounded-sm flex flex-col hover:bg-dark-charcoal hover:text-white overflow-hidden items-start py-4 ps-4 pe-12 w-full lg:flex-row lg:justify-between lg:items-center lg:p-6 focus:bg-white focus:border-tx focus:ring focus:ring-pink focus:outline-none focus:shadow-ring focus:text-black"
>
<div class="flex flex-col items-start lg:flex-row lg:items-center">
<VIcon :icon-path="iconPath" />
diff --git a/src/styles/tailwind.css b/src/styles/tailwind.css
index b5c61c956..c4d796cc7 100644
--- a/src/styles/tailwind.css
+++ b/src/styles/tailwind.css
@@ -1,3 +1,9 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
+
+@layer base {
+ a {
+ @apply text-pink hover:underline;
+ }
+}