This repository has been archived by the owner on Dec 3, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Contact form styles #627
Merged
Merged
Contact form styles #627
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
be136fb
Adding styles for contact form
5f67e86
Adding class for the "optional" text in a label
ba1de6b
Positioning select arrow from the right
8d3391e
Coloring question bubble icon for rad contact form
0e2a834
Moving to form-styles
b58b360
Updating class names
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.contact-form { | ||
padding: u(2rem); | ||
|
||
.contact-form__element { | ||
padding: u(1rem 0); | ||
} | ||
|
||
textarea { | ||
height: u(15rem); | ||
} | ||
|
||
.tt-input { | ||
@include u-icon-bg($magnifying-glass-arrow, $gray-dark); | ||
background-position: right 10px top 50%; | ||
} | ||
|
||
.hr--soft { | ||
border: 1px solid $gray; | ||
display: block; | ||
margin: u(2rem 0 2rem); | ||
} | ||
|
||
.hr--hard { | ||
border: 1px solid $gray-dark; | ||
display: block; | ||
margin-top: u(2rem); | ||
} | ||
|
||
.contact-form__reset { | ||
display: block; | ||
padding-top: u(2rem); | ||
} | ||
|
||
@include media($med) { | ||
@include span-columns(9); | ||
padding: u(4rem 0); | ||
|
||
.contact-form__element { | ||
@include span-columns(7 of 10); | ||
@include shift(1); | ||
} | ||
|
||
input, | ||
select { | ||
@include span-columns(6 of 7); | ||
} | ||
|
||
.tt-input { | ||
width: 100%; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just kind of a minor nitpick, but I think the hr naming convention might make more sense to follow the color variables, so like
.hr
and.hr--dark
(and.hr--light
if using$gray-light
). What do you think?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.
Good call.