mirror of
https://github.com/kognise/water.css.git
synced 2025-08-06 13:16:58 +02:00
Improve disabled and readonly styles
This commit is contained in:
@@ -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!
|
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:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
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.
|
Don't like how it looks? Feel free to submit an issue or PR with suggestions.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@@ -57,5 +57,7 @@
|
|||||||
|
|
||||||
<input type='submit'>
|
<input type='submit'>
|
||||||
</form>
|
</form>
|
||||||
|
<input disabled label='This is disabled'>
|
||||||
|
<input readonly label='This is readonly'>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -64,6 +64,14 @@ input[type='checkbox']:active, input[type='submit']:active, input[type='button']
|
|||||||
transform: translateY(2px);
|
transform: translateY(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input:read-only, input:disabled {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
body.light {
|
body.light {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
color: #363636;
|
color: #363636;
|
||||||
|
Reference in New Issue
Block a user