Skip to content

Commit 3e3cf74

Browse files
committed
add styling to form
1 parent f086ffe commit 3e3cf74

File tree

2 files changed

+92
-2
lines changed

2 files changed

+92
-2
lines changed

css/forms.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,93 @@
152152
bottom: 100%;
153153
}
154154
}
155+
156+
/*James K Jose */
157+
.form-jkj form {
158+
margin:10% auto 0 auto;
159+
padding:30px;
160+
width:400px;
161+
height:auto;
162+
overflow:hidden;
163+
background:white;
164+
border-radius:10px;
165+
}
166+
167+
.form-jkj label {
168+
font-size:14px;
169+
color:darkgray;
170+
cursor:pointer;
171+
}
172+
173+
.form-jkj label,
174+
.form-jkj form input {
175+
float:left;
176+
clear:both;
177+
}
178+
179+
.form-jkj input {
180+
margin:15px 0;
181+
padding:15px 10px;
182+
width:100%;
183+
outline:none;
184+
border:1px solid #bbb;
185+
border-radius:20px;
186+
display:inline-block;
187+
-webkit-box-sizing:border-box;
188+
-moz-box-sizing:border-box;
189+
box-sizing:border-box;
190+
-webkit-transition:0.2s ease all;
191+
-moz-transition:0.2s ease all;
192+
-ms-transition:0.2s ease all;
193+
-o-transition:0.2s ease all;
194+
transition:0.2s ease all;
195+
}
196+
197+
.form-jkj input[type=text]:focus,
198+
.form-jkj input[type="password"]:focus {
199+
border-color:cornflowerblue;
200+
}
201+
202+
.form-jkj input[type=submit] {
203+
padding:15px 50px;
204+
width:auto;
205+
background:#1abc9c;
206+
border:none;
207+
color:white;
208+
cursor:pointer;
209+
display:inline-block;
210+
float:right;
211+
clear:right;
212+
-webkit-transition:0.2s ease all;
213+
-moz-transition:0.2s ease all;
214+
-ms-transition:0.2s ease all;
215+
-o-transition:0.2s ease all;
216+
transition:0.2s ease all;
217+
}
218+
219+
.form-jkj input[type=submit]:hover {
220+
opacity:0.8;
221+
}
222+
223+
.form-jkj input[type="submit"]:active {
224+
opacity:0.4;
225+
}
226+
227+
.forgot,
228+
.register {
229+
margin:10px;
230+
float:left;
231+
clear:left;
232+
display:inline-block;
233+
color:cornflowerblue;
234+
text-decoration:none;
235+
}
236+
237+
.forgot:hover,
238+
.register:hover {
239+
color:darkgray;
240+
}
241+
242+
.jkj {
243+
background-color: #f79533;
244+
}

pages/forms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ <h2>
9898
<div class="component">
9999
<div class="card magictime">
100100
<div class="card-title jkj">
101-
<strong>Pagination</strong>
101+
<strong>Form</strong>
102102
</div>
103103
<div class="card-content">
104104

105105
<div class="form-jkj">
106-
<form method="post" action="">
106+
<form>
107107
<label for="username">Username</label>
108108
<input type="text" id="username" name="username" placeholder="Type in your username.." autocomplete="off" required />
109109

0 commit comments

Comments
 (0)