style.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. .preview-list {
  2. display: flex;
  3. flex-wrap: wrap;
  4. }
  5. .preview {
  6. display: flex;
  7. flex-direction: column;
  8. min-width: 250px;
  9. max-width: 400px;
  10. flex: 1 1 300px;
  11. border: 1px solid var(--color-border);
  12. padding: 10px;
  13. border-radius: var(--border-radius);
  14. transition: all 200ms ease-in-out;
  15. filter: drop-shadow(0 1px 2px var(--color-box-shadow));
  16. background-color: var(--color-main-background);
  17. opacity: 0.9;
  18. margin: 10px;
  19. position: relative;
  20. &,
  21. * {
  22. cursor: pointer;
  23. user-select: none;
  24. }
  25. &:hover,
  26. &:focus,
  27. &.selected {
  28. filter: drop-shadow(0 1px 4px var(--color-box-shadow));
  29. opacity: 1;
  30. }
  31. .preview-image {
  32. height: 200px;
  33. background-position: top left;
  34. background-size: cover;
  35. background-repeat: no-repeat;
  36. }
  37. h3 {
  38. display: flex;
  39. justify-content: space-between;
  40. line-height: 1em;
  41. align-items: center;
  42. }
  43. p {
  44. text-align: justify;
  45. }
  46. .icon-checkmark-color {
  47. transition: all 100ms ease-in-out;
  48. border-radius: 1em;
  49. padding: 4px 5px 4px 20px;
  50. background-position: 4px center;
  51. opacity: 0;
  52. visibility: hidden;
  53. }
  54. &.selected .icon-checkmark-color {
  55. opacity: 1;
  56. visibility: visible;
  57. box-shadow: 0 0 0 1px var(--color-success);
  58. }
  59. }