1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-16 10:04:41 +02:00

feat: output styles to docs, so site can use them

This commit is contained in:
Jonas Kuske
2019-06-09 16:17:24 +02:00
parent 72385eb668
commit a1be24b96b
3 changed files with 7 additions and 4 deletions

View File

@@ -27,14 +27,14 @@
</script>
<!-- Startup styles of water.css, so styles don't have to wait until JS is loaded -->
<link rel="preload" as="style" href="../dark-legacy.standalone.min.css" />
<link rel="preload" as="style" href="./water.css/dark-legacy.standalone.min.css" />
<link
rel="preload"
as="style"
media="(prefers-color-scheme: dark)"
href="../dark-legacy.standalone.min.css"
href="./water.css/dark-legacy.standalone.min.css"
/>
<link rel="stylesheet" id="js-startup-stylesheet" href="../dark-legacy.min.css" />
<link rel="stylesheet" id="js-startup-stylesheet" href="./water.css/dark-legacy.min.css" />
<!-- Dynamic version of water.css, overwrites startup styles. JavaScript sets & updates href -->
<link rel="stylesheet" id="js-stylesheet" />

View File

@@ -27,7 +27,7 @@ const queryParams = new URLSearchParams(w.location.search)
const supportsCssVars = typeof CSS !== 'undefined' && CSS.supports('color', 'var(--clr)')
/** The base URI from where the docs page loads the CSS files. */
const DEV_BASE = '../'
const DEV_BASE = './water.css/'
/** The base URI from where instructions show to load the CSS files. */
const CDN_BASE = 'https://cdn.jsdelivr.net/gh/kognise/water.css/dist/'