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,18 +1,18 @@
|
||||
<template>
|
||||
<view class="notice-card w-full">
|
||||
<view v-if="!detailOpen" class="notice-card__summary bg-[#fffbeb] rounded-24 w-full">
|
||||
<view class="notice-card__summary-title color-B45309 font-size-16 font-900">
|
||||
<view class="notice-card__summary-title text-[#b45309] font-size-16 font-900">
|
||||
{{ summary.title }}
|
||||
</view>
|
||||
<view class="notice-card__summary-content color-D97706 font-size-14 font-900">
|
||||
<view class="notice-card__summary-content text-[#d97706] font-size-14 font-900">
|
||||
{{ summary.content }}
|
||||
</view>
|
||||
<view class="notice-card__summary-footer flex flex-items-center flex-justify-between">
|
||||
<view class="notice-card__summary-time color-D97706 font-size-12 font-900">
|
||||
<view class="notice-card__summary-time text-[#d97706] font-size-12 font-900">
|
||||
{{ summary.publishTime }}
|
||||
</view>
|
||||
<view class="notice-card__summary-link color-B45309 font-size-14 font-900" :class="{ 'is-disabled': disabled }"
|
||||
@click="openDetail">
|
||||
<view class="notice-card__summary-link text-[#b45309] font-size-14 font-900"
|
||||
:class="{ 'is-disabled': disabled }" @click="openDetail">
|
||||
{{ summary.actionText }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -24,7 +24,7 @@
|
||||
@click="closeDetail">
|
||||
<uni-icons type="left" size="16" color="#CBD5E1"></uni-icons>
|
||||
</view>
|
||||
<view class="notice-card__head-title color-1E293B font-size-18 font-900">
|
||||
<view class="notice-card__head-title text-[#1e293b] font-size-18 font-900">
|
||||
{{ detail.navTitle }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -32,16 +32,16 @@
|
||||
<image class="notice-card__image block w-full" :src="detail.image" mode="aspectFill" />
|
||||
|
||||
<view class="notice-card__detail-body">
|
||||
<view class="notice-card__detail-title color-1E293B font-size-20 font-900">
|
||||
<view class="notice-card__detail-title text-[#1e293b] font-size-20 font-900">
|
||||
{{ detail.title }}
|
||||
</view>
|
||||
<view class="notice-card__time-pill flex flex-items-center bg-[#f8fafc] color-475569 font-size-13 font-900">
|
||||
<view class="notice-card__time-pill flex flex-items-center bg-[#f8fafc] text-[#475569] font-size-13 font-900">
|
||||
<text class="notice-card__time-icon">{{ detail.timeIcon }}</text>
|
||||
<text>{{ detail.publishTime }}</text>
|
||||
</view>
|
||||
<view class="notice-card__divider"></view>
|
||||
<view v-for="paragraph in paragraphs" :key="paragraph.id"
|
||||
class="notice-card__paragraph color-475569 font-size-14 font-800">
|
||||
class="notice-card__paragraph text-[#475569] font-size-14 font-800">
|
||||
<text v-for="segment in paragraph.segments" :key="segment.text"
|
||||
:class="{ 'notice-card__strong': segment.strong }">
|
||||
{{ segment.text }}
|
||||
|
||||
Reference in New Issue
Block a user