Guest User

Untitled

a guest
May 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. $video-total-margin: 96px;
  2. $overlay-bg-color: #000;
  3. $close-button-bg-color: #333;
  4.  
  5. .video-overlay {
  6. background-color: $overlay-bg-color;
  7. display: flex;
  8. height: 100%;
  9. left: 0;
  10. opacity: 0;
  11. padding: 0 48px;
  12. pointer-events: none;
  13. position: fixed;
  14. top: 0;
  15. transform: scale(.94);
  16. width: 100%;
  17. z-index: 101;
  18.  
  19. &.is-open {
  20. opacity: 1;
  21. pointer-events: auto;
  22. transform: scale(1);
  23. transition: transform .3s ease, opacity .3s ease;
  24. }
  25. }
  26.  
  27. .video-wrapper {
  28. height: calc((9 / 16) * 100vw - #{$video-total-margin});
  29. margin: auto;
  30. position: relative;
  31. width: calc(100vw - #{$video-total-margin});
  32.  
  33. iframe {
  34. height: 100%;
  35. left: 0;
  36. position: absolute;
  37. right: 0;
  38. width: 100%;
  39. }
  40.  
  41. @media (min-aspect-ratio: 16 / 9) {
  42. height: calc(100vh - #{$video-total-margin});
  43. width: calc((16 / 9) * 100vh - #{$video-total-margin});
  44. }
  45. }
  46.  
  47. .video-close {
  48. align-items: center;
  49. background-color: $close-button-bg-color;
  50. border: 0;
  51. display: flex;
  52. height: 48px;
  53. justify-content: center;
  54. padding: 0;
  55. position: absolute;
  56. right: 0;
  57. top: 0;
  58. width: 48px;
  59.  
  60. .h-c-icon {
  61. fill: white;
  62. }
  63. }
Add Comment
Please, Sign In to add comment