Skip to content

Commit

Permalink
[all]: Unify the order of utility style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 26, 2023
1 parent 35746d2 commit 72582f7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions packages/admin/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
to="/"
title="首页"
class="aspect-square flex flex-row justify-center items-center h-14
bg-blue hover:bg-blue-a focus:outline outline-2 outline-offset-3 outline-blue-a rounded-xl
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
:class="{ 'bg-blue-a': route.path === '/' }"
@click="viewToggleFullNavigationBar(false)"
Expand All @@ -30,7 +30,7 @@
<NuxtLink
to="/playlist"
class="overflow-clip flex flex-row gap-x-1 items-center px-2 h-14 w-full max-w-full
bg-blue hover:bg-blue-a focus:outline outline-2 outline-offset-3 outline-blue-a rounded-xl
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition-all duration-300 active:scale-95"
:class="{
'!px-0 !max-w-[3.5rem]': !viewShowFullNavigationBar,
Expand All @@ -49,7 +49,7 @@
<section class="z-50 flex flex-row gap-x-12 justify-between">
<button
class="flex flex-row gap-x-1 items-center px-2 w-full h-14
bg-blue hover:bg-blue-a focus:outline outline-2 outline-offset-3 outline-blue-a rounded-xl
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
@click="backendLogout"
>
Expand Down Expand Up @@ -82,7 +82,7 @@
<button
:title="viewShowFullNavigationBar ? '收起导航栏' : '展开导航栏'"
class="aspect-square flex flex-row justify-center items-center h-14
bg-blue hover:bg-blue-a focus:outline outline-2 outline-offset-3 outline-blue-a rounded-xl
bg-blue hover:bg-blue-a rounded-xl focus:outline outline-2 outline-offset-3 outline-blue-a
transition duration-300 active:scale-95"
@click="viewToggleFullNavigationBar()"
>
Expand Down
16 changes: 8 additions & 8 deletions packages/admin/components/PlaylistList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@
v-if="(getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
(getPublishingStateById(song.$id)?.old && getPublishingStateById(song.$id)?.old?.name !== '') :
(getUnmodifiedSongById(song.$id) && getUnmodifiedSongById(song.$id)?.name !== '')"
class="px-2.5 py-0.5 line-through rounded-lg bg-pink-l/75"
class="px-2.5 py-0.5 line-through bg-pink-l/75 rounded-lg"
>
{{ (getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
getPublishingStateById(song.$id)?.old?.name : getUnmodifiedSongById(song.$id)?.name }}
</span>
<span v-if="song.name" class="px-2.5 py-0.5 rounded-lg bg-blue-l/50">
<span v-if="song.name" class="px-2.5 py-0.5 bg-blue-l/50 rounded-lg">
{{ song.name }}
</span>
</span>
Expand Down Expand Up @@ -400,12 +400,12 @@
v-if="(getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
(getPublishingStateById(song.$id)?.old && getPublishingStateById(song.$id)?.old?.artist !== '') :
(getUnmodifiedSongById(song.$id) && getUnmodifiedSongById(song.$id)?.artist !== '')"
class="px-2.5 py-0.5 line-through rounded-lg bg-pink-l/75"
class="px-2.5 py-0.5 line-through bg-pink-l/75 rounded-lg"
>
{{ (getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
getPublishingStateById(song.$id)?.old?.artist : getUnmodifiedSongById(song.$id)?.artist }}
</span>
<span v-if="song.artist" class="px-2.5 py-0.5 rounded-lg bg-blue-l/50">
<span v-if="song.artist" class="px-2.5 py-0.5 bg-blue-l/50 rounded-lg">
{{ song.artist }}
</span>
</span>
Expand Down Expand Up @@ -479,12 +479,12 @@
v-if="(getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
(getPublishingStateById(song.$id)?.old && getPublishingStateById(song.$id)?.old?.payment_amount) :
(getUnmodifiedSongById(song.$id) && getUnmodifiedSongById(song.$id)?.payment_amount)"
class="px-2 py-0.5 w-fit line-through rounded-md bg-pink-l/75"
class="px-2 py-0.5 w-fit line-through bg-pink-l/75 rounded-md"
>
¥{{ (getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
getPublishingStateById(song.$id)?.old?.payment_amount : getUnmodifiedSongById(song.$id)?.payment_amount }}
</span>
<span v-if="song.payment_amount" class="px-2 py-0.5 w-fit rounded-md bg-blue-l/50">
<span v-if="song.payment_amount" class="px-2 py-0.5 w-fit bg-blue-l/50 rounded-md">
¥{{ song.payment_amount }}
</span>
</span>
Expand Down Expand Up @@ -543,12 +543,12 @@
v-if="(getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
(getPublishingStateById(song.$id)?.old && getPublishingStateById(song.$id)?.old?.language !== '') :
(getUnmodifiedSongById(song.$id) && getUnmodifiedSongById(song.$id)?.language !== '')"
class="px-2.5 py-0.5 w-fit line-through rounded-lg bg-pink-l/75"
class="px-2.5 py-0.5 w-fit line-through bg-pink-l/75 rounded-lg"
>
{{ (getPublishingStateById(song.$id) && getPublishingStateById(song.$id)?.state !== 'processing') ?
getPublishingStateById(song.$id)?.old?.language : getUnmodifiedSongById(song.$id)?.language }}
</span>
<span v-if="song.language" class="px-2.5 py-0.5 w-fit rounded-lg bg-blue-l/50">
<span v-if="song.language" class="px-2.5 py-0.5 w-fit bg-blue-l/50 rounded-lg">
{{ song.language }}
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/home/app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div ref="contentRoot" class="relative portrait:overflow-y-auto h-dscreen">
<main
class="z-10 absolute landscape:grid landscape:grid-cols-[36vw_1fr]
class="absolute z-10 landscape:grid landscape:grid-cols-[36vw_1fr]
gap-x-14 lg:gap-x-16 xl:gap-x-28 2xl:gap-x-40 3xl:gap-x-6
landscape:3xl:px-40 landscape:5xl:px-64 landscape:py-7 landscape:2xl:py-16 landscape:5xl:py-28
w-full landscape:h-full backdrop-blur-[8rem]"
Expand Down

0 comments on commit 72582f7

Please sign in to comment.