Skip to content

Commit

Permalink
chore(learerboard): better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
veryCrunchy committed May 10, 2024
1 parent f9773f2 commit 45c6b95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
13 changes: 6 additions & 7 deletions components/WatchTime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,21 @@ const handleScroll = () => {
></div>
<div
ref="scrollContainer"
class="overflow-scroll nth--n+3:(border-5 border-solid) nth-1:border-[#ffa376] nth-2:border-[#ff9c80] nth-3:border-[#ff735f] snap-y snap-mandatory space-y-3 py-6"
class="overflow-scroll [&>:nth-child(-n+3)]:border-(4 inline-solid) [&>:nth-child(1)]:border-( [#ffa376]) [&>:nth-child(2)]:border-( [#fea894]) [&>:nth-child(3)]:border-( [#ff7e6c]) snap-y snap-mandatory space-y-3 py-6"
@scroll="handleScroll"
>
<div
v-for="user of watchtime"
:key="user.displayName"
class="bg-button snap-start scroll-my-10 items-center justify-between pr-10 rounded-full p-2 flex"
>
<img
class="size-15 rounded-full"
:src="user.avatar ?? undefined"
/>
<p class="font-bold text-[clamp(.3rem,3cqw,1.25rem)] ">
<img class="size-15 rounded-full" :src="user.avatar ?? undefined" />
<p class="font-bold text-[clamp(.3rem,3cqw,1.25rem)]">
{{ user.displayName }}
</p>
<h1 class="font-bebas font-bold text-[clamp(.3rem,4.5cqw,1.50rem)]">{{ user.time }}</h1>
<h1 class="font-bebas font-bold text-[clamp(.3rem,4.5cqw,1.50rem)]">
{{ user.time }}
</h1>
</div>
</div>
</div>
Expand Down
9 changes: 0 additions & 9 deletions uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,6 @@ import {
} from "unocss";

export default defineConfig({
rules: [
[
/^nth-(.+):(.*)$/,
async ([, d, r], { rawSelector, constructCSS, generator }) => {
const rule = await generator.parseToken(r);
return `${e(rawSelector)} > *:nth-child(${d}) { ${rule?.[0][2]} }`;
},
],
],
presets: [
presetUno({}),
presetAttributify(),
Expand Down

0 comments on commit 45c6b95

Please sign in to comment.