feat 完善注释
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* 页面头部(白底通栏):主标题 22/700 #1F2937 + 副标语 13/400 #6B7280。
|
||||
*
|
||||
* <p>43 张设计稿实测:标题顶 y125(顶栏 72 → 内容区 padding-top 53 含 1px 描边)、
|
||||
* 行盒 29 → 副标语 ink y162(标题盒底 154 + 8)。整块白底高 179(72 → 251)。</p>
|
||||
*/
|
||||
interface Props {
|
||||
title: string
|
||||
slogan?: string
|
||||
@@ -29,10 +23,10 @@ defineProps<Props>()
|
||||
<style lang="less" scoped>
|
||||
.page-head {
|
||||
background: @white;
|
||||
padding-bottom: 72px; // 副标语盒底 179 → 页头块底 251(块高 179)
|
||||
padding-bottom: 72px;
|
||||
|
||||
&__title {
|
||||
padding-top: 52px; // 顶栏 72 → 标题 ink 124(design 125)
|
||||
padding-top: 52px;
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
line-height: 29px;
|
||||
@@ -41,7 +35,7 @@ defineProps<Props>()
|
||||
|
||||
&__slogan {
|
||||
padding-bottom: 0;
|
||||
margin-top: 9px; // 标题盒底 153 → 副标语盒顶 162
|
||||
margin-top: 9px;
|
||||
font-size: 13px;
|
||||
font-weight: 400;
|
||||
line-height: 17px;
|
||||
|
||||
Reference in New Issue
Block a user