Skip to content

Commit

Permalink
Improve mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Nov 24, 2024
1 parent 433e74b commit 6f1d802
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Countdown({ seconds }: Props) {
<NumberFlowGroup>
<div
style={{ fontVariantNumeric: 'tabular-nums', '--number-flow-char-height': '0.85em' }}
className="~text-xl/4xl flex items-baseline font-semibold"
className="~text-3xl/4xl flex items-baseline font-semibold"
>
<NumberFlow trend={-1} value={hh} format={{ minimumIntegerDigits: 2 }} />
<NumberFlow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<NumberFlowGroup>
<div
style="font-variant-numeric: tabular-nums; --number-flow-char-height: 0.85em"
class="~text-xl/4xl flex items-baseline font-semibold"
class="~text-3xl/4xl flex items-baseline font-semibold"
>
<NumberFlow trend={-1} value={hh} format={{ minimumIntegerDigits: 2 }} />
<NumberFlow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ss = computed(() => seconds % 60)
<NumberFlowGroup>
<div
style="font-variant-numeric: tabular-nums; --number-flow-char-height: 0.85em"
class="~text-xl/4xl flex items-baseline font-semibold"
class="~text-3xl/4xl flex items-baseline font-semibold"
>
<NumberFlow :trend="-1" :value="hh" :format="{ minimumIntegerDigits: 2 }" />
<NumberFlow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function MotionExample({ value }: Props) {
<motion.span
className={clsx(
value > 0 ? 'bg-emerald-400' : 'bg-red-500',
'~text-base/2xl inline-flex items-center px-[0.3em] text-white transition-colors duration-300'
'inline-flex items-center px-[0.3em] text-2xl text-white transition-colors duration-300'
)}
style={{ borderRadius: 999 }}
layout={canAnimate}
Expand Down
3 changes: 3 additions & 0 deletions site/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const sans = ['Inter', '_font_fallback_732902278794', 'sans-serif']

export default {
presets: [reset],
future: {
hoverOnlyWhenSupported: true
},
content: {
files: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
transform: {
Expand Down

0 comments on commit 6f1d802

Please sign in to comment.