1
1
import { css } from '@emotion/react' ;
2
- import { from , space , until } from '@guardian/source/foundations' ;
2
+ import {
3
+ from ,
4
+ palette as sourcePalette ,
5
+ space ,
6
+ until ,
7
+ } from '@guardian/source/foundations' ;
3
8
import { Hide , SvgMediaControlsPlay } from '@guardian/source/react-components' ;
4
9
import { ArticleDesign , type ArticleFormat } from '../lib/articleFormat' ;
5
10
import { secondsToDuration } from '../lib/formatTime' ;
6
11
import { getZIndex } from '../lib/getZIndex' ;
12
+ import { transparentColour } from '../lib/transparentColour' ;
7
13
import { palette } from '../palette' ;
8
14
import type { StarRating as Rating } from '../types/content' ;
9
15
import type {
@@ -148,6 +154,9 @@ const overlayStyles = css`
148
154
gap : ${ space [ 1 ] } px;
149
155
padding : 64px ${ space [ 2 ] } px ${ space [ 2 ] } px;
150
156
backdrop-filter : blur (12px ) brightness (0.5 );
157
+ @supports not (backdrop-filter : blur (12px )) {
158
+ background-color : ${ transparentColour ( sourcePalette . neutral [ 10 ] , 0.7 ) } ;
159
+ }
151
160
${ overlayMaskGradientStyles ( '180deg' ) } ;
152
161
153
162
/* Ensure the waveform is behind the other elements, e.g. headline, pill */
@@ -164,7 +173,6 @@ const immersiveOverlayStyles = css`
164
173
* 48px is to point at which the gradient can go behind the content whilst maintaining accessibility.
165
174
*/
166
175
padding : ${ space [ 2 ] } px ${ space [ 12 ] } px ${ space [ 2 ] } px ${ space [ 2 ] } px;
167
- backdrop-filter : blur (12px ) brightness (0.5 );
168
176
${ overlayMaskGradientStyles ( '270deg' ) }
169
177
}
170
178
` ;
0 commit comments