1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-01 10:50:40 +02:00

Improve disabled and readonly styles

This commit is contained in:
Kognise
2019-04-05 01:21:53 -04:00
parent 59b5e66ff7
commit 4bc95fc5f0
3 changed files with 11 additions and 3 deletions

View File

@@ -32,12 +32,10 @@ Well, I may have lied a *little* bit when I said Water.css makes use of no class
Oh, you want a demo you say? Cheeky fellah!
[Well, here's your demo.](https://kognise.github.io/water.css/) And here's a screenshot to top it off:
[Well, here's your demo.](https://kognise.github.io/water.css/) And here's a screenshot of the dark theme to top it off:
![Screenshot](screenshot.jpg)
Don't forget there's a light theme as well.
Don't like how it looks? Feel free to submit an issue or PR with suggestions.
## Contributing

View File

@@ -57,5 +57,7 @@
<input type='submit'>
</form>
<input disabled label='This is disabled'>
<input readonly label='This is readonly'>
</body>
</html>

View File

@@ -64,6 +64,14 @@ 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;
}
body.light {
background: #ffffff;
color: #363636;