feat: 全站移动端适配
- AdminLayout: 移动端侧边栏抽屉式折叠(汉堡菜单+遮罩) - Dashboard: 统计卡片/快捷操作响应式布局(2列→1列) - Links: 筛选条件垂直堆叠,表格横向滚动,弹窗自适应宽度 - Categories: 表格横向滚动,弹窗自适应 - Settings: 表单标签响应式(小屏换行) - Login: 登录卡片自适应边距 - Home: 搜索框全宽,网址卡片缩窄,导航描述隐藏
This commit is contained in:
@@ -164,6 +164,7 @@ loadData()
|
||||
border: 1px solid #6366f1;
|
||||
border-radius: 8px;
|
||||
transition: all 0.2s;
|
||||
white-space: nowrap;
|
||||
&:hover {
|
||||
background: #6366f1;
|
||||
color: white;
|
||||
@@ -251,4 +252,28 @@ loadData()
|
||||
color: #aaa;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.header {
|
||||
.header-content {
|
||||
padding: 16px;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
.brand {
|
||||
.logo { font-size: 22px; }
|
||||
.desc { display: none; }
|
||||
}
|
||||
.search-box { width: 100%; order: 10; }
|
||||
.admin-link {
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
.main-content { padding: 16px; }
|
||||
.links-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
|
||||
.link-card { padding: 12px; }
|
||||
.category-header .name { font-size: 16px; }
|
||||
.category-section { margin-bottom: 24px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user