docs: explain stylesheet ownership, responsive rules and display boundaries
This commit is contained in:
1 parent
145d04e9db
commit
9eadc36b62
140 files changed
+568
-3
No files matched your search
@@ -1,3 +1,6 @@
|
||||
/* 商品详情说明:结构化配置分区、富文本、折叠预览与空态。 */
|
||||
/* 导入方:app/components/ProductDescription.vue、app/pages/products/index.vue。 */
|
||||
/* 允许连续长文本换行,防止IP、密钥或用户输入撑破当前容器;不会修改原始数据。 */
|
||||
.product-description[data-v-8a6cfb44] {
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
@@ -115,6 +118,7 @@
|
||||
.description-compact .description-paragraph[data-v-8a6cfb44] {
|
||||
color: var(--p-text-muted-color);
|
||||
}
|
||||
/* 折叠预览与展开操作的展示边界,正文内容清理由业务组件负责。 */
|
||||
.description-preview[data-v-8a6cfb44] {
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
@@ -143,6 +147,7 @@
|
||||
text-underline-offset: 3px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
/* 键盘操作的可见焦点:不要只保留鼠标 hover 效果而移除此反馈。 */
|
||||
.description-toggle[data-v-8a6cfb44]:focus-visible {
|
||||
outline: 2px solid var(--p-primary-color);
|
||||
outline-offset: 3px;
|
||||
@@ -151,6 +156,7 @@
|
||||
.description-toggle i[data-v-8a6cfb44] {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
/* 后端富文本的排版规则;这些选择器不提供HTML消毒或授权功能。 */
|
||||
.description-rich[data-v-8a6cfb44] {
|
||||
min-width: 0;
|
||||
padding-top: 8px;
|
||||
@@ -246,6 +252,7 @@
|
||||
.description-rich[data-v-8a6cfb44] > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
/* 视口条件 (width<=760px) 下的响应式覆盖;保留相对基础规则的层叠顺序。 */
|
||||
@media (width<=760px) {
|
||||
.description-header[data-v-8a6cfb44] {
|
||||
padding: 10px 20px;
|
||||
|
||||
Reference in new issue
Block a user