1
1
import { keyframes , styled } from '@storybook/theming' ;
2
2
import { Modal } from '@storybook/components' ;
3
3
4
- export const ModalWrapper = styled ( Modal ) `
5
- background: white;
6
- ` ;
4
+ export const ModalWrapper = styled ( Modal ) `` ;
7
5
8
6
export const ModalContent = styled . div `
9
7
display: flex;
@@ -21,10 +19,13 @@ export const Main = styled.div`
21
19
flex: 1;
22
20
display: flex;
23
21
flex-direction: column;
22
+ background: white;
24
23
font-family: ${ ( { theme } ) => theme . typography . fonts . base } ;
25
24
` ;
26
25
27
26
export const Header = styled . div `
27
+ position: relative;
28
+ z-index: 1;
28
29
box-sizing: border-box;
29
30
display: flex;
30
31
justify-content: space-between;
@@ -64,20 +65,20 @@ export const Content = styled.div`
64
65
}
65
66
` ;
66
67
67
- export const SpanHighlight = styled . span `
68
- display: inline-flex;
69
- border-radius: 3px;
70
- padding: 0 5px;
71
- margin-bottom : -2px;
72
- opacity: 0.8;
73
- font-family: ${ ( { theme } ) => theme . typography . fonts . mono } ;
74
- font-size: 11px;
75
- border: 1px solid #ecf4f9;
76
- color: ${ ( { theme } ) => theme . color . darkest } ;
77
- background-color: #f7fafc;
78
- box-sizing: border-box;
79
- line-height: 17px;
80
- ` ;
68
+ export const SpanHighlight = styled . span ( ( { theme } ) => ( {
69
+ display : ' inline-flex' ,
70
+ borderRadius : 3 ,
71
+ padding : ' 0 5px' ,
72
+ marginBottom : - 2 ,
73
+ opacity : 0.8 ,
74
+ fontFamily : theme . typography . fonts . mono ,
75
+ fontSize : 11 ,
76
+ border : theme . base === 'dark' ? theme . color . darkest : theme . color . lightest ,
77
+ color : theme . base === 'dark' ? theme . color . lightest : theme . color . darkest ,
78
+ backgroundColor : theme . base === 'dark' ? 'black' : theme . color . light ,
79
+ boxSizing : ' border-box' ,
80
+ lineHeight : ' 17px' ,
81
+ } ) ) ;
81
82
82
83
export const Image = styled . img `
83
84
max-width: 100%;
@@ -90,8 +91,10 @@ export const Background = styled.div`
90
91
left: 0;
91
92
width: 100%;
92
93
height: 100%;
93
- z-index: -1 ;
94
+ z-index: 0 ;
94
95
overflow: hidden;
96
+ z-index: 0;
97
+ pointer-events: none;
95
98
` ;
96
99
97
100
export const circle1Anim = keyframes `
0 commit comments