docs: explain stylesheet ownership, responsive rules and display boundaries

This commit is contained in:
cieanyau committed 2026-11-06 00:38:23 +08:00
1 parent 145d04e9db
commit 9eadc36b62
140 files changed
+568 -3

No files matched your search

@@ -1,3 +1,5 @@
/* 订单支付面板:渠道、余额组合、代金券、支付反馈及内嵌操作区。 */
/* 导入方:app/components/HostList.vue、app/components/PaymentDialog.vue、app/components/RechargeDialog.vue、app/components/home/HomeWalletCard.vue、app/components/instance/DcimActions.vue、app/components/instance/DcimManage.vue、app/components/instance/ImagePurchaseDialog.vue、app/components/instance/InstanceAccess.vue、app/components/instance/LegacyDcimManage.vue、app/pages/account/index.vue、app/pages/account/realname/company.vue、app/pages/account/realname/index.vue、app/pages/account/realname/personal.vue、app/pages/bills/[id].vue、app/pages/cart/index.vue、app/pages/cloud-servers/index.vue、app/pages/dedicated-servers/index.vue、app/pages/finance/index.vue、app/pages/index.vue、app/pages/invoices/index.vue、app/pages/invoices/request.vue、app/pages/orders/[id].vue、app/pages/orders/order/index.vue、app/pages/orders/order/paid.vue、app/pages/orders/order/pay.vue、app/pages/products/[id].vue、app/pages/products/cloud-server.vue、app/pages/products/dedicated-server/customize.vue、app/pages/transfer/index.vue。 */
.order-line[data-v-4931e21e] {
color: var(--p-text-muted-color, #64748b);
justify-content: space-between;
@@ -10,6 +12,7 @@
color: #ef4444;
font-weight: 600;
}
/* 支付渠道与余额选择区域;选中样式由组件状态驱动,不以CSS决定实际付款渠道。 */
.gateway-list[data-v-4931e21e] {
flex-direction: column;
gap: 10px;
@@ -74,6 +77,7 @@
.msg[data-v-4931e21e] {
margin-top: 12px;
}
/* 代金券选项及反馈;无可用券和加载状态应与已选中状态清晰区分。 */
.voucher-row[data-v-4931e21e] {
border: 1px solid var(--p-content-border-color);
border-radius: 6px;
@@ -128,6 +132,7 @@
gap: 8px;
display: flex;
}
/* 允许连续长文本换行,防止IP、密钥或用户输入撑破当前容器;不会修改原始数据。 */
.voucher-choice[data-v-4931e21e] {
white-space: normal;
overflow-wrap: anywhere;
@@ -161,6 +166,7 @@
.gateway-item + .gateway-item[data-v-4931e21e] {
margin-top: -1px;
}
/* 键盘操作的可见焦点:不要只保留鼠标 hover 效果而移除此反馈。 */
.gateway-item[data-v-4931e21e]:focus-visible {
outline: 2px solid var(--p-primary-color);
outline-offset: 2px;
@@ -251,6 +257,7 @@
.amount[data-v-4931e21e] {
color: var(--p-text-color);
}
/* 内嵌支付模式的外壳覆盖,与弹窗共用同一套支付逻辑。 */
.inline-payment h3[data-v-4931e21e] {
margin: 0 0 14px;
font-size: 1rem;
@@ -269,6 +276,7 @@
min-height: 56px;
padding: 14px 18px;
}
/* 视口条件 (width<=640px) 下的响应式覆盖;保留相对基础规则的层叠顺序。 */
@media (width<=640px) {
.order-line[data-v-4931e21e] {
gap: 10px;