Commit 09b9724c by wusiyi

feat: 移动端样式适配

parent 53aec777
......@@ -18,7 +18,7 @@
</div>
<div class="tabs flex gap-5">
<div
class="tab flex justify-center items-center text-gray-700 font-medium text-sm cursor-pointer"
class="tab flex justify-center items-center text-gray-700 font-medium lg:text-sm text-xs cursor-pointer"
v-for="(sub, index) in tab.content"
@click="setCurrentTab(tabIndex, index)"
:key="sub.key"
......@@ -26,7 +26,8 @@
{{ sub.subtitle }}
</div>
</div>
<div class="tab-content grid grid-cols-3 gap-x-10 gap-y-8 mt-5">
<div
class="tab-content lg:grid lg:grid-cols-3 gap-x-10 lg:gap-y-8 gap-2 mt-5 flex flex-col">
<div
v-for="c in tab.content[getCurrentTab(tabIndex)].articles"
:key="c.article">
......@@ -131,6 +132,13 @@ export default {
}
}
@media (max-width: 1024px) {
.tab {
width: 80px;
height: 30px;
}
}
.content-title {
position: relative;
transition: all 0.2s ease;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment