_expandable.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .expandable {
  2. --expandable-shadow-start: 50%;
  3. position: relative;
  4. height: 35rem;
  5. overflow: hidden;
  6. background: repeat-x top center;
  7. &:after {
  8. content: '';
  9. position: absolute;
  10. top: 0;
  11. left: 0;
  12. right: 0;
  13. bottom: 0;
  14. z-index: 1;
  15. background: linear-gradient(to bottom, rgba(var(--section-bg-rgb), 0) var(--expandable-shadow-start), rgba(var(--section-bg-rgb), 1) 100%);
  16. pointer-events: none;
  17. }
  18. &:hover {
  19. .expandable-hover {
  20. opacity: 1;
  21. }
  22. }
  23. }
  24. .expandable-hover {
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. right: 0;
  29. bottom: 0;
  30. backdrop-filter: blur(4px);
  31. opacity: 0;
  32. transition: $transition-duration opacity;
  33. }
  34. .expandable-lg {
  35. height: 50rem;
  36. }
  37. .expandable-emails {
  38. --expandable-shadow-start: 50%;
  39. background-image: url(../public/img/tabler-emails/emails-bg.png);
  40. background-size: 2176px auto;
  41. background-repeat: no-repeat;
  42. @include media-retina {
  43. background-image: url(../public/img/tabler-emails/emails-bg.png);
  44. }
  45. @include media-breakpoint-down(lg) {
  46. background-size: (2176px / 2) auto;
  47. height: 20rem;
  48. }
  49. }