fix(hero): align header slider title/search stack with zibll
Put hero main title/subtitle in search before_html (document flow), move the search overlay outside the swiper as a sibling, and reset search/slide-text positioning to zibll tops so title and search no longer overlap.
This commit is contained in:
1 parent
e7ccc4f069
commit
397231ca75
12 files changed
+476
-439
No files matched your search
@@ -608,6 +608,8 @@ export const pageDisplaySchemas = {
|
||||
header_components_search_popular_limit: 5,
|
||||
header_components_search_show_input_cat: false,
|
||||
header_components_search_show_type: false,
|
||||
header_components_search_before_html: '<div class="em16 font-bold mb10">更优雅的Wordpress主题</div>\n<div>这是导航栏幻灯片多功能组件,可在后台进行配置</div>',
|
||||
header_components_search_after_html: '',
|
||||
slider_config_direction: 'horizontal',
|
||||
slider_config_speed: 300,
|
||||
slider_config_button: true,
|
||||
@@ -680,6 +682,24 @@ export const pageDisplaySchemas = {
|
||||
{ key: 'header_components_search_popular_limit', label: '热词数量', type: 'number', default: 5, min: 1, max: 20, dependsOn: { key: 'header_components_search_show_keywords', value: true } },
|
||||
{ key: 'header_components_search_show_input_cat', label: '显示分类搜索', type: 'switch', default: false, dependsOn: { key: 'header_components_search_enabled', value: true }, help: '搜索框内显示分类选择下拉' },
|
||||
{ key: 'header_components_search_show_type', label: '显示类型切换', type: 'switch', default: false, dependsOn: { key: 'header_components_search_enabled', value: true }, help: '搜索框内显示内容类型切换' },
|
||||
{
|
||||
key: 'header_components_search_before_html',
|
||||
label: '搜索上方额外内容',
|
||||
type: 'textarea',
|
||||
default: '<div class="em16 font-bold mb10">更优雅的Wordpress主题</div>\n<div>这是导航栏幻灯片多功能组件,可在后台进行配置</div>',
|
||||
rows: 4,
|
||||
dependsOn: { key: 'header_components_search_enabled', value: true },
|
||||
help: 'Hero 主标题/副标题写在这里(支持 HTML)。不要依赖幻灯片文案,以免与搜索重叠;请注意组件总高度。',
|
||||
},
|
||||
{
|
||||
key: 'header_components_search_after_html',
|
||||
label: '搜索下方额外内容',
|
||||
type: 'textarea',
|
||||
default: '',
|
||||
rows: 3,
|
||||
dependsOn: { key: 'header_components_search_enabled', value: true },
|
||||
help: '支持 HTML;请注意组件总高度。',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user