Skip to content

Instantly share code, notes, and snippets.

@jsmanifest
Created June 16, 2019 17:46
Show Gist options
  • Save jsmanifest/69acf8481db28e7ecab9035e59c14d56 to your computer and use it in GitHub Desktop.
Save jsmanifest/69acf8481db28e7ecab9035e59c14d56 to your computer and use it in GitHub Desktop.
.form {
max-width: 400px;
margin: auto;
}
.uploader {
display: flex;
justify-content: center;
flex-direction: column;
width: 100%;
box-sizing: border-box;
}
.uploader-input {
position: relative;
transition: all 3s ease-out;
box-sizing: border-box;
width: 100%;
height: 150px;
border: 1px solid rgb(194, 92, 67);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.uploader-input:hover {
filter: brightness(100%) contrast(90%);
border: 1px solid rgb(223, 80, 44);
}
.uploader-input:active {
filter: brightness(70%);
}
.uploader-input-content {
color: #fff;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.uploader-overlay {
transition: all 2s ease-out;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
background-size: cover;
}
.uploader-overlay:hover {
filter: brightness(75%);
}
.uploader-overlay:active {
filter: brightness(40%);
}
.cursor-pointer {
cursor: pointer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment