simple file input with dropzone

by Spencer Smith

HTML

<input type="file" class="q3d-file"/>
<div>
</div>

CSS

.q3d-file {
  padding: 30px;
  background-color: whitesmoke;
  border: 2px dashed lightgray;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0;
  transition: 0.15s all;
  display: flex;
  gap: 10px;
  width: 400px;
}
.q3d-file:hover {
  background-color: #eee;
}

.q3d-file::file-selector-button {
  background-color: dodgerblue;
  padding: 6px 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  transition: 0.15s all;
  align-self: center;
}
.q3d-file:hover::file-selector-button {
  background-color: #1988f3;
}
.q3d-file::before {
  content: "Drag and drop 3D model file here (or)";
  font-size: 1rem;
  padding-bottom: 15px;
  opacity: 0.8;
}