diff --git a/templates/standalone/inputs.lucius b/templates/standalone/inputs.lucius index 5f9d90206..53b20b9cd 100644 --- a/templates/standalone/inputs.lucius +++ b/templates/standalone/inputs.lucius @@ -87,6 +87,25 @@ input[type*="time"] { font-family: var(--font-base); line-height: 1.5; padding: 4px 13px; + + &:focus { + border-color: #3273dc; + box-shadow: 0 0 0 0.125em rgba(50,115,220,.25); + outline: 0; + } + + &[disabled] { + background-color: #f5f5f5; + color: #7a7a7a; + box-shadow: none; + border-color: #dbdbdb; + } + + &[readonly] { + background-color: #f5f5f5; + box-shadow: none; + border-color: #dbdbdb; + } } input[type="number"] { @@ -100,19 +119,6 @@ input[type*="time"], width: 250px; } -input[type="text"]:focus, -input[type="password"]:focus, -input[type="url"]:focus, -input[type="number"]:focus, -input[type="email"]:focus { - /* border-bottom-color: var(--color-light); - background-color: transparent; - box-shadow: 0 0 13px var(--color-lighter); */ - border-color: #3273dc; - box-shadow: 0 0 0 0.125em rgba(50,115,220,.25); - outline: 0; -} - /* BUTTON STYLE SEE default-layout.lucius */ /* TEXTAREAS */ @@ -132,12 +138,25 @@ textarea { border-radius: 2px; box-shadow: inset 0 1px 2px 1px rgba(50,50,50,.05); vertical-align: top; -} -textarea:focus { - border-color: #3273dc; - box-shadow: 0 0 0 0.125em rgba(50,115,220,.25); - outline: 0; + &:focus { + border-color: #3273dc; + box-shadow: 0 0 0 0.125em rgba(50,115,220,.25); + outline: 0; + } + + &[disabled] { + background-color: #f3f3f3; + color: #7a7a7a; + box-shadow: none; + border-color: #dbdbdb; + } + + &[readonly] { + background-color: #f5f5f5; + box-shadow: none; + border-color: #dbdbdb; + } } /* OPTIONS */