mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fix style
This commit is contained in:
1 file changed
+7
-5
@@ -6,10 +6,10 @@
|
|||||||
for (; _.endsWith("/");)_ = _.slice(0, -1);
|
for (; _.endsWith("/");)_ = _.slice(0, -1);
|
||||||
return `${_}/`;
|
return `${_}/`;
|
||||||
}
|
}
|
||||||
window.CDN_HOST = "/";
|
window.CDN_HOST = "{{ '/' if process.env.DEV else UiContext.cdn_prefix }}";
|
||||||
window.__toAssetUrl = url => window.CDN_HOST + url;
|
window.__toAssetUrl = url => window.CDN_HOST + url;
|
||||||
window.DATA_HOST = "/";
|
window.DATA_HOST = "/";
|
||||||
window.DATA_REGION = "CN";
|
window.DATA_REGION = "Hydro";
|
||||||
window.DEFAULT_LANG = "{{ 'zh-CN' if _('__id').startsWith('zh') else 'en' }}";
|
window.DEFAULT_LANG = "{{ 'zh-CN' if _('__id').startsWith('zh') else 'en' }}";
|
||||||
window.DATA_SOURCE = "{{ dataSource }}";
|
window.DATA_SOURCE = "{{ dataSource }}";
|
||||||
if (document.documentElement.classList.contains("theme--dark")) document.documentElement.classList.toggle("dark", !0);
|
if (document.documentElement.classList.contains("theme--dark")) document.documentElement.classList.toggle("dark", !0);
|
||||||
@@ -21,13 +21,15 @@
|
|||||||
}, 500);
|
}, 500);
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
#app .nav, .omnibar-toggle { display: none; }
|
#app .nav, .omnibar-toggle, #app>main>footer>div>a, #app>main>footer>div>p { display: none; }
|
||||||
|
#app footer { padding-top: 0 !important; padding-bottom: 0 !important; }
|
||||||
|
.nav__item .icon img { display: inherit; }
|
||||||
table { border-spacing: 2px; }
|
table { border-spacing: 2px; }
|
||||||
th { text-align: center; }
|
th { text-align: center; }
|
||||||
td.unattempted, td.empty { background-color: transparent !important; }
|
td.unattempted, td.empty { background-color: transparent !important; }
|
||||||
</style>
|
</style>
|
||||||
<script type="module" crossorigin src="/assets/index-{{ js }}.js"></script>
|
<script type="module" crossorigin src="{{ '/' if process.env.DEV else UiContext.cdn_prefix }}assets/index-{{ js }}.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-{{ css }}.css">
|
<link rel="stylesheet" crossorigin href="{{ '/' if process.env.DEV else UiContext.cdn_prefix }}assets/index-{{ css }}.css">
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<noscript>This website requires JavaScript to function properly. Please enable JavaScript tocontinue.</noscript>
|
<noscript>This website requires JavaScript to function properly. Please enable JavaScript tocontinue.</noscript>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in new issue
Block a user