| 1 |
/** |
| 2 |
* Yatra Video Player Module Styles |
| 3 |
* Reusable video player styling |
| 4 |
* |
| 5 |
* @package Yatra |
| 6 |
* @version 1.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
/* Video Player Modal */ |
| 10 |
.yatra-video-player-modal { |
| 11 |
position: fixed !important; |
| 12 |
top: 0 !important; |
| 13 |
left: 0 !important; |
| 14 |
right: 0 !important; |
| 15 |
bottom: 0 !important; |
| 16 |
z-index: 99999 !important; |
| 17 |
align-items: center !important; |
| 18 |
justify-content: center !important; |
| 19 |
animation: yatraVideoFadeIn 0.3s ease; |
| 20 |
} |
| 21 |
|
| 22 |
.yatra-video-player-modal[style*="display: flex"] { |
| 23 |
display: flex !important; |
| 24 |
} |
| 25 |
|
| 26 |
@keyframes yatraVideoFadeIn { |
| 27 |
from { |
| 28 |
opacity: 0; |
| 29 |
} |
| 30 |
to { |
| 31 |
opacity: 1; |
| 32 |
} |
| 33 |
} |
| 34 |
|
| 35 |
.yatra-video-player-overlay { |
| 36 |
position: absolute !important; |
| 37 |
top: 0 !important; |
| 38 |
left: 0 !important; |
| 39 |
right: 0 !important; |
| 40 |
bottom: 0 !important; |
| 41 |
background: rgba(0, 0, 0, 0.95) !important; |
| 42 |
cursor: pointer !important; |
| 43 |
z-index: 1 !important; |
| 44 |
} |
| 45 |
|
| 46 |
.yatra-video-player-content { |
| 47 |
position: relative !important; |
| 48 |
width: 90% !important; |
| 49 |
max-width: 1200px !important; |
| 50 |
height: 80vh !important; |
| 51 |
max-height: 675px !important; /* 16:9 of 1200px width */ |
| 52 |
z-index: 2 !important; |
| 53 |
} |
| 54 |
|
| 55 |
.yatra-video-player-close { |
| 56 |
position: absolute !important; |
| 57 |
top: 16px !important; |
| 58 |
right: 16px !important; |
| 59 |
background: rgba(255, 255, 255, 0.2) !important; |
| 60 |
border: 2px solid rgba(255, 255, 255, 0.4) !important; |
| 61 |
color: white !important; |
| 62 |
width: 44px !important; |
| 63 |
height: 44px !important; |
| 64 |
border-radius: 50% !important; |
| 65 |
cursor: pointer !important; |
| 66 |
display: flex !important; |
| 67 |
align-items: center !important; |
| 68 |
justify-content: center !important; |
| 69 |
transition: all 0.3s ease; |
| 70 |
z-index: 100 !important; |
| 71 |
padding:0; |
| 72 |
} |
| 73 |
|
| 74 |
.yatra-video-player-close:hover { |
| 75 |
background: rgba(255, 255, 255, 0.2); |
| 76 |
border-color: rgba(255, 255, 255, 0.5); |
| 77 |
transform: rotate(90deg) scale(1.1); |
| 78 |
} |
| 79 |
|
| 80 |
.yatra-video-player-close svg { |
| 81 |
width: 24px; |
| 82 |
height: 24px; |
| 83 |
} |
| 84 |
|
| 85 |
.yatra-video-player-wrapper { |
| 86 |
width: 100% !important; |
| 87 |
height: 100% !important; |
| 88 |
min-height: 400px !important; |
| 89 |
background: #000 !important; |
| 90 |
border-radius: 12px; |
| 91 |
overflow: hidden; |
| 92 |
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); |
| 93 |
position: relative !important; |
| 94 |
display: block !important; |
| 95 |
} |
| 96 |
|
| 97 |
.yatra-video-player-wrapper iframe { |
| 98 |
width: 100% !important; |
| 99 |
height: 100% !important; |
| 100 |
border: none !important; |
| 101 |
display: block !important; |
| 102 |
} |
| 103 |
|
| 104 |
/* Responsive Design */ |
| 105 |
@media (max-width: 1024px) { |
| 106 |
.yatra-video-player-content { |
| 107 |
width: 95%; |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
@media (max-width: 768px) { |
| 112 |
.yatra-video-player-content { |
| 113 |
width: 95%; |
| 114 |
max-width: none; |
| 115 |
} |
| 116 |
|
| 117 |
.yatra-video-player-close { |
| 118 |
top: -45px; |
| 119 |
width: 40px; |
| 120 |
height: 40px; |
| 121 |
} |
| 122 |
|
| 123 |
.yatra-video-player-close svg { |
| 124 |
width: 20px; |
| 125 |
height: 20px; |
| 126 |
} |
| 127 |
} |
| 128 |
|
| 129 |
@media (max-width: 480px) { |
| 130 |
.yatra-video-player-content { |
| 131 |
width: 100%; |
| 132 |
} |
| 133 |
|
| 134 |
.yatra-video-player-wrapper { |
| 135 |
border-radius: 0; |
| 136 |
} |
| 137 |
|
| 138 |
.yatra-video-player-close { |
| 139 |
top: 10px; |
| 140 |
right: 10px; |
| 141 |
background: rgba(0, 0, 0, 0.7); |
| 142 |
} |
| 143 |
} |
| 144 |
|
| 145 |
/* Loading State */ |
| 146 |
.yatra-video-player-wrapper.loading::before { |
| 147 |
content: ''; |
| 148 |
position: absolute; |
| 149 |
top: 50%; |
| 150 |
left: 50%; |
| 151 |
width: 50px; |
| 152 |
height: 50px; |
| 153 |
margin: -25px 0 0 -25px; |
| 154 |
border: 3px solid rgba(255, 255, 255, 0.3); |
| 155 |
border-top-color: #fff; |
| 156 |
border-radius: 50%; |
| 157 |
animation: yatraVideoSpin 0.8s linear infinite; |
| 158 |
} |
| 159 |
|
| 160 |
@keyframes yatraVideoSpin { |
| 161 |
to { |
| 162 |
transform: rotate(360deg); |
| 163 |
} |
| 164 |
} |
| 165 |
|