Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 500
Birmingham|26-ITP-May|Yonas Gebre|Sprint 1|Form Control#1264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
778e937304b08cc70d30f2f0ee3bf40935555ffbefa82cab31bcb7c1df00e2fa72d6c603ed0e7af88358c7cb4c2File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good job that you separated the CSS into its own file—that’s an excellent best practice and will make your code much easier to read, debug, and maintain as it grows. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| /* body style */ | ||
| input:valid{ | ||
| border:2px solid yellow; | ||
| } | ||
| input:invalid:not(:placeholder-shown){ | ||
| border:2px solid red; | ||
| } | ||
| body { | ||
| background-color: lightwhite; | ||
| max-width: 800px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| padding: 25px; | ||
| } | ||
| header h1 { | ||
| color: #2c3e50; | ||
| margin-bottom: 15px; | ||
| } | ||
| form { | ||
| background: skyblue; | ||
| padding: 30px; | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); | ||
| width: 100%; | ||
| max-width: 400px; | ||
| } | ||
| input:focus { | ||
| border-color: #3498db; | ||
| outline: none; | ||
| } | ||
| /* Labels and Inputs */ | ||
| label { | ||
| display: block; | ||
| margin-top: 15px; | ||
| margin-bottom: 5px; | ||
| font-weight: 600; | ||
| font-size: 0.9rem; | ||
| } | ||
| input[type="text"], | ||
| input[type="email"], | ||
| select,button { | ||
| align-items: right; | ||
| width: 100%; | ||
| padding: 10px; | ||
| border: 2px solid #ddd; | ||
| border-radius: 6px; | ||
| box-sizing: border-box; /* Ensures padding doesn't break width */ | ||
| transition: border-color 0.3s ease; | ||
| } | ||
| .radio { | ||
| display: flex; | ||
| align-items: center; | ||
| gap: 5px; | ||
| font-weight: normal; | ||
| } | ||
| #submit { | ||
| background-color: #3498db; | ||
| margin-top: 15px; | ||
| border: none; | ||
| cursor: pointer; | ||
| font-size: 1rem; | ||
| } | ||
| /* Footer */ | ||
| footer { | ||
| margin-top: 20px; | ||
| font-size: 0.8rem; | ||
| color:black; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are there changes in this file? How is it related to the task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, could you make it clear. Did you need more explanation about the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You commited some change to Form-Controls/README.md which I don't understand.