From 3952d31273024dc80cb2b7bc37c2e488c83a86c4 Mon Sep 17 00:00:00 2001 From: ganstacoder Date: Fri, 8 Sep 2023 18:20:22 -0700 Subject: [PATCH] form_validator/style.css --- form_validator/style.css | 98 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 form_validator/style.css diff --git a/form_validator/style.css b/form_validator/style.css new file mode 100644 index 0000000..45549d1 --- /dev/null +++ b/form_validator/style.css @@ -0,0 +1,98 @@ +@import url('https://fonts.googleapis.com/css2?family=Sen&display=swap'); + +html { + box-sizing: border-box; +} + +body { + margin: 0; + min-height: 100vh; + font-family: Sen, sans-serif; + letter-spacing: 2px; + display: flex; + align-items: center; + justify-content: center; + background: #c9ced3; + +} + +.container { + width: 480px; + height: 630px; + background: white; + display: flex; + flex-direction: column; + align-items: center; + border-radius: 10px; + box-shadow: 0 5px 30px 10px rgba(0, 0, 0, 0.4); +} + +/* Form */ +form { + width: 90%; +} + +.form-group { + height: 65px; + +} + +label { + position: relative; + bottom: 3px; +} + +input { + width: 100%; + height: 34px; + padding: 5px; + border: 1px solid black; + border-radius: 5px; + outline: none; + box-sizing: border-box; + transition: all 0.3s; +} + +input:valid { + border: 1px solid green; + +} + +input:invalid { + border: 1px solid red; +} + +button { + cursor: pointer; + color: white; + background: black; + border: none; + border-radius: 5px; + height: 50px; + width: 100%; + font-family: Sen, sans-serif; + font-size: 20px; + letter-spacing: 2px; + margin-top: 5px; +} + +button:hover { + filter: brightness(200%); + background: rgba(22, 22, 22); + +} + +button:focus { + outline: none; +} + +.message-container { + + border: 1px solid black; + border-radius: 5px; + width: 90%; + margin-top: 20px; + display: flex; + justify-content: center; + color: black; +} \ No newline at end of file