Advertisement
oscarviedma

Código CSS Estilos Carrusel Popup Shorts - CSY

Aug 3rd, 2024
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.14 KB | None | 0 0
  1. /* Estilos Carrusel Popup Shorts */
  2. .ov-swiper-shorts .ov-play-button {
  3.   position: absolute;
  4.   top: 50%;
  5.   left: 50%;
  6.   transform: translate(-50%, -50%);
  7.   width: 50px;
  8.   height: 50px;
  9.   background-color: rgba(255, 255, 255, 0.7);
  10.   border-radius: 50%;
  11.   display: flex;
  12.   justify-content: center;
  13.   align-items: center;
  14.   transition: transform 0.3s ease-out, opacity 0.2s ease-out;
  15. }
  16. .ov-swiper-shorts .ov-play-button:before {
  17.   content: '';
  18.   width: 0;
  19.   height: 0;
  20.   border-top: 10px solid transparent;
  21.   border-bottom: 10px solid transparent;
  22.   border-left: 15px solid #000;
  23.   margin-left: 5px;
  24. }
  25.  
  26. .ov-swiper-shorts .swiper-slide:hover .ov-play-button {
  27.   transform: translate(-50%, -50%) scale(1.3);
  28. }
  29.  
  30. .ov-swiper-shorts .popup {
  31.   display: none;
  32.   position: fixed;
  33.   top: 0;
  34.   left: 0;
  35.   width: 100%;
  36.   height: 100%;
  37.   background-color: rgba(0, 0, 0, 0.9);
  38.   z-index: 1000;
  39. }
  40. .ov-swiper-shorts .popup-content {
  41.   position: absolute;
  42.   top: 50%;
  43.   left: 50%;
  44.   transform: translate(-50%, -50%);
  45.   width: auto;
  46.   height: 100%;
  47.   max-height: 760px;
  48.   max-width: 90vw;
  49.   aspect-ratio: 9 / 16;
  50. }
  51. .ov-swiper-shorts .popup-video {
  52.   width: 100%;
  53.   height: 100%;
  54.   border-radius: 16px;
  55. }
  56. .ov-swiper-shorts .popup-close,
  57. .ov-swiper-shorts .popup-prev,
  58. .ov-swiper-shorts .popup-next {
  59.   position: absolute;
  60.   background-color: rgba(255, 255, 255, 1);
  61.   color: #000;
  62.   font-family: "ETMODULES";
  63.   font-size: 24px;
  64.   border-radius: 50%;
  65.   width: 40px;
  66.   height: 40px;
  67.   display: flex;
  68.   justify-content: center;
  69.   align-items: center;
  70.   cursor: pointer;
  71. }
  72. .ov-swiper-shorts .popup-close {
  73.   top: 10px;
  74.   right: 10px;
  75. }
  76. .ov-swiper-shorts .popup-close:before {
  77.   content: '\4d';
  78. }
  79. .ov-swiper-shorts .popup-prev {
  80.   top: 50%;
  81.   left: -70px;
  82. }
  83. .ov-swiper-shorts .popup-prev:before {
  84.   content: '\34';
  85. }
  86. .ov-swiper-shorts .popup-next {
  87.   top: 50%;
  88.   right: -70px;
  89. }
  90. .ov-swiper-shorts .popup-next:before {
  91.   content: '\35';
  92. }
  93.  
  94. .ov-swiper-shorts .swiper-button-next,
  95. .ov-swiper-shorts .swiper-button-prev {
  96.   background-color: rgba(3, 12, 38, 0.9);
  97.   border: 1px solid rgba(255, 255, 255, 0.2);
  98.   border-radius: 50%;
  99.   width: 40px;
  100.   height: 40px;
  101.   font-size: 14px;
  102.   background-image: none;
  103. }
  104. .ov-swiper-shorts .swiper-button-next {
  105.   right: -20px;
  106.   top: -215px;
  107. }
  108. .ov-swiper-shorts .swiper-button-prev {
  109.   left: -20px;
  110.   top: -215px;
  111. }
  112.  
  113. .ov-swiper-shorts .swiper-button-next::after,
  114. .ov-swiper-shorts .swiper-button-prev::after {
  115.   font-size: 14px;
  116.   color: white;
  117. }
  118.  
  119. .ov-swiper-shorts .swiper-button-next.swiper-button-disabled,
  120. .ov-swiper-shorts .swiper-button-prev.swiper-button-disabled {
  121.     opacity: .35;
  122.     cursor: auto;
  123.     pointer-events: none;
  124. }
  125.  
  126. @media only screen and (max-width: 768px) {
  127.   .ov-swiper-shorts .popup-content {
  128.     max-height: 580px;
  129.     }
  130.   .ov-swiper-shorts .swiper-button-next,
  131.   .ov-swiper-shorts .swiper-button-prev {
  132.     top: -177px;
  133.   }
  134.   .ov-swiper-shorts .popup-prev {
  135.     left: 10px;
  136.   }
  137.   .ov-swiper-shorts .popup-next {
  138.     right: 10px;
  139.   }
  140. }
  141.  
  142. /* Enviar footer atras */
  143. .et-l--footer .et_builder_inner_content {
  144.   z-index: 0 !important;
  145. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement