提交 037b2320 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 4ecae869
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<template> <template>
<section class="section"> <section class="section">
<div class="section-title"><h2>合作机构</h2></div> <div class="section-title">
<em class="section-title_dot"></em>
<h2>合作机构</h2>
<em class="section-title_dot"></em>
</div>
</section> </section>
</template> </template>
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<template> <template>
<section class="section"> <section class="section">
<div class="section-title"><h2>定制专属类课程</h2></div> <div class="section-title">
<em class="section-title_dot"></em>
<h2>定制专属类课程</h2>
<em class="section-title_dot"></em>
</div>
</section> </section>
</template> </template>
......
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
<template> <template>
<section class="section" id="teacher"> <section class="section" id="teacher">
<div class="section-title"><h2>师资团队</h2></div> <div class="section-title">
<em class="section-title_dot"></em>
<h2>师资团队</h2>
<em class="section-title_dot"></em>
</div>
</section> </section>
</template> </template>
...@@ -14,5 +18,6 @@ ...@@ -14,5 +18,6 @@
margin-top: 80px; margin-top: 80px;
--section-title-color: #fff; --section-title-color: #fff;
--section-title-dot-bgcolor: #fff; --section-title-dot-bgcolor: #fff;
--section-title-dot-border-color: #fff;
} }
</style> </style>
.section {
--section-title-color: #333;
--section-title-dot-bgcolor: #aa1941;
--section-title-dot-border-color: #c1ab85;
}
.section-title {
display: flex;
align-items: center;
justify-content: center;
padding: 30px 0;
h2 {
font-size: 32px;
font-weight: 500;
line-height: 1;
color: var(--section-title-color);
}
.section-title_dot {
position: relative;
width: 16px;
height: 16px;
margin: 0 12px;
border: 1px dashed var(--section-title-dot-border-color);
&::after {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
content: '';
width: 6px;
height: 6px;
background-color: var(--section-title-dot-bgcolor);
}
}
}
...@@ -13,40 +13,5 @@ import Brand from '../components/Brand.vue' ...@@ -13,40 +13,5 @@ import Brand from '../components/Brand.vue'
</template> </template>
<style lang="scss"> <style lang="scss">
.section { @import '../style.scss';
--section-title-color: #333;
--section-title-dot-bgcolor: #aa1941;
}
.section-title {
display: flex;
align-items: center;
justify-content: center;
padding: 30px 0;
h2 {
position: relative;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
font-weight: 500;
line-height: 1;
color: var(--section-title-color);
&::after {
display: inline-block;
content: '';
width: 6px;
height: 6px;
margin: 0 12px;
background-color: var(--section-title-dot-bgcolor);
}
&::before {
display: inline-block;
content: '';
width: 6px;
height: 6px;
margin: 0 12px;
background-color: var(--section-title-dot-bgcolor);
}
}
}
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论