refactor(common): 将head_tag.html重命名为head_tag.hbs并保留所有功能
Discourse Theme / ci (push) Failing after 0s
Discourse Theme / ci (push) Failing after 0s
- 重命名文件扩展名从.html到.hbs以支持handlebars模板语法 - 保留原有的玻璃态效果选择器样式配置功能 - 保留原有的卡片项目选择器样式配置功能 - 保持浏览器兼容性检测脚本不变 - 确保所有条件渲染逻辑正常工作
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<script>
|
||||
if (!CSS.supports("(color: hsl(from white h s l))")) {
|
||||
window.unsupportedBrowser = true;
|
||||
window.I18n.translations[I18n.locale].js.browser_update =
|
||||
'The Horizon theme does not support your browser. Please update your browser, or <a href="?safe_mode=no_themes">switch to safe mode</a>.';
|
||||
}
|
||||
</script>
|
||||
|
||||
{{#if settings.extra_glass_morphism_selectors}}
|
||||
<style>
|
||||
{{settings.extra_glass_morphism_selectors}} {
|
||||
background-color: #ffffffa8 !important;
|
||||
border-radius: var(--d-border-radius);
|
||||
backdrop-filter: blur(32px);
|
||||
box-shadow: #00000077 0 0 19px 0;
|
||||
padding: 24px;
|
||||
}
|
||||
</style>
|
||||
{{/if}}
|
||||
|
||||
{{#if settings.extra_card_item_selectors}}
|
||||
<style>
|
||||
{{settings.extra_card_item_selectors}} {
|
||||
background: var(--d-chat-input-bg-color);
|
||||
border-radius: var(--d-border-radius);
|
||||
box-shadow: #00000024 0 0 7px 2px;
|
||||
margin: 10px 0;
|
||||
position: relative;
|
||||
padding: 16px 12px;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
}
|
||||
{{settings.extra_card_item_selectors}}:hover {
|
||||
background-color: var(--accent-text-color);
|
||||
}
|
||||
</style>
|
||||
{{/if}}
|
||||
@@ -5,32 +5,3 @@
|
||||
'The Horizon theme does not support your browser. Please update your browser, or <a href="?safe_mode=no_themes">switch to safe mode</a>.';
|
||||
}
|
||||
</script>
|
||||
{{#if settings.extra_glass_morphism_selectors}}
|
||||
<style>
|
||||
{{settings.extra_glass_morphism_selectors}} {
|
||||
background-color: #ffffffa8 !important;
|
||||
border-radius: var(--d-border-radius);
|
||||
backdrop-filter: blur(32px);
|
||||
box-shadow: #00000077 0 0 19px 0;
|
||||
padding: 24px;
|
||||
}
|
||||
</style>
|
||||
{{/if}}
|
||||
|
||||
{{#if settings.extra_card_item_selectors}}
|
||||
<style>
|
||||
{{settings.extra_card_item_selectors}} {
|
||||
background: var(--d-chat-input-bg-color);
|
||||
border-radius: var(--d-border-radius);
|
||||
box-shadow: #00000024 0 0 7px 2px;
|
||||
margin: 10px 0;
|
||||
position: relative;
|
||||
padding: 16px 12px;
|
||||
overflow: hidden;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
}
|
||||
{{settings.extra_card_item_selectors}}:hover {
|
||||
background-color: var(--accent-text-color);
|
||||
}
|
||||
</style>
|
||||
{{/if}}
|
||||
Reference in New Issue
Block a user