diff --git a/docs/index.html.ejs b/docs/index.html.ejs index 127359c..f3b597b 100644 --- a/docs/index.html.ejs +++ b/docs/index.html.ejs @@ -388,7 +388,20 @@ `) %> + +

+ Text boxes can also be disabled and have value with their corresponding HTML attributes. +

+ + <%- example(` +
+ + +
+ `) %> + +
diff --git a/style.css b/style.css index be77ea1..d5a6af2 100644 --- a/style.css +++ b/style.css @@ -169,6 +169,10 @@ button::-moz-focus-inner { :disabled, :disabled + label { color: var(--button-shadow); +} + +button:disabled, +:disabled + label { text-shadow: 1px 1px 0 var(--button-highlight); } @@ -433,6 +437,13 @@ input[type="email"] { line-height: 2; } +input[type="email"]:disabled, +input[type="password"]:disabled, +input[type="text"]:disabled, +textarea:disabled { + background-color: var(--surface); +} + select { appearance: none; -webkit-appearance: none;