Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Move typography defaults into `tailwind.css` file (#1095)
Zack Kridac512ade21acb
diff --git a/src/components/VAudioTrack/layouts/VBoxLayout.vue b/src/components/VAudioTrack/layouts/VBoxLayout.vueindex 8d83e06f1..4e93505a0 100644--- a/src/components/VAudioTrack/layouts/VBoxLayout.vue+++ b/src/components/VAudioTrack/layouts/VBoxLayout.vue@@ -6,9 +6,11 @@><div class="absolute inset-0 flex flex-col"><div class="info flex-grow flex flex-col justify-between p-4">- <span class="font-heading font-semibold leading-snug line-clamp-3">{{- audio.title- }}</span>+ <h2+ class="font-heading font-semibold leading-snug line-clamp-3 text-base"+ >+ {{ audio.title }}+ </h2><div class="info"><VLicenseclass="mb-2 hidden md:group-hover:block md:group-focus:block"diff --git a/src/components/VContentSwitcher/VSearchTypeItem.vue b/src/components/VContentSwitcher/VSearchTypeItem.vueindex 02fdf1ad2..3613ee62b 100644--- a/src/components/VContentSwitcher/VSearchTypeItem.vue+++ b/src/components/VContentSwitcher/VSearchTypeItem.vue@@ -4,7 +4,7 @@:is-first="itemId === 0"@click.native="$emit('click', item)">- <div class="flex flex-row items-center">+ <div class="flex flex-row items-center text-base"><VIcon :icon-path="icon" class="me-2 my-2" /><span class="pe-20 font-semibold">{{ $t(`search-type.${item}`) }}</span><VPill v-if="status === 'beta'">{{diff --git a/src/components/VHeader/VPageMenu/VPageList.vue b/src/components/VHeader/VPageMenu/VPageList.vueindex 356f6b8df..cf6a5f66f 100644--- a/src/components/VHeader/VPageMenu/VPageList.vue+++ b/src/components/VHeader/VPageMenu/VPageList.vue@@ -1,7 +1,7 @@<template><VItemGroup:direction="layout"- class="mt-10 md:mt-2 min-w-[200px]"+ class="mt-10 md:mt-2 min-w-[200px] text-base":bordered="false"><VItemdiff --git a/src/styles/base/generic.sass b/src/styles/base/generic.sassindex a68a91e12..c5194883c 100644--- a/src/styles/base/generic.sass+++ b/src/styles/base/generic.sass@@ -27,13 +27,6 @@ $pre-font-size: 0.875em$pre-padding: 1.25rem 1.5rem$pre-code-font-size: 1em-html- background-color: $body-background-color- -moz-osx-font-smoothing: grayscale- -webkit-font-smoothing: antialiased- text-rendering: $body-rendering- text-size-adjust: 100%-article,aside,figure,@@ -57,23 +50,6 @@ pre-webkit-font-smoothing: autofont-family: $code-family-body- color: $body-color- font-size: $body-font-size- font-weight: $body-weight- line-height: $body-line-height- margin: 0- font-family: $body-family- font-display: swap- -webkit-font-smoothing: antialiased- -moz-osx-font-smoothing: grayscale--// Inline--a- cursor: pointer- text-decoration: none-codebackground-color: $code-backgroundcolor: $codediff --git a/src/styles/tailwind.css b/src/styles/tailwind.cssindex c4d796cc7..d854c6893 100644--- a/src/styles/tailwind.css+++ b/src/styles/tailwind.css@@ -3,7 +3,23 @@@tailwind utilities;@layer base {+ html {+ @apply text-dark-charcoal m-0 font-normal leading-loose;+ font-display: swap;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+ }+a {@apply text-pink hover:underline;}++ h1,+ h2,+ h3,+ h4,+ h5,+ h6 {+ @apply font-bold;+ }}