Skip to content

Instantly share code, notes, and snippets.

@vorpal56
Last active September 30, 2020 14:07
Show Gist options
  • Save vorpal56/cb5c3008d65212e97fd39ab20bad6d24 to your computer and use it in GitHub Desktop.
Save vorpal56/cb5c3008d65212e97fd39ab20bad6d24 to your computer and use it in GitHub Desktop.
Contact form without a server using Angular - Contact Component CSS
.hidden {
display: none
}
.visible {
display: block
}
.center-text {
text-align: center
}
form.contact {
display: flex;
flex-direction: column;
max-width: 200px;
width: 200px;
margin-left: auto;
margin-right: auto;
margin-top: 30px;
}
input,
button {
margin-bottom: 10px;
}
button {
margin-top: 10px;
background-color: transparent;
color: black;
border: 1px solid black;
padding: 4px 16px;
transition: 0.4s;
width: 100%;
margin-top: 10px;
}
button:hover:enabled{
color: white;
background-color: black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment