From a0a9e5f61fb0c27451a11e54eeefe509bb676a90 Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 6 Feb 2025 10:50:45 -0500 Subject: [PATCH] Resolves PostCSS utility class error --- resources/css/app.css | 45 +++++++------------ resources/views/components/mod-card.blade.php | 2 +- resources/views/mod/show.blade.php | 4 +- 3 files changed, 18 insertions(+), 33 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 163b347..8553bd0 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -12,14 +12,6 @@ --font-sans: Figtree, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; } -/* - The default border color has changed to `currentColor` in Tailwind CSS v4, - so we've added these compatibility styles to make sure everything still - looks the same as it did with Tailwind CSS v3. - - If we ever want to remove these styles, we need to add an explicit border - color utility to any element that depends on these defaults. -*/ @layer base { *, ::after, @@ -120,34 +112,27 @@ main a:not(.mod-list-component):not(.tab):not([role="menuitem"]) { } } -@layer components { - .ribbon { - font-size: 18px; - font-weight: bold; - @apply text-white bg-cyan-500 dark:bg-cyan-700; - } - - .ribbon { - --f: .5em; - position: absolute; - top: 0; - left: 0; - line-height: 1.5; - padding-inline: 1lh; - padding-bottom: var(--f); - border-image: conic-gradient(#0008 0 0) 51%/var(--f); - clip-path: polygon(100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)), var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)), 999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px)); - transform: translate(calc((cos(45deg) - 1) * 100%), -100%) rotate(-45deg); - transform-origin: 100% 100%; - } +.ribbon { + --f: .5em; + position: absolute; + top: 0; + left: 0; + line-height: 1.5; + font-size: 18px; + font-weight: bold; + padding-inline: 1lh; + padding-bottom: var(--f); + border-image: conic-gradient(#0008 0 0) 51%/var(--f); + clip-path: polygon(100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)), var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)), 999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px)); + transform: translate(calc((cos(45deg) - 1) * 100%), -100%) rotate(-45deg); + transform-origin: 100% 100%; + @apply text-white bg-cyan-500 dark:bg-cyan-700; } .ribbon-red { - @apply ribbon; @apply text-white bg-red-500 dark:bg-red-700; } - .rainbow { height: 100%; width: 100%; diff --git a/resources/views/components/mod-card.blade.php b/resources/views/components/mod-card.blade.php index 13e0be2..e6206ee 100644 --- a/resources/views/components/mod-card.blade.php +++ b/resources/views/components/mod-card.blade.php @@ -5,7 +5,7 @@
{{ __('Featured!') }}
@endif @if ($mod->disabled) -
{{ __('Disabled') }}
+
{{ __('Disabled') }}
@endif
diff --git a/resources/views/mod/show.blade.php b/resources/views/mod/show.blade.php index 76b57b5..41bf697 100644 --- a/resources/views/mod/show.blade.php +++ b/resources/views/mod/show.blade.php @@ -20,7 +20,7 @@
{{ __('Featured!') }}
@endif @if ($mod->disabled) -
{{ __('Disabled') }}
+
{{ __('Disabled') }}
@endif
@@ -107,7 +107,7 @@ @foreach ($mod->versions as $version)
@if($version->disabled) -
{{ __('Disabled') }}
+
{{ __('Disabled') }}
@endif
@if (auth()->check() && auth()->user()->isModOrAdmin())