Skip to content

Commit f4aa1b6

Browse files
committed
refactor form sass
1 parent 03563ff commit f4aa1b6

File tree

2 files changed

+32
-35
lines changed

2 files changed

+32
-35
lines changed

Diff for: source/stylesheets/_form.sass

+28-35
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,46 @@
11
form
22

33
textarea
4-
margin-bottom: 15px
5-
padding: 10px
4+
width: 100%
5+
6+
input[type=text],
7+
input[type=email],
8+
input[type=submit],
9+
textarea
610
border: 2px solid $light-gray
7-
-webkit-border-radius: 5px
811
border-radius: 5px
9-
width: 100%
10-
@include respond(small)
11-
width: 90%
12+
-webkit-border-radius: 5px
13+
margin-bottom: 15px
14+
padding: 10px
15+
1216
&:focus
1317
border-color: $accent
1418
outline: 0
1519

16-
input
17-
&[type=text],
18-
&[type=email],
19-
margin-bottom: 15px
20-
padding: 10px
21-
border: 2px solid $light-gray
22-
-webkit-border-radius: 5px
23-
border-radius: 5px
24-
&:focus
25-
border-color: $accent
26-
outline: 0
27-
&[type=submit]
28-
padding: 5px 15px
29-
background: $white
30-
border: 2px solid $light-gray
31-
cursor: pointer
32-
-webkit-border-radius: 5px
33-
border-radius: 5px
34-
&:hover
35-
background: $light-accent
36-
border-color: $accent
37-
&:active
38-
background: $accent
39-
outline: 0
20+
input[type=submit]
21+
background: $white
22+
cursor: pointer
23+
padding: 5px 15px
24+
25+
&:hover
26+
background: $light-accent
27+
border-color: $accent
28+
29+
&:active
30+
background: $accent
31+
outline: 0
32+
4033
.form-input
34+
4135
input
4236
float: left
37+
4338
.error-message
39+
display: none
4440
float: left
4541
padding: 12px 20px
46-
display: none
42+
4743
&.error
4844
.error-message
49-
display: inline-block
5045
color: $accent
51-
52-
.asterisk
53-
color: $accent
46+
display: inline-block

Diff for: source/stylesheets/_responsive.sass

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
margin-right: 5px
1111

1212
@include respond(small)
13+
form
14+
textarea
15+
width: 90%
16+
1317
.content
1418
padding: 20px
1519

0 commit comments

Comments
 (0)