Simple and beautiful contact form. Useful and easy to modify.
Created
July 21, 2018 11:36
-
-
Save getMBP/92f8be0cbc5ab1310fb368d9279a7944 to your computer and use it in GitHub Desktop.
MINIMALISTIC FORM
This file contains hidden or 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
| <header>MINIMALISTIC FORM</header> | |
| <form id="form" class="topBefore"> | |
| <input id="name" type="text" placeholder="NAME"> | |
| <input id="email" type="text" placeholder="E-MAIL"> | |
| <textarea id="message" type="text" placeholder="MESSAGE"></textarea> | |
| <input id="submit" type="submit" value="GO!"> | |
| </form> |
This file contains hidden or 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
| /* | |
| Minimalistic Form. | |
| by: Matheus Marsiglio | |
| matmarsiglio@gmail.com | |
| */ |
This file contains hidden or 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
| <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/js/bootstrap.min.js"></script> |
This file contains hidden or 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
| @import url(https://fonts.googleapis.com/css?family=Lato:100,300,400); | |
| input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { | |
| color: #aca49c; | |
| font-size: 0.875em; | |
| } | |
| input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder { | |
| color: #bbb5af; | |
| } | |
| input::-moz-placeholder, textarea::-moz-placeholder { | |
| color: #aca49c; | |
| font-size: 0.875em; | |
| } | |
| input:focus::-moz-placeholder, textarea:focus::-moz-placeholder { | |
| color: #bbb5af; | |
| } | |
| input::placeholder, textarea::placeholder { | |
| color: #aca49c; | |
| font-size: 0.875em; | |
| } | |
| input:focus::placeholder, textarea::focus:placeholder { | |
| color: #bbb5af; | |
| } | |
| input::-ms-placeholder, textarea::-ms-placeholder { | |
| color: #aca49c; | |
| font-size: 0.875em; | |
| } | |
| input:focus::-ms-placeholder, textarea:focus::-ms-placeholder { | |
| color: #bbb5af; | |
| } | |
| /* on hover placeholder */ | |
| input:hover::-webkit-input-placeholder, textarea:hover::-webkit-input-placeholder { | |
| color: #e2dedb; | |
| font-size: 0.875em; | |
| } | |
| input:hover:focus::-webkit-input-placeholder, textarea:hover:focus::-webkit-input-placeholder { | |
| color: #cbc6c1; | |
| } | |
| input:hover::-moz-placeholder, textarea:hover::-moz-placeholder { | |
| color: #e2dedb; | |
| font-size: 0.875em; | |
| } | |
| input:hover:focus::-moz-placeholder, textarea:hover:focus::-moz-placeholder { | |
| color: #cbc6c1; | |
| } | |
| input:hover::placeholder, textarea:hover::placeholder { | |
| color: #e2dedb; | |
| font-size: 0.875em; | |
| } | |
| input:hover:focus::placeholder, textarea:hover:focus::placeholder { | |
| color: #cbc6c1; | |
| } | |
| input:hover::placeholder, textarea:hover::placeholder { | |
| color: #e2dedb; | |
| font-size: 0.875em; | |
| } | |
| input:hover:focus::-ms-placeholder, textarea:hover::focus:-ms-placeholder { | |
| color: #cbc6c1; | |
| } | |
| body { | |
| font-family: 'Lato', sans-serif; | |
| background: #e2dedb; | |
| color: #b3aca7; | |
| } | |
| header { | |
| position: relative; | |
| margin: 100px 0 25px 0; | |
| font-size: 2.3em; | |
| text-align: center; | |
| letter-spacing: 7px; | |
| } | |
| #form { | |
| position: relative; | |
| width: 500px; | |
| margin: 50px auto 100px auto; | |
| } | |
| input { | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.875em; | |
| width: 470px; | |
| height: 50px; | |
| padding: 0px 15px 0px 15px; | |
| background: transparent; | |
| outline: none; | |
| color: #726659; | |
| border: solid 1px #b3aca7; | |
| border-bottom: none; | |
| transition: all 0.3s ease-in-out; | |
| -webkit-transition: all 0.3s ease-in-out; | |
| -moz-transition: all 0.3s ease-in-out; | |
| -ms-transition: all 0.3s ease-in-out; | |
| } | |
| input:hover { | |
| background: #b3aca7; | |
| color: #e2dedb; | |
| } | |
| textarea { | |
| width: 470px; | |
| max-width: 470px; | |
| height: 110px; | |
| max-height: 110px; | |
| padding: 15px; | |
| background: transparent; | |
| outline: none; | |
| color: #726659; | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.875em; | |
| border: solid 1px #b3aca7; | |
| transition: all 0.3s ease-in-out; | |
| -webkit-transition: all 0.3s ease-in-out; | |
| -moz-transition: all 0.3s ease-in-out; | |
| -ms-transition: all 0.3s ease-in-out; | |
| } | |
| textarea:hover { | |
| background: #b3aca7; | |
| color: #e2dedb; | |
| } | |
| #submit { | |
| width: 502px; | |
| padding: 0; | |
| margin: -5px 0px 0px 0px; | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.875em; | |
| color: #b3aca7; | |
| outline:none; | |
| cursor: pointer; | |
| border: solid 1px #b3aca7; | |
| border-top: none; | |
| } | |
| #submit:hover { | |
| color: #e2dedb; | |
| } |
This file contains hidden or 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
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment