give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
VideoPlayer
/
styles.scss
give
/
src
/
Promotions
/
WelcomeBanner
/
resources
/
js
/
app
/
components
/
VideoPlayer
Last commit date
index.tsx
2 years ago
styles.scss
2 years ago
styles.scss
53 lines
| 1 | .givewp-welcome-banner-video { |
| 2 | flex: 1; |
| 3 | display: flex; |
| 4 | |
| 5 | &-container { |
| 6 | flex: 1; |
| 7 | position: relative; |
| 8 | height: 18rem; |
| 9 | max-height: 18rem; |
| 10 | text-align: center; |
| 11 | background-color: #FFF; |
| 12 | |
| 13 | button { |
| 14 | position: absolute; |
| 15 | bottom: .5rem; |
| 16 | left: .5rem; |
| 17 | padding: 0; |
| 18 | border: none; |
| 19 | background: transparent; |
| 20 | cursor: pointer; |
| 21 | } |
| 22 | |
| 23 | video { |
| 24 | width: 100%; |
| 25 | height: 100%; |
| 26 | object-fit: contain; |
| 27 | |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | &-fallback { |
| 32 | margin: 0; |
| 33 | padding: 0; |
| 34 | min-height: 100%; |
| 35 | min-width: 100%; |
| 36 | width: 18.375rem; |
| 37 | height: 14.625rem; |
| 38 | |
| 39 | &__image { |
| 40 | height: 100%; |
| 41 | width: 100%; |
| 42 | object-fit: cover; |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | @media (max-width: 1325px) { |
| 48 | .givewp-welcome-banner-video-container { |
| 49 | max-height: 12rem; |
| 50 | min-height: 12rem; |
| 51 | } |
| 52 | } |
| 53 |