File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ <h1 class="main__title">We are the Champions</h1>
24
24
< label for ="message-input " class ="sr-only "> Enter Your Endorsement:</ label >
25
25
< textarea type ="text " rows ="4 " name ="message " id ="message-input " class ="form__message " placeholder ="Write your endorsement here " required > </ textarea >
26
26
27
- < label for ="from-input " class ="sr-only "> From:</ label >
28
- < input type ="text " name ="from " id ="from-input " class ="form__name " placeholder ="From " required >
27
+ < div class ="form__names ">
28
+ < label for ="from-input " class ="sr-only "> From:</ label >
29
+ < input type ="text " name ="from " id ="from-input " class ="form__name " placeholder ="From " required >
29
30
30
- < label for ="to-input " class ="sr-only "> To:</ label >
31
- < input type ="text " name ="to " id ="to-input " class ="form__name " placeholder ="To " required >
31
+ < label for ="to-input " class ="sr-only "> To:</ label >
32
+ < input type ="text " name ="to " id ="to-input " class ="form__name " placeholder ="To " required >
33
+ </ div >
32
34
33
35
< button type ="submit " class ="form__btn "> Publish</ button >
34
36
</ form >
Original file line number Diff line number Diff line change @@ -140,25 +140,53 @@ h1, h2 {
140
140
}
141
141
142
142
/* Form section */
143
+ .form ,
144
+ .form__names {
145
+ display : grid;
146
+ gap : 0.7rem ;
147
+ }
148
+
143
149
.form__message ,
144
150
.form__name {
145
151
background-color : var (--clr-input-bg );
146
152
color : var (--clr-white );
147
153
border-radius : var (--border-radius );
148
154
border : none;
155
+ padding : 0.7rem 1rem ;
156
+ width : 100% ;
149
157
}
150
158
151
159
.form__message ::placeholder ,
152
160
.form__name ::placeholder {
153
161
color : var (--clr-placeholder );
154
162
}
155
163
164
+ .form__message : focus ,
165
+ .form__name : focus {
166
+ outline : 0.15em solid var (--clr-white );
167
+ }
168
+
169
+ .form__names {
170
+ grid-template-columns : 1fr 1fr ;
171
+ }
172
+
173
+ .form__name {
174
+ text-align : center;
175
+ }
176
+
156
177
.form__btn {
157
178
font-family : var (--ff-title ), Arial, Helvetica, sans-serif;
158
179
font-weight : 700 ;
159
180
background-color : var (--clr-btn-bg );
160
181
border : none;
161
182
border-radius : var (--border-radius );
183
+ padding : 0.8rem ;
184
+ font-size : 1.3rem ;
185
+ }
186
+
187
+ .form__btn : focus {
188
+ outline : 0.2em solid var (--clr-btn-bg );
189
+ outline-offset : 0.15em ;
162
190
}
163
191
164
192
/* Endorsements section */
You can’t perform that action at this time.
0 commit comments