Skip to content

Commit cbf9db4

Browse files
Merge pull request #222 from Web-Dev-Path/fix/contact-form-message-position
Fixing contact form message position desktop and mobile
2 parents 57eb7e2 + 779e484 commit cbf9db4

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
136136
- Fixed search funcitionality on blog page
137137
- Fixed dev.to images not showing due to them changing image host
138138
- Fixed styling issue on nav links
139+
- Fixed contact form message position

styles/pages/contactStyles.js

+4-12
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,14 @@ const YellowColon = styled.img`
100100
`;
101101

102102
const ResponseMessage = styled.div`
103-
position: absolute;
104-
right: 8%;
103+
position: unset;
105104
bottom: -5%;
106-
margin: auto;
105+
padding: 0 2rem;
107106
108107
${props => css`
109-
@media (min-width: ${props.theme.breakpoints.mobile}) {
110-
position: unset;
108+
@media (min-width: ${props.theme.breakpoints.tablet}) {
109+
position: absolute;
111110
margin-top: 1rem;
112-
padding: 0 2rem;
113-
}
114-
`}
115-
116-
${props => css`
117-
@media (min-width: ${props.theme.breakpoints.smMobile}) {
118-
max-width: fit-content;
119111
}
120112
`}
121113
`;

0 commit comments

Comments
 (0)