You are here

image-widget.css in Open Social 8.9

.form-type-managed-file .image-widget {
  margin-bottom: 1rem;
}

.form-type-managed-file .image-widget .preview img {
  width: 100%;
}

.form-type-managed-file .image-widget .image-widget-data {
  padding: 0.5rem 1rem;
  background-color: #f3f3f3;
}

.form-type-managed-file .image-widget + .help-block {
  margin-top: -0.875rem;
}

.btn--post-remove-image {
  position: absolute;
  top: -1px;
  right: -1px;
  background: rgba(0, 0, 0, 0.2);
  border: 0;
  padding: 0;
  transition: 0.3s background-color;
}

.btn--post-remove-image:hover {
  background: rgba(0, 0, 0, 0.8);
}

.btn--post-remove-image:hover .btn-icon {
  transform: rotate(90deg);
}

.btn--post-remove-image:focus {
  outline: none;
}

.btn--post-remove-image .btn-icon {
  fill: white;
  height: 32px;
  width: 32px;
  transition: 0.3s transform;
}

@media (min-width: 600px) {
  .form-type-managed-file .image-widget {
    display: flex;
  }
  .form-type-managed-file .image-widget .preview {
    flex: 0 0 auto;
  }
  .form-type-managed-file .image-widget .file--image {
    margin-bottom: 0.5rem;
  }
}

File

themes/socialbase/assets/css/image-widget.css
View source
  1. .form-type-managed-file .image-widget {
  2. margin-bottom: 1rem;
  3. }
  4. .form-type-managed-file .image-widget .preview img {
  5. width: 100%;
  6. }
  7. .form-type-managed-file .image-widget .image-widget-data {
  8. padding: 0.5rem 1rem;
  9. background-color: #f3f3f3;
  10. }
  11. .form-type-managed-file .image-widget + .help-block {
  12. margin-top: -0.875rem;
  13. }
  14. .btn--post-remove-image {
  15. position: absolute;
  16. top: -1px;
  17. right: -1px;
  18. background: rgba(0, 0, 0, 0.2);
  19. border: 0;
  20. padding: 0;
  21. transition: 0.3s background-color;
  22. }
  23. .btn--post-remove-image:hover {
  24. background: rgba(0, 0, 0, 0.8);
  25. }
  26. .btn--post-remove-image:hover .btn-icon {
  27. transform: rotate(90deg);
  28. }
  29. .btn--post-remove-image:focus {
  30. outline: none;
  31. }
  32. .btn--post-remove-image .btn-icon {
  33. fill: white;
  34. height: 32px;
  35. width: 32px;
  36. transition: 0.3s transform;
  37. }
  38. @media (min-width: 600px) {
  39. .form-type-managed-file .image-widget {
  40. display: flex;
  41. }
  42. .form-type-managed-file .image-widget .preview {
  43. flex: 0 0 auto;
  44. }
  45. .form-type-managed-file .image-widget .file--image {
  46. margin-bottom: 0.5rem;
  47. }
  48. }