File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
components/Card/components Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,23 @@ const baseCardStyles = css`
20
20
flex-direction : column;
21
21
justify-content : space-between;
22
22
width : 100% ;
23
- /* We absolutely position the faux link
24
- so this is required here */
23
+ /* We absolutely position the faux link so this is required here */
25
24
position : relative;
26
25
27
- /* Target Safari 10.1 */
28
- /* https://www.browserstack.com/guide/create-browser-specific-css */
26
+ /*
27
+ * Target Safari 10.1 to 14.0
28
+ * https://www.browserstack.com/guide/create-browser-specific-css
29
+ * Flexbox with gap is not supported until Safari 14.1
30
+ */
29
31
@media not all and (min-resolution : 0.001dpcm ) {
30
- @supports (-webkit-appearance : none) and
31
- (not (stroke-color : transparent)) {
32
+ @supports (-webkit-appearance : none) and (not (display : flex; gap: 1em )) {
32
33
display : grid;
33
34
grid-auto-rows : min-content;
34
35
align-content : start;
35
36
}
36
37
}
37
38
38
- /* a tag specific styles */
39
+ /* <a /> tag specific styles */
39
40
color : inherit;
40
41
text-decoration : none;
41
42
` ;
Original file line number Diff line number Diff line change @@ -5887,8 +5887,16 @@ const highlightContainerMidFadeLight: PaletteFunction = () =>
5887
5887
const highlightContainerMidFadeDark : PaletteFunction = ( ) =>
5888
5888
transparentColour ( sourcePalette . neutral [ 10 ] , 0.6 ) ;
5889
5889
5890
- const highlightContainerEndFadeLight : PaletteFunction = ( ) => 'transparent' ;
5891
- const highlightContainerEndFadeDark : PaletteFunction = ( ) => 'transparent' ;
5890
+ /**
5891
+ * Why not 'transparent'?
5892
+ *
5893
+ * Older versions of Safari (v14 and lower) misinterpret "transparent"
5894
+ * when used in gradients: https://css-tricks.com/thing-know-gradients-transparent-black/
5895
+ */
5896
+ const highlightContainerEndFadeLight : PaletteFunction = ( ) =>
5897
+ transparentColour ( sourcePalette . neutral [ 100 ] , 0 ) ;
5898
+ const highlightContainerEndFadeDark : PaletteFunction = ( ) =>
5899
+ transparentColour ( sourcePalette . neutral [ 10 ] , 0 ) ;
5892
5900
5893
5901
const pinnedPostBorderLight : PaletteFunction = ( { theme } ) => {
5894
5902
switch ( theme ) {
You can’t perform that action at this time.
0 commit comments