Skip to content

Commit bf0af12

Browse files
committed
style(eslint): apply further tailwindcss improvements
Resolve warnings after installation of `eslint-plugin-tailwindcss`
1 parent 2f187a3 commit bf0af12

File tree

8 files changed

+19
-21
lines changed

8 files changed

+19
-21
lines changed

frontend/layers/base/app/components/BaseChip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const {
1414

1515
<template>
1616
<button
17-
class="border-1 font-semibold text-nowrap focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-300"
17+
class="border font-semibold text-nowrap focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-300"
1818
type="button"
1919
:class="[
2020
variant === 'neutral' && 'border-gray-200 bg-gray-100 text-gray-600 aria-pressed:border-gray-300 aria-pressed:bg-gray-200 aria-pressed:text-black aria-pressed:shadow-none dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:aria-pressed:border-gray-700 dark:aria-pressed:bg-gray-700 dark:aria-pressed:text-white',

frontend/layers/base/app/components/BaseNavigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const v1Domain = useV1Domain()
2020

2121
<template>
2222
<nav class="isolate bg-gray-50 p-2xl dark:bg-transparent">
23-
<div class="mx-auto grid max-w-8xl gap-2xl [&>*]:[grid-area:1/1]">
23+
<div class="mx-auto grid max-w-8xl gap-2xl *:[grid-area:1/1]">
2424
<span class="z-10 flex w-fit items-center gap-2xl">
2525
<BaseButtonIcon
2626
screenreader-text="base.common.open_navigation"

frontend/layers/base/app/components/BaseSearchInput.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ const idSearchInput = useId()
168168
:value="JSON.stringify(result)"
169169
class="px-2xl py-md font-semibold data-highlighted:bg-gray-100 dark:data-highlighted:bg-gray-900"
170170
>
171-
@select.prevent
172-
>
173171
<slot
174172
name="result-item"
175173
:result

frontend/layers/products/app/components/BlockchainSearchLoadingSkeleton.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
class="flex-1 animate-pulse"
99
>
1010
<div class="flex px-2xl py-lg">
11-
<div class="h-xl w-1/5 rounded-full bg-gradient-to-r from-gray-100 from-0% via-gray-300 via-30% to-gray-100 to-100% dark:from-gray-950 dark:via-gray-500 dark:to-gray-950" />
11+
<div class="h-xl w-1/5 rounded-full bg-linear-to-r from-gray-100 from-0% via-gray-300 via-30% to-gray-100 to-100% dark:from-gray-950 dark:via-gray-500 dark:to-gray-950" />
1212
</div>
1313
<div class="flex px-2xl py-lg">
14-
<div class="h-xl w-1/3 rounded-l-full bg-gradient-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
15-
<div class="h-xl w-full rounded-r-full bg-gradient-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
14+
<div class="h-xl w-1/3 rounded-l-full bg-linear-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
15+
<div class="h-xl w-full rounded-r-full bg-linear-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
1616
</div>
1717
<div class="flex px-2xl py-lg">
18-
<div class="h-xl w-1/3 rounded-l-full bg-gradient-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
19-
<div class="h-xl w-full rounded-r-full bg-gradient-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
18+
<div class="h-xl w-1/3 rounded-l-full bg-linear-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
19+
<div class="h-xl w-full rounded-r-full bg-linear-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
2020
</div>
2121
<div class="flex px-2xl py-lg">
22-
<div class="h-xl w-1/3 rounded-l-full bg-gradient-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
23-
<div class="h-xl w-full rounded-r-full bg-gradient-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
22+
<div class="h-xl w-1/3 rounded-l-full bg-linear-to-r from-gray-100 from-0% via-gray-300 via-40% to-gray-200 to-100% dark:from-gray-950 dark:via-gray-400 dark:to-gray-700" />
23+
<div class="h-xl w-full rounded-r-full bg-linear-to-r from-gray-200 to-gray-100 to-25% dark:from-gray-700 dark:to-gray-950" />
2424
</div>
2525
</div>
2626
</div>

frontend/layers/products/app/components/ProductLandingpageHeading.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ defineProps<{
1212
class="text-center"
1313
:aria-label="`${headline} ${$t('base.common.ethereum')}`"
1414
>
15-
{{ headline }} <span class="text-link-500 before:mr-[0.25rem] before:inline-block before:size-3xl before:bg-[url('/products/images/icon-eth.svg')] before:content-['']">ETH</span>
15+
{{ headline }} <span class="text-link-500 before:mr-xs before:inline-block before:size-3xl before:bg-[url('/products/images/icon-eth.svg')] before:content-['']">ETH</span>
1616
</BaseHeading>
1717
</template>

frontend/layers/products/app/components/ProductLandingpagePricing.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const values = [
4848
:values
4949
:class-list="{
5050
trackItem: 'py-md px-lg rounded-4xl text-gray-600 dark:text-gray-400 has-checked:text-black has-checked:dark:text-white has-focus-visible:outline-2 has-focus-visible:outline-offset-2 has-focus-visible:outline-brand-300',
51-
track: 'p-px border border-gray-100 dark:border-gray-900 flex gap-md [&>*]:grow text-center text-md bg-white dark:bg-gray-950 rounded-4xl shadow-[0_1px_0.5px_0_rgba(255,255,255,0.08)_inset,0-1px_0_0_rgba(255,255,255,0.18)_inset] font-semibold',
52-
thumb: 'bg-gray-50 dark:bg-gray-800 rounded-4xl shadow-[0_2px_2px_0_rgba(0,0,0,0.25),_0_0.5px_0.5px_0_rgba(255,255,255,0.12)_inset]',
51+
track: 'p-px border border-gray-100 dark:border-gray-900 flex gap-md *:grow text-center text-md bg-white dark:bg-gray-950 rounded-4xl shadow-[0_1px_0.5px_0_rgba(255,255,255,0.08)_inset,0-1px_0_0_rgba(255,255,255,0.18)_inset] font-semibold',
52+
thumb: 'bg-gray-50 dark:bg-gray-800 rounded-4xl shadow-[0_2px_2px_0_rgba(0,0,0,0.25),0_0.5px_0.5px_0_rgba(255,255,255,0.12)_inset]',
5353
}"
5454
/>
5555
</section>
@@ -63,7 +63,7 @@ const values = [
6363
tablist: 'p-xs font-semibold flex gap-xs bg-gray-100 dark:bg-black text-gray-600 dark:text-gray-400 rounded-4xl shadow-[0_-1px_0_0_rgba(255,255,255,0.18)_inset]',
6464
tab: 'p-sm grow rounded-4xl',
6565
activeTab: 'text-black dark:text-white',
66-
activeTabIndicator: 'dark:bg-gray-700 bg-gray-50 rounded-4xl text-white shadow-[0_2px_2px_0_rgba(0,0,0,0.25),_0_0.5px_0.5px_0_rgba(255,255,255,0.12)_inset]',
66+
activeTabIndicator: 'dark:bg-gray-700 bg-gray-50 rounded-4xl text-white shadow-[0_2px_2px_0_rgba(0,0,0,0.25),0_0.5px_0.5px_0_rgba(255,255,255,0.12)_inset]',
6767
tabpanel: 'rounded-4xl',
6868
}"
6969
:tabs

frontend/layers/products/app/components/ProductLandingpageSectionStakinghub.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,22 @@ onUnmounted(() => {
5757
</BaseButton>
5858
<BaseCardLayout
5959
layout="1fr_1fr_1fr"
60-
class="grid min-h-[var(--stakinghub-card-height)] lg:min-h-[var(--stakinghub-card-height-lg)]"
60+
class="grid min-h-(--stakinghub-card-height) lg:min-h-(--stakinghub-card-height-lg)"
6161
style="--stakinghub-card-height: 31rem; --stakinghub-card-height-lg: 38.75rem;"
6262
>
6363
<BaseCard
6464
title-is="h3"
6565
title-icon="file-code"
6666
:title="$t('products.landing_page.staking_hub.cards.notifications.title')"
67-
class="min-h-[var(--stakinghub-card-height)]"
67+
class="min-h-(--stakinghub-card-height)"
6868
>
6969
<p class="text-md font-semibold">
7070
{{ $t('products.landing_page.staking_hub.cards.notifications.subtitle') }}
7171
</p>
7272
<p class="text-sm">
7373
{{ $t('products.landing_page.staking_hub.cards.notifications.description') }}
7474
</p>
75-
<div class="flex flex-grow items-center justify-center px-5xl">
75+
<div class="flex grow items-center justify-center px-5xl">
7676
<BaseIcon
7777
name="bell"
7878
class="size-[6.25rem]"
@@ -93,7 +93,7 @@ onUnmounted(() => {
9393
title-is="h3"
9494
title-icon="file-code"
9595
:title="$t('products.landing_page.staking_hub.cards.staking_mobile_app.title')"
96-
class="relative isolate min-h-[var(--stakinghub-card-height)] overflow-hidden text-white [&>header:first-child]:relative [&>header:first-child]:z-10"
96+
class="relative isolate min-h-(--stakinghub-card-height) overflow-hidden text-white [&>header:first-child]:relative [&>header:first-child]:z-10"
9797
@mouseenter="playOnInteraction"
9898
>
9999
<video
@@ -148,7 +148,7 @@ onUnmounted(() => {
148148
title-is="h3"
149149
title-icon="file-code"
150150
:title="$t('products.landing_page.staking_hub.cards.validator_dashboards.title')"
151-
class="min-h-[var(--stakinghub-card-height)] bg-[url('/assets-2usdf/img/validator-bg.svg')] bg-[length:440px_440px] bg-[position:center_calc(100%+180px)] bg-no-repeat dark:bg-[url('/assets-2usdf/img/validator-bg-dark.svg')]"
151+
class="min-h-(--stakinghub-card-height) bg-[url('/assets-2usdf/img/validator-bg.svg')] bg-size-[440px_440px] bg-position-[center_calc(100%+180px)] bg-no-repeat dark:bg-[url('/assets-2usdf/img/validator-bg-dark.svg')]"
152152
>
153153
<p class="text-md font-semibold">
154154
{{ $t('products.landing_page.staking_hub.cards.validator_dashboards.subtitle') }}

frontend/layers/products/app/components/ProductLanindPagePricingDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const { t: $t } = useTranslation()
4444
</template>
4545
</div>
4646
</section>
47-
<section class="w-[1px] bg-gray-600 dark:bg-gray-200" />
47+
<section class="w-px bg-gray-600 dark:bg-gray-200" />
4848
<section
4949
class="my-md"
5050
>

0 commit comments

Comments
 (0)