You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

upload_images.css 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. [data-target="upload-images.input"] {
  2. width: 0.1px;
  3. height: 0.1px;
  4. opacity: 0;
  5. overflow: hidden;
  6. position: absolute;
  7. z-index: -1;
  8. }
  9. [data-target="upload-images.input"] + label {
  10. font-size: 1.25em;
  11. font-weight: 700;
  12. color: white;
  13. background-color: black;
  14. display: inline-block;
  15. padding: 1rem;
  16. }
  17. [data-target="upload-images.input"]:focus + label,
  18. [data-target="upload-images.input"] + label:hover {
  19. background-color: red;
  20. }
  21. [data-target="upload-images.input"] + label {
  22. cursor: pointer; /* "hand" cursor */
  23. }
  24. [data-target="upload-images.input"]:focus + label {
  25. outline: thin dotted;
  26. outline: -webkit-focus-ring-color auto 5px;
  27. }
  28. [data-target="upload-images.input"]:focus-within + label {
  29. outline: thin dotted;
  30. outline: -webkit-focus-ring-color auto 5px;
  31. }
  32. [data-target="upload-images.input"] + label * {
  33. pointer-events: none;
  34. }
  35. [data-target="upload-images.output"] img {
  36. max-width: 30rem;
  37. }
  38. [data-target="upload-images.output"].oversized {
  39. background: red;
  40. height: 4rem;
  41. padding: 1rem 2rem;
  42. }
  43. [data-target="upload-images.dropzone"] {
  44. border: 5px solid black;
  45. margin: 2rem auto;
  46. min-width: 30rem;
  47. }
  48. [data-target="upload-images.dropzone"].hidden {
  49. display: none;
  50. }
  51. [data-target="upload-images.dropzone"]:hover,
  52. [data-target="upload-images.dropzone"].active {
  53. border-color: red;
  54. cursor: pointer; /* "hand" cursor */
  55. }
  56. [data-target="upload-images.submit"] {
  57. width: 30rem;
  58. font-size: 2rem;
  59. }