diff options
| author | jackyzha0 <[email protected]> | 2020-05-10 11:48:31 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-10 11:48:31 -0700 |
| commit | 7a3ca8a956468db1e3a66b4f0ec3beb8ad0b81f3 (patch) | |
| tree | bab2b3aaa18a53aca30e805e1f9e91435a181d3c /frontend/src/css | |
| parent | input length check and component splitting (diff) | |
| download | ctrl-v-7a3ca8a956468db1e3a66b4f0ec3beb8ad0b81f3.tar.xz ctrl-v-7a3ca8a956468db1e3a66b4f0ec3beb8ad0b81f3.zip | |
add focus opacity change, password input
Diffstat (limited to 'frontend/src/css')
| -rw-r--r-- | frontend/src/css/index.css | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/frontend/src/css/index.css b/frontend/src/css/index.css index 902a096..720b736 100644 --- a/frontend/src/css/index.css +++ b/frontend/src/css/index.css @@ -14,19 +14,39 @@ form { width: 100%; } -textarea, input[type=text] { +textarea, input[type=text], input[type=password] { width: 100%; font-family: 'Roboto Mono', monospace; font-size: 0.8em; - padding: 0.8em; + padding: calc(0.8em - 1px); border-radius: 3px; border: 1px solid #565656; outline: none; - margin: 1.2em 0; + margin: 1.7em 0; +} + +textarea, input[type=text], input[type=password] { + opacity: 0.5; + transition: opacity 0.5s cubic-bezier(.25,.8,.25,1); +} + +textarea:focus, input[type=text]:focus, input[type=password]:focus { + opacity: 1; +} + +.passwordInput { + transform: translateY(-1.6em); +} + +input[type=password] { + margin-top: 0 !important; + font-weight: 700; } textarea { height: 50vh; + resize: vertical; + min-height: 2em; } a { @@ -38,9 +58,6 @@ input[type=submit] { font-weight: 700; color: #faf9f5; background-color: #111111; - padding: 0.75em 2em; -} - -input[type=submit]:focus { + padding: 0.8em 2em; outline: 0; }
\ No newline at end of file |