This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
<div id="theme-config-app" class="admin-container" v-cloak>
|
||||
<!-- 顶部工具栏 -->
|
||||
<header class="admin-header">
|
||||
<div class="admin-header__left">
|
||||
<div class="admin-logo">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
||||
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
@@ -12,8 +11,6 @@
|
||||
</svg>
|
||||
<span>黑果云模板控制器</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="admin-header__right">
|
||||
<button class="btn btn-primary btn-lg" @click="saveConfig" :disabled="saving">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" v-if="!saving">
|
||||
<path d="M13.5 2.5H2.5V13.5H13.5V2.5Z" stroke="currentColor" stroke-width="1.5"/>
|
||||
@@ -23,57 +20,61 @@
|
||||
<span v-if="saving">保存中...</span>
|
||||
<span v-else>保存全部配置</span>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 主体布局 -->
|
||||
<div class="admin-layout">
|
||||
<!-- 侧边栏导航 -->
|
||||
<aside class="admin-sidebar">
|
||||
<nav class="sidebar-nav">
|
||||
<a href="#basic" class="nav-item" :class="{active: activeSection === 'basic'}" @click="activeSection = 'basic'">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||
<!-- Tab导航 -->
|
||||
<nav class="admin-tabs">
|
||||
<a class="tab-item" :class="{active: activeSection === 'basic'}" @click.prevent="activeSection = 'basic'">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<rect x="3" y="3" width="18" height="18" rx="2" stroke="currentColor" stroke-width="2"/>
|
||||
<line x1="3" y1="9" x2="21" y2="9" stroke="currentColor" stroke-width="2"/>
|
||||
<line x1="9" y1="21" x2="9" y2="9" stroke="currentColor" stroke-width="2"/>
|
||||
</svg>
|
||||
<span>基础配置</span>
|
||||
基础配置
|
||||
</a>
|
||||
<a href="#seo" class="nav-item" :class="{active: activeSection === 'seo'}" @click="activeSection = 'seo'">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||
<a class="tab-item" :class="{active: activeSection === 'seo'}" @click.prevent="activeSection = 'seo'">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<circle cx="11" cy="11" r="8" stroke="currentColor" stroke-width="2"/>
|
||||
<path d="M21 21L16.65 16.65" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span>SEO设置</span>
|
||||
SEO设置
|
||||
</a>
|
||||
<a href="#home" class="nav-item" :class="{active: activeSection === 'home'}" @click="activeSection = 'home'">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||
<a class="tab-item" :class="{active: activeSection === 'home'}" @click.prevent="activeSection = 'home'">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<path d="M3 9L12 2L21 9V20C21 20.5304 20.7893 21.0391 20.4142 21.4142C20.0391 21.7893 19.5304 22 19 22H5C4.46957 22 3.96086 21.7893 3.58579 21.4142C3.21071 21.0391 3 20.5304 3 20V9Z" stroke="currentColor" stroke-width="2"/>
|
||||
</svg>
|
||||
<span>首页内容</span>
|
||||
首页内容
|
||||
</a>
|
||||
<a href="#nav" class="nav-item" :class="{active: activeSection === 'nav'}" @click="activeSection = 'nav'">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||
<a class="tab-item" :class="{active: activeSection === 'nav'}" @click.prevent="activeSection = 'nav'">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<line x1="3" y1="12" x2="21" y2="12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
<line x1="3" y1="6" x2="21" y2="6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
<line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span>导航配置</span>
|
||||
导航配置
|
||||
</a>
|
||||
<a href="#advanced" class="nav-item" :class="{active: activeSection === 'advanced'}" @click="activeSection = 'advanced'">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
|
||||
<a class="tab-item" :class="{active: activeSection === 'footer'}" @click.prevent="activeSection = 'footer'">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<rect x="3" y="17" width="18" height="4" stroke="currentColor" stroke-width="2"/>
|
||||
<line x1="3" y1="3" x2="21" y2="3" stroke="currentColor" stroke-width="2"/>
|
||||
<line x1="3" y1="10" x2="21" y2="10" stroke="currentColor" stroke-width="2"/>
|
||||
</svg>
|
||||
底部/链接
|
||||
</a>
|
||||
<a class="tab-item" :class="{active: activeSection === 'advanced'}" @click.prevent="activeSection = 'advanced'" v-if="showAdvanced">
|
||||
<svg viewBox="0 0 24 24" fill="none">
|
||||
<circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2"/>
|
||||
<path d="M12 1V3M12 21V23M4.22 4.22L5.64 5.64M18.36 18.36L19.78 19.78M1 12H3M21 12H23M4.22 19.78L5.64 18.36M18.36 5.64L19.78 4.22" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
</svg>
|
||||
<span>高级设置</span>
|
||||
高级设置
|
||||
</a>
|
||||
</nav>
|
||||
</aside>
|
||||
|
||||
<!-- 主内容区 -->
|
||||
<main class="admin-main">
|
||||
|
||||
|
||||
|
||||
<section id="basic" class="config-section" :class="{active: activeSection === 'basic'}">
|
||||
<div class="section-card">
|
||||
<div class="section-header">
|
||||
@@ -600,7 +601,7 @@
|
||||
<t-button class="ml-10" variant="outline" @click="toggleAdvanced">
|
||||
{{ showAdvanced ? "隐藏高级 JSON" : "显示高级 JSON" }}
|
||||
</t-button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="/plugins/addon/theme_configurator/template/admin/lang/index.js"> </main>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* ============================================
|
||||
黑果云模板控制器 - 现代管理后台
|
||||
设计风格: 侧边栏 + 卡片式 + Ant Design配色
|
||||
黑果云模板控制器 - 顶部Tab样式
|
||||
设计风格: 现代化标签页 + 卡片式 + Ant Design配色
|
||||
============================================ */
|
||||
|
||||
:root {
|
||||
@@ -13,18 +13,16 @@
|
||||
/* 背景色 */
|
||||
--bg-body: #f0f2f5;
|
||||
--bg-container: #ffffff;
|
||||
--bg-sidebar: #001529;
|
||||
--bg-header: #ffffff;
|
||||
|
||||
/* 文字色 */
|
||||
--text-primary: #262626;
|
||||
--text-secondary: #595959;
|
||||
--text-tertiary: #8c8c8c;
|
||||
--text-light: rgba(255, 255, 255, 0.85);
|
||||
|
||||
/* 边框色 */
|
||||
--border: #d9d9d9;
|
||||
--border-light: #e8e8e8;
|
||||
--border-light: #e8e8f0;
|
||||
--border-lighter: #f0f0f0;
|
||||
|
||||
/* 间距 */
|
||||
@@ -34,13 +32,8 @@
|
||||
|
||||
/* 阴影 */
|
||||
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
全局样式
|
||||
============================================ */
|
||||
|
||||
[v-cloak] {
|
||||
display: none;
|
||||
}
|
||||
@@ -60,8 +53,10 @@ body {
|
||||
|
||||
.admin-container {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--bg-body);
|
||||
padding: var(--spacing-lg);
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
@@ -69,29 +64,21 @@ body {
|
||||
============================================ */
|
||||
|
||||
.admin-header {
|
||||
height: 60px;
|
||||
background: var(--bg-header);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
background: var(--bg-container);
|
||||
border-radius: 8px 8px 0 0;
|
||||
padding: var(--spacing-lg);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 var(--spacing-lg);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.admin-header__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--border-lighter);
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.admin-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font-size: 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
@@ -100,70 +87,53 @@ body {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.admin-header__right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
主体布局
|
||||
Tab导航
|
||||
============================================ */
|
||||
|
||||
.admin-layout {
|
||||
.admin-tabs {
|
||||
background: var(--bg-container);
|
||||
border-bottom: 1px solid var(--border-lighter);
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
gap: 8px;
|
||||
padding: 0 var(--spacing-lg);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
侧边栏
|
||||
============================================ */
|
||||
|
||||
.admin-sidebar {
|
||||
width: 220px;
|
||||
background: var(--bg-sidebar);
|
||||
overflow-y: auto;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
padding: var(--spacing-md) 0;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px var(--spacing-lg);
|
||||
color: var(--text-light);
|
||||
.tab-item {
|
||||
position: relative;
|
||||
padding: 14px 20px;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
border-left: 3px solid transparent;
|
||||
transition: all 0.3s;
|
||||
border-bottom: 2px solid transparent;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.nav-item svg {
|
||||
flex-shrink: 0;
|
||||
.tab-item svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: #ffffff;
|
||||
.tab-item:hover {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
.nav-item:hover svg {
|
||||
.tab-item:hover svg {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--primary);
|
||||
border-left-color: #ffffff;
|
||||
color: #ffffff;
|
||||
.tab-item.active {
|
||||
color: var(--primary);
|
||||
border-bottom-color: var(--primary);
|
||||
}
|
||||
|
||||
.nav-item.active svg {
|
||||
.tab-item.active svg {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@@ -172,9 +142,10 @@ body {
|
||||
============================================ */
|
||||
|
||||
.admin-main {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
background: var(--bg-container);
|
||||
border-radius: 0 0 8px 8px;
|
||||
padding: var(--spacing-lg);
|
||||
min-height: 600px;
|
||||
}
|
||||
|
||||
.config-section {
|
||||
@@ -191,34 +162,27 @@ body {
|
||||
|
||||
.section-card {
|
||||
background: var(--bg-container);
|
||||
border: 1px solid var(--border-lighter);
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid var(--border-lighter);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
padding: 20px var(--spacing-lg);
|
||||
padding: 16px var(--spacing-lg);
|
||||
border-bottom: 1px solid var(--border-lighter);
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.section-header h2 {
|
||||
margin: 0 0 4px 0;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.section-header h2 svg {
|
||||
color: var(--primary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.section-desc {
|
||||
margin: 0;
|
||||
margin: 4px 0 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
@@ -231,15 +195,18 @@ body {
|
||||
表单样式
|
||||
============================================ */
|
||||
|
||||
.form-group {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
.form-fields,
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.form-group:last-child {
|
||||
.form-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
.form-item label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
@@ -247,32 +214,6 @@ body {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.form-group label .required {
|
||||
color: #ff4d4f;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
transition: all 0.3s;
|
||||
background: var(--bg-container);
|
||||
}
|
||||
|
||||
.form-control:hover {
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 2px var(--primary-light);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.form-hint {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
@@ -286,6 +227,7 @@ body {
|
||||
.upload-control {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.upload-control .t-input {
|
||||
@@ -321,7 +263,6 @@ body {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 主按钮 */
|
||||
.btn-primary {
|
||||
background: var(--primary);
|
||||
color: #ffffff;
|
||||
@@ -333,12 +274,6 @@ body {
|
||||
border-color: var(--primary-hover);
|
||||
}
|
||||
|
||||
.btn-primary:active:not(:disabled) {
|
||||
background: var(--primary-active);
|
||||
border-color: var(--primary-active);
|
||||
}
|
||||
|
||||
/* 次要按钮 */
|
||||
.btn-secondary {
|
||||
background: var(--bg-container);
|
||||
color: var(--text-primary);
|
||||
@@ -350,7 +285,6 @@ body {
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
/* 危险按钮 */
|
||||
.btn-danger {
|
||||
background: var(--bg-container);
|
||||
color: #ff4d4f;
|
||||
@@ -363,21 +297,18 @@ body {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
|
||||
/* 大按钮 */
|
||||
.btn-lg {
|
||||
height: 40px;
|
||||
padding: 0 24px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
/* 小按钮 */
|
||||
.btn-sm {
|
||||
height: 28px;
|
||||
padding: 0 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* 图标按钮 */
|
||||
.btn-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
@@ -387,9 +318,6 @@ body {
|
||||
color: var(--text-secondary);
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 16px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
@@ -408,16 +336,11 @@ body {
|
||||
配置项列表
|
||||
============================================ */
|
||||
|
||||
.config-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.config-item {
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.config-item__header {
|
||||
@@ -429,7 +352,9 @@ body {
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.config-item__title {
|
||||
.config-item__title,
|
||||
.config-item__header h4 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
@@ -444,68 +369,56 @@ body {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* 添加按钮 */
|
||||
.btn-add-item {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
border: 2px dashed var(--border);
|
||||
background: #fafafa;
|
||||
.banner-item {
|
||||
border: 1px solid var(--border-light);
|
||||
border-radius: 6px;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.banner-item__header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
transition: all 0.3s;
|
||||
padding: 12px var(--spacing-md);
|
||||
background: #fafafa;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.btn-add-item:hover {
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
background: var(--primary-light);
|
||||
}
|
||||
|
||||
.btn-add-item svg {
|
||||
font-size: 20px;
|
||||
.banner-item__header h4 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
空状态
|
||||
============================================ */
|
||||
|
||||
.empty-state {
|
||||
padding: 60px 20px;
|
||||
text-align: center;
|
||||
.empty-state,
|
||||
.empty-tip {
|
||||
padding: 40px 20px;
|
||||
border: 2px dashed var(--border);
|
||||
border-radius: 6px;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.empty-state svg {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
opacity: 0.3;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.empty-state p {
|
||||
margin: 0;
|
||||
background: #fafafa;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
提示框
|
||||
============================================ */
|
||||
|
||||
.alert {
|
||||
.alert,
|
||||
.alert-info {
|
||||
padding: 12px 16px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: var(--spacing-md);
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background: var(--primary-light);
|
||||
border-left: 3px solid var(--primary);
|
||||
color: var(--text-secondary);
|
||||
@@ -532,7 +445,6 @@ body {
|
||||
background: #fafafa;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-light);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.form-switch label {
|
||||
@@ -546,53 +458,37 @@ body {
|
||||
============================================ */
|
||||
|
||||
.json-editor textarea {
|
||||
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.6;
|
||||
font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
|
||||
font-size: 13px !important;
|
||||
line-height: 1.6 !important;
|
||||
padding: 16px !important;
|
||||
background: #1e1e1e;
|
||||
color: #d4d4d4;
|
||||
border: 1px solid #3c3c3c;
|
||||
border-radius: 4px;
|
||||
background: #1e1e1e !important;
|
||||
color: #d4d4d4 !important;
|
||||
border: 1px solid #3c3c3c !important;
|
||||
border-radius: 4px !important;
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
.json-editor textarea:focus {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.15);
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
响应式
|
||||
标题
|
||||
============================================ */
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.admin-sidebar {
|
||||
width: 180px;
|
||||
}
|
||||
.sub-title {
|
||||
margin: 24px 0 16px;
|
||||
padding-left: 12px;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
border-left: 3px solid var(--primary);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.admin-sidebar {
|
||||
position: fixed;
|
||||
left: -220px;
|
||||
top: 60px;
|
||||
bottom: 0;
|
||||
z-index: 99;
|
||||
transition: left 0.3s;
|
||||
.mt-10,
|
||||
.mt-20 {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.admin-sidebar.is-open {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
|
||||
.section-body {
|
||||
padding: var(--spacing-md);
|
||||
}
|
||||
.ml-10 {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
/* ============================================
|
||||
@@ -600,8 +496,7 @@ body {
|
||||
============================================ */
|
||||
|
||||
.t-input,
|
||||
.t-textarea,
|
||||
.t-select {
|
||||
.t-textarea {
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
|
||||
@@ -621,7 +516,21 @@ body {
|
||||
border-color: var(--primary) !important;
|
||||
}
|
||||
|
||||
.t-button--primary:hover {
|
||||
background: var(--primary-hover) !important;
|
||||
border-color: var(--primary-hover) !important;
|
||||
/* ============================================
|
||||
响应式
|
||||
============================================ */
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.admin-container {
|
||||
padding: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.admin-tabs {
|
||||
overflow-x: auto;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user