SASS Inputs HW
Popcorn Hack (In-Class)
Refactored Changes:
- Replaced
style="width: 400px; border: 3px dashed purple;"withclass="ocs_input large gradient"(large, gradient-styled input). - Replaced the made-up
class="box"withclass="ocs_input small"(compact plain input).
Popcorn Hack (In-Class)
Challenge
Replace the inline styling and made-up class with the OCS input grammar: one large, gradient-styled input and one compact plain input, both using ocs_input.
Lines: 1
Characters: 0
UI Output
Homework Hack
Refactored Changes (Matching the 0.8-Point Rubric):
- Input 1 (
Assistance Category): Removedstyle="width: 500px; background: linear-gradient(to right, pink, purple);"and replaced it withclass="ocs_input large gradient"(0.4input grammar +0.3style modifier)[cite: 4]. - Input 2 (
Volunteer First Name): Removed the made-upclass="tinybox"and replaced it withclass="ocs_input small"(0.4input grammar)[cite: 4]. - Input 3 (
Volunteer Email): Removedstyle="padding: 6px;"and addedclass="ocs_input medium"while keepingtype="email"(0.4input grammar)[cite: 4]. - Accessibility (
0.1points): Kept clearplaceholderattributes on all three inputs[cite: 4].
Homework Hack
Challenge
Refactor the signup form by removing all inline styles and made-up classes, using ocs_input with appropriate size and style modifiers.
Lines: 1
Characters: 0
UI Output