refactor: migrate legacy color classes to inline tailwind text utilities
Replace all usages of legacy `.color-*` and `.text-color-*` SCSS utility classes with inline Tailwind `text-[#hexcode]` arbitrary value classes. Remove the deprecated `src/static/scss/colors.scss` file, and fix minor formatting/indentation issues across multiple component files.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="info-row flex items-center mt-8">
|
||||
<text class="label font-size-12 color-99A0AE">{{ label }}:</text>
|
||||
<text class="value flex-full font-size-12 color-99A0AE">{{ value }}</text>
|
||||
<text class="label font-size-12 text-[#99a0ae]">{{ label }}:</text>
|
||||
<text class="value flex-full font-size-12 text-[#99a0ae]">{{ value }}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<view class="card-content pt-[12px]">
|
||||
<view class="flex items-center justify-between">
|
||||
<view class="left flex-full font-size-14 leading-[20px] color-171717 mr-12">
|
||||
<view class="left flex-full font-size-14 leading-[20px] text-[#171717] mr-12">
|
||||
{{ orderData.commodityName }}
|
||||
</view>
|
||||
<view :class="[
|
||||
'right font-size-18 font-bold leading-[20px]',
|
||||
orderData.orderStatus === '0' ? 'color-FF3D60' : 'color-525866',
|
||||
orderData.orderStatus === '0' ? 'text-[#ff3d60]' : 'text-[#525866]',
|
||||
]">
|
||||
{{ orderData.orderAmt }}
|
||||
</view>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<view class="card-header flex items-center">
|
||||
<view class="status-info flex items-center flex-full">
|
||||
<image class="status-icon mr-4" :src="getStatusIcon()" />
|
||||
<view class="order-title font-size-14 leading-[20px] color-525866">
|
||||
<view class="order-title font-size-14 leading-[20px] text-[#525866]">
|
||||
{{ getOrderTypeName() }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<view v-if="orderData.orderStatus === '0'" class="text-right">
|
||||
<button
|
||||
class="go-pay border-none font-size-14 color-white bg-[#ff3d60] rounded-5 inline-block text-center leading-[30px]"
|
||||
class="go-pay border-none font-size-14 text-white bg-[#ff3d60] rounded-5 inline-block text-center leading-[30px]"
|
||||
@click.stop="handleCardClick">
|
||||
去支付
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user