refactor: remove font-size utility file and replace with inline text classes
Delete the src/static/scss/font-size.scss utility file, and replace all legacy `font-size-*` class usages across the codebase with inline `text-[numberpx]` styling to consolidate font size definitions and remove redundant utility code.
This commit is contained in:
@@ -2,26 +2,26 @@
|
||||
<view class="poi-detail-card bg-white rounded-[24px] overflow-hidden">
|
||||
<view class="poi-detail-card__hero relative">
|
||||
<image class="poi-detail-card__image w-full h-full block rounded-[18px]" :src="data.image" mode="aspectFill" />
|
||||
<view class="poi-detail-card__badge flex flex-items-center gap-[4px] font-size-10 font-bold">
|
||||
<view class="poi-detail-card__badge flex flex-items-center gap-[4px] text-[10px] font-bold">
|
||||
<text class="poi-detail-card__badge-icon">⌖</text>
|
||||
<text>{{ data.badge?.text }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="poi-detail-card__body">
|
||||
<view class="poi-detail-card__title text-[#1e293b] font-size-24 font-bold">
|
||||
<view class="poi-detail-card__title text-[#1e293b] text-[24px] font-bold">
|
||||
{{ data.title }}
|
||||
</view>
|
||||
|
||||
<view class="poi-detail-card__tip flex flex-items-center gap-[10px]">
|
||||
<view class="poi-detail-card__spark text-[#047857] font-size-18 font-bold">✦</view>
|
||||
<view class="poi-detail-card__tip-text text-[#047857] font-size-14 font-bold">
|
||||
<view class="poi-detail-card__spark text-[#047857] text-[18px] font-bold">✦</view>
|
||||
<view class="poi-detail-card__tip-text text-[#047857] text-[14px] font-bold">
|
||||
{{ data.tip?.text }}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
class="poi-detail-card__button flex flex-items-center flex-justify-center gap-[8px] text-white bg-[#0f172a] font-size-16 font-bold"
|
||||
class="poi-detail-card__button flex flex-items-center flex-justify-center gap-[8px] text-white bg-[#0f172a] text-[16px] font-bold"
|
||||
:class="{ 'is-disabled': disabled }" @click="handleAction">
|
||||
<text class="poi-detail-card__button-icon">↗</text>
|
||||
<text>{{ data.action?.text }}</text>
|
||||
|
||||
Reference in New Issue
Block a user