| 1 | .videoModal { |
| 2 | :global { |
| 3 | .ant-modal-content { |
| 4 | background-color: #000; |
| 5 | border-radius: 8px; |
| 6 | overflow: hidden; |
| 7 | } |
| 8 | |
| 9 | .ant-modal-header { |
| 10 | background-color: #000; |
| 11 | border-bottom: 1px solid #333; |
| 12 | |
| 13 | .ant-modal-title { |
| 14 | color: #fff; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | .ant-modal-close { |
| 19 | color: #fff; |
| 20 | |
| 21 | &:hover { |
| 22 | color: #a66ae4; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | .ant-modal-body { |
| 27 | padding: 0; |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | .videoContainer { |
| 33 | width: 100%; |
| 34 | height: 0; |
| 35 | padding-bottom: 56.25%; /* 16:9 宽高比 */ |
| 36 | position: relative; |
| 37 | } |
| 38 | |
| 39 | .videoPlayer { |
| 40 | position: absolute; |
| 41 | top: 0; |
| 42 | left: 0; |
| 43 | width: 100%; |
| 44 | height: 100%; |
| 45 | object-fit: contain; |
| 46 | background-color: #000; |
| 47 | } |