diff --git a/docs/index.html b/docs/index.html index 28d0e22..e175270 100644 --- a/docs/index.html +++ b/docs/index.html @@ -22,7 +22,7 @@

Now you can write your simple static site with nice semantic html, and Water.css will manage the styling for you.

- Water.css - Make your tiny website just a little nicer | Product Hunt Embed + Water.css - Make your tiny website just a little nicer | Product Hunt Embed

Is it responsive?

@@ -32,6 +32,7 @@

In fact, try resizing this page. Everything flows super nicely as you'll see.

+

More elements

@@ -59,6 +60,8 @@ - + + + diff --git a/docs/script.js b/docs/script.js new file mode 100644 index 0000000..0c34b6b --- /dev/null +++ b/docs/script.js @@ -0,0 +1,11 @@ +document.getElementById('switch').addEventListener('click', () => { + const { body } = document + const ph = document.getElementById('ph') + if (body.className) { + body.className = '' + ph.src = ph.src.replace('theme=light', 'theme=dark') + } else { + body.className = 'light' + ph.src = ph.src.replace('theme=dark', 'theme=light') + } +}) \ No newline at end of file diff --git a/water.css b/water.css index 1765596..890dd50 100644 --- a/water.css +++ b/water.css @@ -64,12 +64,9 @@ input[type='checkbox']:active, input[type='submit']:active, input[type='button'] transform: translateY(2px); } -input:read-only, input:disabled { - cursor: not-allowed; -} - input:disabled { opacity: 0.5; + cursor: not-allowed; } body.light {