@mui/docs 6.0.0-beta.5 → 6.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Ad/Ad.js +1 -1
- package/CHANGELOG.md +69 -0
- package/CodeCopy/useClipboardCopy.js +1 -1
- package/node/Ad/Ad.js +3 -4
- package/node/Ad/AdDisplay.js +1 -1
- package/node/CodeCopy/CodeCopy.js +9 -15
- package/node/CodeCopy/useClipboardCopy.js +1 -1
- package/node/ComponentLinkHeader/ComponentLinkHeader.js +1 -2
- package/node/HighlightedCodeWithTabs/HighlightedCodeWithTabs.js +32 -32
- package/node/Link/Link.js +1 -1
- package/node/MarkdownElement/MarkdownElement.js +591 -594
- package/node/i18n/i18n.js +1 -1
- package/package.json +4 -4
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -15,658 +15,655 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
16
|
const Root = (0, _styles.styled)('div')(({
|
|
17
17
|
theme
|
|
18
|
-
}) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
}) => ({
|
|
19
|
+
..._branding.brandingLightTheme.typography.body1,
|
|
20
|
+
lineHeight: 1.625,
|
|
21
|
+
// Rounds up to 26px-increased compared to the 1.5 default to make the docs easier to read.
|
|
22
|
+
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
23
|
+
'& :focus-visible': {
|
|
24
|
+
outline: `3px solid ${(0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[500], 0.5)}`,
|
|
25
|
+
outlineOffset: 2
|
|
26
|
+
},
|
|
27
|
+
'& strong': {
|
|
28
|
+
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`
|
|
29
|
+
},
|
|
30
|
+
wordBreak: 'break-word',
|
|
31
|
+
'& pre': {
|
|
32
|
+
lineHeight: 1.5,
|
|
33
|
+
// Developers like when the code is dense.
|
|
34
|
+
margin: theme.spacing(2, 'auto'),
|
|
35
|
+
padding: theme.spacing(2),
|
|
36
|
+
backgroundColor: 'hsl(210, 25%, 9%)',
|
|
37
|
+
// a special, one-off, color tailored for the code blocks using MUI's branding theme blue palette as the starting point. It has a less saturaded color but still maintaining a bit of the blue tint.
|
|
38
|
+
color: 'hsl(60, 30%, 96%)',
|
|
39
|
+
colorScheme: 'dark',
|
|
40
|
+
borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
41
|
+
border: '1px solid',
|
|
42
|
+
borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
43
|
+
overflow: 'auto',
|
|
44
|
+
WebkitOverflowScrolling: 'touch',
|
|
45
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(13),
|
|
46
|
+
maxWidth: 'calc(100vw - 32px)',
|
|
47
|
+
maxHeight: '400px',
|
|
48
|
+
[_branding.brandingLightTheme.breakpoints.up('md')]: {
|
|
49
|
+
maxWidth: 'calc(100vw - 32px - 16px)'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
'& code': {
|
|
53
|
+
..._branding.brandingLightTheme.typography.body2,
|
|
54
|
+
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
55
|
+
fontWeight: 400,
|
|
56
|
+
WebkitFontSmoothing: 'subpixel-antialiased'
|
|
57
|
+
},
|
|
58
|
+
'& pre > code': {
|
|
59
|
+
// Reset for Safari
|
|
60
|
+
// https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
|
|
61
|
+
fontSize: 'inherit'
|
|
62
|
+
},
|
|
63
|
+
// inline code block
|
|
64
|
+
'& :not(pre) > code': {
|
|
65
|
+
padding: '2px 4px',
|
|
24
66
|
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
67
|
+
backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
|
|
68
|
+
border: '1px solid',
|
|
69
|
+
borderColor: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
|
|
70
|
+
borderRadius: 6,
|
|
71
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(13),
|
|
72
|
+
direction: 'ltr /*! @noflip */',
|
|
73
|
+
boxDecorationBreak: 'clone'
|
|
74
|
+
},
|
|
75
|
+
'& h1': {
|
|
76
|
+
..._branding.brandingLightTheme.typography.h3,
|
|
77
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(36),
|
|
78
|
+
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
79
|
+
margin: '10px 0',
|
|
80
|
+
color: `var(--muidocs-palette-primaryDark-900, ${_branding.brandingLightTheme.palette.primaryDark[900]})`,
|
|
81
|
+
fontWeight: 600,
|
|
82
|
+
letterSpacing: -0.2
|
|
83
|
+
},
|
|
84
|
+
'& .description': {
|
|
85
|
+
..._branding.brandingLightTheme.typography.subtitle1,
|
|
86
|
+
fontWeight: 400,
|
|
87
|
+
margin: '0 0 24px'
|
|
88
|
+
},
|
|
89
|
+
'& .component-tabs': {
|
|
90
|
+
margin: '0 0 40px'
|
|
91
|
+
},
|
|
92
|
+
'& h2': {
|
|
93
|
+
..._branding.brandingLightTheme.typography.h5,
|
|
94
|
+
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
95
|
+
fontSize: theme.typography.pxToRem(26),
|
|
96
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
97
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
98
|
+
margin: '40px 0 4px'
|
|
99
|
+
},
|
|
100
|
+
'& h3': {
|
|
101
|
+
..._branding.brandingLightTheme.typography.h6,
|
|
102
|
+
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
103
|
+
fontSize: theme.typography.pxToRem(20),
|
|
104
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
105
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
106
|
+
margin: '24px 0 4px'
|
|
107
|
+
},
|
|
108
|
+
'& h4': {
|
|
109
|
+
..._branding.brandingLightTheme.typography.subtitle1,
|
|
110
|
+
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
111
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
112
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
113
|
+
margin: '20px 0 6px'
|
|
114
|
+
},
|
|
115
|
+
'& h5': {
|
|
116
|
+
..._branding.brandingLightTheme.typography.subtitle2,
|
|
117
|
+
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
118
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
119
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
120
|
+
margin: '20px 0 8px'
|
|
121
|
+
},
|
|
122
|
+
'& p': {
|
|
123
|
+
marginTop: 0,
|
|
124
|
+
marginBottom: 16,
|
|
125
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`
|
|
126
|
+
},
|
|
127
|
+
'& ul, & ol': {
|
|
128
|
+
paddingLeft: 30,
|
|
129
|
+
marginTop: 0,
|
|
130
|
+
marginBottom: 16,
|
|
131
|
+
'& ul, & ol': {
|
|
132
|
+
marginBottom: 6
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
'& a[target="_blank"]::after': {
|
|
136
|
+
content: '""',
|
|
137
|
+
maskImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' focusable='false' aria-hidden='true' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z'%3E%3C/path%3E%3C/svg%3E")`,
|
|
138
|
+
display: 'inline-flex',
|
|
139
|
+
width: '1em',
|
|
140
|
+
height: '1em',
|
|
141
|
+
color: 'inherit',
|
|
142
|
+
backgroundColor: 'currentColor',
|
|
143
|
+
transform: 'translate(0, 2px)',
|
|
144
|
+
transition: 'transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1)',
|
|
145
|
+
// bounce effect
|
|
146
|
+
opacity: 0.8
|
|
147
|
+
},
|
|
148
|
+
'& a[target="_blank"]:hover::after': {
|
|
149
|
+
opacity: 1,
|
|
150
|
+
transform: 'translate(1px, 0)'
|
|
151
|
+
},
|
|
152
|
+
'& a.remove-link-arrow::after': {
|
|
153
|
+
// Allows to remove link arrows for images
|
|
154
|
+
display: 'none'
|
|
155
|
+
},
|
|
156
|
+
'& .Ad-root a::after': {
|
|
157
|
+
// Remove link arrow for ads
|
|
158
|
+
display: 'none'
|
|
159
|
+
},
|
|
160
|
+
'& a': {
|
|
161
|
+
// Style taken from the Link component
|
|
162
|
+
color: `var(--muidocs-palette-primary-600, ${_branding.brandingLightTheme.palette.primary[600]})`,
|
|
163
|
+
fontWeight: theme.typography.fontWeightMedium,
|
|
164
|
+
textDecoration: 'underline',
|
|
165
|
+
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary.main, 0.4),
|
|
166
|
+
'&:hover': {
|
|
167
|
+
textDecorationColor: 'inherit'
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
'& a code': {
|
|
171
|
+
color: (0, _styles.darken)(_branding.brandingLightTheme.palette.primary.main, 0.2)
|
|
172
|
+
},
|
|
173
|
+
'& h1, & h2, & h3, & h4': {
|
|
174
|
+
display: 'flex',
|
|
175
|
+
alignItems: 'center',
|
|
176
|
+
gap: 6,
|
|
177
|
+
'& code': {
|
|
178
|
+
fontSize: 'inherit',
|
|
179
|
+
lineHeight: 'inherit',
|
|
180
|
+
// Remove scroll on small screens.
|
|
181
|
+
wordBreak: 'break-all'
|
|
28
182
|
},
|
|
29
|
-
'&
|
|
30
|
-
color:
|
|
183
|
+
'& .title-link-to-anchor': {
|
|
184
|
+
color: 'inherit',
|
|
185
|
+
textDecoration: 'none',
|
|
186
|
+
boxShadow: 'none',
|
|
187
|
+
fontWeight: 'inherit',
|
|
188
|
+
position: 'relative',
|
|
189
|
+
userSelect: 'text'
|
|
31
190
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
padding: theme.spacing(2),
|
|
38
|
-
backgroundColor: 'hsl(210, 25%, 9%)',
|
|
39
|
-
// a special, one-off, color tailored for the code blocks using MUI's branding theme blue palette as the starting point. It has a less saturaded color but still maintaining a bit of the blue tint.
|
|
40
|
-
color: 'hsl(60, 30%, 96%)',
|
|
41
|
-
colorScheme: 'dark',
|
|
42
|
-
borderRadius: `var(--muidocs-shape-borderRadius, ${(_theme$shape$borderRa = (_theme$shape = theme.shape) == null ? void 0 : _theme$shape.borderRadius) != null ? _theme$shape$borderRa : _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
43
|
-
border: '1px solid',
|
|
44
|
-
borderColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
45
|
-
overflow: 'auto',
|
|
46
|
-
WebkitOverflowScrolling: 'touch',
|
|
47
|
-
fontSize: _branding.brandingLightTheme.typography.pxToRem(13),
|
|
48
|
-
maxWidth: 'calc(100vw - 32px)',
|
|
49
|
-
maxHeight: '400px',
|
|
50
|
-
[_branding.brandingLightTheme.breakpoints.up('md')]: {
|
|
51
|
-
maxWidth: 'calc(100vw - 32px - 16px)'
|
|
52
|
-
}
|
|
191
|
+
'& .anchor-icon': {
|
|
192
|
+
// To prevent the link to get the focus.
|
|
193
|
+
display: 'inline-flex',
|
|
194
|
+
alignItems: 'center',
|
|
195
|
+
visibility: 'hidden'
|
|
53
196
|
},
|
|
54
|
-
'&
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
197
|
+
'& .anchor-icon, & .comment-link': {
|
|
198
|
+
padding: 0,
|
|
199
|
+
cursor: 'pointer',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
justifyContent: 'center',
|
|
202
|
+
flexShrink: 0,
|
|
203
|
+
textAlign: 'center',
|
|
204
|
+
marginLeft: 8,
|
|
205
|
+
height: 26,
|
|
206
|
+
width: 26,
|
|
207
|
+
color: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`,
|
|
208
|
+
backgroundColor: 'transparent',
|
|
209
|
+
border: '1px solid transparent',
|
|
210
|
+
borderRadius: 8,
|
|
211
|
+
transition: theme.transitions.create(['visibility', 'background-color', 'color', 'border-color'], {
|
|
212
|
+
duration: theme.transitions.duration.shortest
|
|
213
|
+
}),
|
|
214
|
+
'&:hover': {
|
|
215
|
+
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[100], 0.4),
|
|
216
|
+
borderColor: `var(--muidocs-palette-primary-100, ${_branding.brandingLightTheme.palette.primary[100]})`,
|
|
217
|
+
color: `var(--muidocs-palette-primary-main, ${_branding.brandingLightTheme.palette.primary.main})`
|
|
218
|
+
},
|
|
219
|
+
'& svg': {
|
|
220
|
+
height: 14,
|
|
221
|
+
width: 14,
|
|
222
|
+
fill: 'currentColor',
|
|
223
|
+
pointerEvents: 'none',
|
|
224
|
+
verticalAlign: 'middle'
|
|
225
|
+
}
|
|
59
226
|
},
|
|
60
|
-
'
|
|
61
|
-
|
|
62
|
-
// https://github.com/necolas/normalize.css/blob/master/normalize.css#L102
|
|
63
|
-
fontSize: 'inherit'
|
|
227
|
+
'&:hover .anchor-icon': {
|
|
228
|
+
visibility: 'visible'
|
|
64
229
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
230
|
+
'& .comment-link': {
|
|
231
|
+
display: 'none',
|
|
232
|
+
// So we can have the comment button opt-in.
|
|
233
|
+
marginLeft: 'auto',
|
|
234
|
+
transition: theme.transitions.create(['background-color', 'color', 'border-color'], {
|
|
235
|
+
duration: theme.transitions.duration.shortest
|
|
236
|
+
}),
|
|
237
|
+
'& svg': {
|
|
238
|
+
fill: 'currentColor',
|
|
239
|
+
marginRight: 1.5
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
'& h1 code, & h2 code, & h3 code': {
|
|
244
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`
|
|
245
|
+
},
|
|
246
|
+
'& h1 code': {
|
|
247
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
|
|
248
|
+
},
|
|
249
|
+
'& h2 code': {
|
|
250
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(24),
|
|
251
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
|
|
252
|
+
},
|
|
253
|
+
'& h3 code': {
|
|
254
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(18)
|
|
255
|
+
},
|
|
256
|
+
'& table': {
|
|
257
|
+
// Trade display table for scroll overflow
|
|
258
|
+
display: 'block',
|
|
259
|
+
wordBreak: 'normal',
|
|
260
|
+
overflowX: 'auto',
|
|
261
|
+
WebkitOverflowScrolling: 'touch',
|
|
262
|
+
borderCollapse: 'collapse',
|
|
263
|
+
marginBottom: '20px',
|
|
264
|
+
borderSpacing: 0,
|
|
265
|
+
'& .prop-name, & .prop-type, & .prop-default, & .slot-name, & .slot-defaultClass, & .slot-default': {
|
|
88
266
|
fontWeight: 400,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
margin: '0 0 40px'
|
|
93
|
-
},
|
|
94
|
-
'& h2': {
|
|
95
|
-
..._branding.brandingLightTheme.typography.h5,
|
|
96
|
-
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
97
|
-
fontSize: theme.typography.pxToRem(26),
|
|
98
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
99
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
100
|
-
margin: '40px 0 4px'
|
|
267
|
+
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
268
|
+
WebkitFontSmoothing: 'subpixel-antialiased',
|
|
269
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(13)
|
|
101
270
|
},
|
|
102
|
-
'&
|
|
103
|
-
|
|
104
|
-
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
105
|
-
fontSize: theme.typography.pxToRem(20),
|
|
106
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
107
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
108
|
-
margin: '24px 0 4px'
|
|
271
|
+
'& .required': {
|
|
272
|
+
color: '#006500'
|
|
109
273
|
},
|
|
110
|
-
'&
|
|
111
|
-
|
|
112
|
-
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
113
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
114
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
115
|
-
margin: '20px 0 6px'
|
|
274
|
+
'& .optional': {
|
|
275
|
+
color: '#45529f'
|
|
116
276
|
},
|
|
117
|
-
'&
|
|
118
|
-
|
|
119
|
-
fontFamily: `"General Sans", ${_branding.brandingLightTheme.typography.fontFamilySystem}`,
|
|
120
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold,
|
|
121
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
122
|
-
margin: '20px 0 8px'
|
|
277
|
+
'& .prop-type, & .slot-defaultClass': {
|
|
278
|
+
color: '#932981'
|
|
123
279
|
},
|
|
280
|
+
'& .prop-default, & .slot-default': {
|
|
281
|
+
borderBottom: `1px dotted var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
'& td': {
|
|
285
|
+
...theme.typography.body2,
|
|
286
|
+
borderBottom: `1px solid var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
|
|
287
|
+
paddingRight: 20,
|
|
288
|
+
paddingTop: 16,
|
|
289
|
+
paddingBottom: 16,
|
|
290
|
+
color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`
|
|
291
|
+
},
|
|
292
|
+
'& td code': {
|
|
293
|
+
lineHeight: 1.6
|
|
294
|
+
},
|
|
295
|
+
'& th': {
|
|
296
|
+
fontSize: theme.typography.pxToRem(14),
|
|
297
|
+
lineHeight: theme.typography.pxToRem(24),
|
|
298
|
+
fontWeight: 500,
|
|
299
|
+
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
300
|
+
whiteSpace: 'pre',
|
|
301
|
+
borderBottom: `1px solid var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
|
|
302
|
+
paddingRight: 20,
|
|
303
|
+
paddingTop: 12,
|
|
304
|
+
paddingBottom: 12
|
|
305
|
+
},
|
|
306
|
+
'& blockquote': {
|
|
307
|
+
position: 'relative',
|
|
308
|
+
padding: '0 16px',
|
|
309
|
+
margin: 0,
|
|
310
|
+
borderLeft: '1.5px solid',
|
|
311
|
+
borderColor: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
|
|
124
312
|
'& p': {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
paddingLeft: 30,
|
|
131
|
-
marginTop: 0,
|
|
132
|
-
marginBottom: 16,
|
|
133
|
-
'& ul, & ol': {
|
|
134
|
-
marginBottom: 6
|
|
135
|
-
}
|
|
313
|
+
fontSize: theme.typography.pxToRem(12.5),
|
|
314
|
+
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
315
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
|
|
316
|
+
lineHeight: theme.typography.pxToRem(24),
|
|
317
|
+
textIndent: 20
|
|
136
318
|
},
|
|
137
|
-
'
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
319
|
+
'&::before': {
|
|
320
|
+
position: 'absolute',
|
|
321
|
+
// eslint-disable-next-line material-ui/straight-quotes
|
|
322
|
+
content: '"“"',
|
|
323
|
+
color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
324
|
+
fontSize: '2.5rem',
|
|
325
|
+
top: 8,
|
|
326
|
+
marginLeft: -6,
|
|
327
|
+
lineHeight: 0.5
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
'& .MuiCallout-root': {
|
|
331
|
+
display: 'flex',
|
|
332
|
+
gap: '8px',
|
|
333
|
+
padding: '12px',
|
|
334
|
+
margin: '16px 0',
|
|
335
|
+
border: '1px solid',
|
|
336
|
+
color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`,
|
|
337
|
+
borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
338
|
+
borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
339
|
+
'& .MuiCallout-content': {
|
|
340
|
+
minWidth: 0,
|
|
341
|
+
// Allows content to shrink. Useful when callout contains code block
|
|
342
|
+
flexGrow: 1
|
|
157
343
|
},
|
|
158
|
-
'&
|
|
159
|
-
|
|
160
|
-
|
|
344
|
+
'& code': {
|
|
345
|
+
height: 'fit-content',
|
|
346
|
+
backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
347
|
+
borderColor: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`
|
|
161
348
|
},
|
|
162
|
-
'&
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
'
|
|
169
|
-
|
|
349
|
+
'& p': {
|
|
350
|
+
marginBottom: '8px',
|
|
351
|
+
'& > p:last-child, & > ul:last-child': {
|
|
352
|
+
// Avoid margin on last child
|
|
353
|
+
marginBottom: 0
|
|
354
|
+
},
|
|
355
|
+
'& > ul': {
|
|
356
|
+
// Because of the gap left by the icon, we visually need less padding
|
|
357
|
+
paddingLeft: 22
|
|
170
358
|
}
|
|
171
359
|
},
|
|
172
|
-
'&
|
|
173
|
-
|
|
360
|
+
'& .MuiCode-root': {
|
|
361
|
+
'& pre': {
|
|
362
|
+
margin: '4px 0 0 0',
|
|
363
|
+
borderRadius: '12px 12px 6px 12px',
|
|
364
|
+
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.6),
|
|
365
|
+
'& code': {
|
|
366
|
+
backgroundColor: 'transparent'
|
|
367
|
+
}
|
|
368
|
+
}
|
|
174
369
|
},
|
|
175
|
-
'&
|
|
370
|
+
'& .MuiCallout-icon-container': {
|
|
371
|
+
width: 26,
|
|
372
|
+
// to match text's line-height
|
|
373
|
+
height: 26,
|
|
176
374
|
display: 'flex',
|
|
177
375
|
alignItems: 'center',
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
wordBreak: 'break-all'
|
|
184
|
-
},
|
|
185
|
-
'& .title-link-to-anchor': {
|
|
186
|
-
color: 'inherit',
|
|
187
|
-
textDecoration: 'none',
|
|
188
|
-
boxShadow: 'none',
|
|
189
|
-
fontWeight: 'inherit',
|
|
190
|
-
position: 'relative',
|
|
191
|
-
userSelect: 'text'
|
|
192
|
-
},
|
|
193
|
-
'& .anchor-icon': {
|
|
194
|
-
// To prevent the link to get the focus.
|
|
195
|
-
display: 'inline-flex',
|
|
196
|
-
alignItems: 'center',
|
|
197
|
-
visibility: 'hidden'
|
|
198
|
-
},
|
|
199
|
-
'& .anchor-icon, & .comment-link': {
|
|
200
|
-
padding: 0,
|
|
201
|
-
cursor: 'pointer',
|
|
202
|
-
alignItems: 'center',
|
|
203
|
-
justifyContent: 'center',
|
|
204
|
-
flexShrink: 0,
|
|
205
|
-
textAlign: 'center',
|
|
206
|
-
marginLeft: 8,
|
|
207
|
-
height: 26,
|
|
208
|
-
width: 26,
|
|
209
|
-
color: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`,
|
|
210
|
-
backgroundColor: 'transparent',
|
|
211
|
-
border: '1px solid transparent',
|
|
212
|
-
borderRadius: 8,
|
|
213
|
-
transition: theme.transitions.create(['visibility', 'background-color', 'color', 'border-color'], {
|
|
214
|
-
duration: theme.transitions.duration.shortest
|
|
215
|
-
}),
|
|
216
|
-
'&:hover': {
|
|
217
|
-
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primary[100], 0.4),
|
|
218
|
-
borderColor: `var(--muidocs-palette-primary-100, ${_branding.brandingLightTheme.palette.primary[100]})`,
|
|
219
|
-
color: `var(--muidocs-palette-primary-main, ${_branding.brandingLightTheme.palette.primary.main})`
|
|
220
|
-
},
|
|
221
|
-
'& svg': {
|
|
222
|
-
height: 14,
|
|
223
|
-
width: 14,
|
|
224
|
-
fill: 'currentColor',
|
|
225
|
-
pointerEvents: 'none',
|
|
226
|
-
verticalAlign: 'middle'
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
'&:hover .anchor-icon': {
|
|
230
|
-
visibility: 'visible'
|
|
231
|
-
},
|
|
232
|
-
'& .comment-link': {
|
|
233
|
-
display: 'none',
|
|
234
|
-
// So we can have the comment button opt-in.
|
|
235
|
-
marginLeft: 'auto',
|
|
236
|
-
transition: theme.transitions.create(['background-color', 'color', 'border-color'], {
|
|
237
|
-
duration: theme.transitions.duration.shortest
|
|
238
|
-
}),
|
|
239
|
-
'& svg': {
|
|
240
|
-
fill: 'currentColor',
|
|
241
|
-
marginRight: 1.5
|
|
242
|
-
}
|
|
376
|
+
justifyContent: 'center',
|
|
377
|
+
flexShrink: 0,
|
|
378
|
+
'& svg': {
|
|
379
|
+
width: 18,
|
|
380
|
+
height: 18
|
|
243
381
|
}
|
|
244
382
|
},
|
|
245
|
-
'&
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
|
|
250
|
-
},
|
|
251
|
-
'& h2 code': {
|
|
252
|
-
fontSize: _branding.brandingLightTheme.typography.pxToRem(24),
|
|
253
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightSemiBold
|
|
383
|
+
'& ul, & p': {
|
|
384
|
+
'&:last-child': {
|
|
385
|
+
margin: 0
|
|
386
|
+
}
|
|
254
387
|
},
|
|
255
|
-
'&
|
|
256
|
-
|
|
388
|
+
'& ul, li, p': {
|
|
389
|
+
color: 'inherit'
|
|
257
390
|
},
|
|
258
|
-
'
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
borderCollapse: 'collapse',
|
|
265
|
-
marginBottom: '20px',
|
|
266
|
-
borderSpacing: 0,
|
|
267
|
-
'& .prop-name, & .prop-type, & .prop-default, & .slot-name, & .slot-defaultClass, & .slot-default': {
|
|
268
|
-
fontWeight: 400,
|
|
269
|
-
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
270
|
-
WebkitFontSmoothing: 'subpixel-antialiased',
|
|
271
|
-
fontSize: _branding.brandingLightTheme.typography.pxToRem(13)
|
|
391
|
+
'&.MuiCallout-error': {
|
|
392
|
+
color: `var(--muidocs-palette-error-900, ${_branding.brandingLightTheme.palette.error[900]})`,
|
|
393
|
+
backgroundColor: `var(--muidocs-palette-error-50, ${_branding.brandingLightTheme.palette.error[50]})`,
|
|
394
|
+
borderColor: `var(--muidocs-palette-error-100, ${_branding.brandingLightTheme.palette.error[100]})`,
|
|
395
|
+
'& strong': {
|
|
396
|
+
color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`
|
|
272
397
|
},
|
|
273
|
-
'&
|
|
274
|
-
|
|
398
|
+
'& svg': {
|
|
399
|
+
fill: `var(--muidocs-palette-error-500, ${_branding.brandingLightTheme.palette.error[600]})`
|
|
275
400
|
},
|
|
276
|
-
'&
|
|
277
|
-
color:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
'& .prop-default, & .slot-default': {
|
|
283
|
-
borderBottom: `1px dotted var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
|
|
401
|
+
'& a': {
|
|
402
|
+
color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`,
|
|
403
|
+
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.error.main, 0.4),
|
|
404
|
+
'&:hover': {
|
|
405
|
+
textDecorationColor: 'inherit'
|
|
406
|
+
}
|
|
284
407
|
}
|
|
285
408
|
},
|
|
286
|
-
'
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`
|
|
293
|
-
},
|
|
294
|
-
'& td code': {
|
|
295
|
-
lineHeight: 1.6
|
|
296
|
-
},
|
|
297
|
-
'& th': {
|
|
298
|
-
fontSize: theme.typography.pxToRem(14),
|
|
299
|
-
lineHeight: theme.typography.pxToRem(24),
|
|
300
|
-
fontWeight: 500,
|
|
301
|
-
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
302
|
-
whiteSpace: 'pre',
|
|
303
|
-
borderBottom: `1px solid var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
|
|
304
|
-
paddingRight: 20,
|
|
305
|
-
paddingTop: 12,
|
|
306
|
-
paddingBottom: 12
|
|
307
|
-
},
|
|
308
|
-
'& blockquote': {
|
|
309
|
-
position: 'relative',
|
|
310
|
-
padding: '0 16px',
|
|
311
|
-
margin: 0,
|
|
312
|
-
borderLeft: '1.5px solid',
|
|
313
|
-
borderColor: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
|
|
314
|
-
'& p': {
|
|
315
|
-
fontSize: theme.typography.pxToRem(12.5),
|
|
316
|
-
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
317
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
|
|
318
|
-
lineHeight: theme.typography.pxToRem(24),
|
|
319
|
-
textIndent: 20
|
|
409
|
+
'&.MuiCallout-info': {
|
|
410
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
411
|
+
backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
|
|
412
|
+
borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
413
|
+
'& strong': {
|
|
414
|
+
color: `var(--muidocs-palette-primary-800, ${_branding.brandingLightTheme.palette.primary[800]})`
|
|
320
415
|
},
|
|
321
|
-
'
|
|
322
|
-
|
|
323
|
-
// eslint-disable-next-line material-ui/straight-quotes
|
|
324
|
-
content: '"“"',
|
|
325
|
-
color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
326
|
-
fontSize: '2.5rem',
|
|
327
|
-
top: 8,
|
|
328
|
-
marginLeft: -6,
|
|
329
|
-
lineHeight: 0.5
|
|
416
|
+
'& svg': {
|
|
417
|
+
fill: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`
|
|
330
418
|
}
|
|
331
419
|
},
|
|
332
|
-
'
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
color: `var(--muidocs-palette-text-secondary, ${_branding.brandingLightTheme.palette.text.secondary})`,
|
|
339
|
-
borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
340
|
-
borderRadius: `var(--muidocs-shape-borderRadius, ${(_theme$shape$borderRa2 = (_theme$shape2 = theme.shape) == null ? void 0 : _theme$shape2.borderRadius) != null ? _theme$shape$borderRa2 : _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
341
|
-
'& .MuiCallout-content': {
|
|
342
|
-
minWidth: 0,
|
|
343
|
-
// Allows content to shrink. Useful when callout contains code block
|
|
344
|
-
flexGrow: 1
|
|
345
|
-
},
|
|
346
|
-
'& code': {
|
|
347
|
-
height: 'fit-content',
|
|
348
|
-
backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
349
|
-
borderColor: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`
|
|
350
|
-
},
|
|
351
|
-
'& p': {
|
|
352
|
-
marginBottom: '8px',
|
|
353
|
-
'& > p:last-child, & > ul:last-child': {
|
|
354
|
-
// Avoid margin on last child
|
|
355
|
-
marginBottom: 0
|
|
356
|
-
},
|
|
357
|
-
'& > ul': {
|
|
358
|
-
// Because of the gap left by the icon, we visually need less padding
|
|
359
|
-
paddingLeft: 22
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
'& .MuiCode-root': {
|
|
363
|
-
'& pre': {
|
|
364
|
-
margin: '4px 0 0 0',
|
|
365
|
-
borderRadius: '12px 12px 6px 12px',
|
|
366
|
-
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.6),
|
|
367
|
-
'& code': {
|
|
368
|
-
backgroundColor: 'transparent'
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
'& .MuiCallout-icon-container': {
|
|
373
|
-
width: 26,
|
|
374
|
-
// to match text's line-height
|
|
375
|
-
height: 26,
|
|
376
|
-
display: 'flex',
|
|
377
|
-
alignItems: 'center',
|
|
378
|
-
justifyContent: 'center',
|
|
379
|
-
flexShrink: 0,
|
|
380
|
-
'& svg': {
|
|
381
|
-
width: 18,
|
|
382
|
-
height: 18
|
|
383
|
-
}
|
|
420
|
+
'&.MuiCallout-success': {
|
|
421
|
+
color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`,
|
|
422
|
+
backgroundColor: `var(--muidocs-palette-success-50, ${_branding.brandingLightTheme.palette.success[50]})`,
|
|
423
|
+
borderColor: `var(--muidocs-palette-success-100, ${_branding.brandingLightTheme.palette.success[100]})`,
|
|
424
|
+
'& strong': {
|
|
425
|
+
color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`
|
|
384
426
|
},
|
|
385
|
-
'&
|
|
386
|
-
|
|
387
|
-
margin: 0
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
'& ul, li, p': {
|
|
391
|
-
color: 'inherit'
|
|
427
|
+
'& svg': {
|
|
428
|
+
fill: `var(--muidocs-palette-success-600, ${_branding.brandingLightTheme.palette.success[600]})`
|
|
392
429
|
},
|
|
393
|
-
'
|
|
394
|
-
color: `var(--muidocs-palette-error-900, ${_branding.brandingLightTheme.palette.error[900]})`,
|
|
395
|
-
backgroundColor: `var(--muidocs-palette-error-50, ${_branding.brandingLightTheme.palette.error[50]})`,
|
|
396
|
-
borderColor: `var(--muidocs-palette-error-100, ${_branding.brandingLightTheme.palette.error[100]})`,
|
|
397
|
-
'& strong': {
|
|
398
|
-
color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`
|
|
399
|
-
},
|
|
400
|
-
'& svg': {
|
|
401
|
-
fill: `var(--muidocs-palette-error-500, ${_branding.brandingLightTheme.palette.error[600]})`
|
|
402
|
-
},
|
|
403
|
-
'& a': {
|
|
404
|
-
color: `var(--muidocs-palette-error-800, ${_branding.brandingLightTheme.palette.error[800]})`,
|
|
405
|
-
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.error.main, 0.4),
|
|
406
|
-
'&:hover': {
|
|
407
|
-
textDecorationColor: 'inherit'
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
'&.MuiCallout-info': {
|
|
412
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
413
|
-
backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
|
|
414
|
-
borderColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[100]})`,
|
|
415
|
-
'& strong': {
|
|
416
|
-
color: `var(--muidocs-palette-primary-800, ${_branding.brandingLightTheme.palette.primary[800]})`
|
|
417
|
-
},
|
|
418
|
-
'& svg': {
|
|
419
|
-
fill: `var(--muidocs-palette-grey-600, ${_branding.brandingLightTheme.palette.grey[600]})`
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
'&.MuiCallout-success': {
|
|
430
|
+
'& a': {
|
|
423
431
|
color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`
|
|
428
|
-
},
|
|
429
|
-
'& svg': {
|
|
430
|
-
fill: `var(--muidocs-palette-success-600, ${_branding.brandingLightTheme.palette.success[600]})`
|
|
431
|
-
},
|
|
432
|
-
'& a': {
|
|
433
|
-
color: `var(--muidocs-palette-success-900, ${_branding.brandingLightTheme.palette.success[900]})`,
|
|
434
|
-
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.success.main, 0.4),
|
|
435
|
-
'&:hover': {
|
|
436
|
-
textDecorationColor: 'inherit'
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
'&.MuiCallout-warning': {
|
|
441
|
-
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
442
|
-
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[50], 0.5),
|
|
443
|
-
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[700], 0.15),
|
|
444
|
-
'& strong': {
|
|
445
|
-
color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`
|
|
446
|
-
},
|
|
447
|
-
'& svg': {
|
|
448
|
-
fill: `var(--muidocs-palette-warning-600, ${_branding.brandingLightTheme.palette.warning[600]})`
|
|
449
|
-
},
|
|
450
|
-
'& a': {
|
|
451
|
-
color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`,
|
|
452
|
-
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning.main, 0.4),
|
|
453
|
-
'&:hover': {
|
|
454
|
-
textDecorationColor: 'inherit'
|
|
455
|
-
}
|
|
432
|
+
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.success.main, 0.4),
|
|
433
|
+
'&:hover': {
|
|
434
|
+
textDecorationColor: 'inherit'
|
|
456
435
|
}
|
|
457
436
|
}
|
|
458
437
|
},
|
|
459
|
-
'
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
},
|
|
466
|
-
'& img': {
|
|
467
|
-
// Avoid layout jump
|
|
468
|
-
display: 'inline-block',
|
|
469
|
-
// Avoid very sharp edges
|
|
470
|
-
borderRadius: 2
|
|
471
|
-
},
|
|
472
|
-
'& hr': {
|
|
473
|
-
height: 1,
|
|
474
|
-
margin: theme.spacing(5, 0),
|
|
475
|
-
border: 0,
|
|
476
|
-
flexShrink: 0,
|
|
477
|
-
backgroundColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
|
|
478
|
-
},
|
|
479
|
-
'& kbd.key': {
|
|
480
|
-
padding: 6,
|
|
481
|
-
display: 'inline-block',
|
|
482
|
-
whiteSpace: 'nowrap',
|
|
483
|
-
margin: '0 1px',
|
|
484
|
-
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
485
|
-
fontSize: _branding.brandingLightTheme.typography.pxToRem(11),
|
|
486
|
-
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
487
|
-
lineHeight: '10px',
|
|
488
|
-
verticalAlign: 'middle',
|
|
489
|
-
borderRadius: 6,
|
|
490
|
-
border: `1px solid var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
491
|
-
backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
|
|
492
|
-
boxShadow: `inset 0 -2px 0 var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`
|
|
493
|
-
},
|
|
494
|
-
'& details': {
|
|
495
|
-
width: '100%',
|
|
496
|
-
padding: theme.spacing(1),
|
|
497
|
-
marginBottom: theme.spacing(1.5),
|
|
498
|
-
border: '1px solid',
|
|
499
|
-
borderColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
|
|
500
|
-
borderRadius: `var(--muidocs-shape-borderRadius, ${(_theme$shape$borderRa3 = (_theme$shape3 = theme.shape) == null ? void 0 : _theme$shape3.borderRadius) != null ? _theme$shape$borderRa3 : _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
501
|
-
'& pre': {
|
|
502
|
-
marginTop: theme.spacing(1)
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
'& summary': {
|
|
506
|
-
cursor: 'pointer',
|
|
507
|
-
padding: theme.spacing(1),
|
|
508
|
-
borderRadius: 6,
|
|
509
|
-
listStyleType: 'none',
|
|
510
|
-
display: 'flex',
|
|
511
|
-
alignItems: 'center',
|
|
512
|
-
justifyContent: 'space-between',
|
|
513
|
-
transition: theme.transitions.create(['background'], {
|
|
514
|
-
duration: theme.transitions.duration.shortest
|
|
515
|
-
}),
|
|
516
|
-
':after': {
|
|
517
|
-
content: '""',
|
|
518
|
-
maskImage: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='black' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")`,
|
|
519
|
-
display: 'inline-flex',
|
|
520
|
-
width: '1em',
|
|
521
|
-
height: '1em',
|
|
522
|
-
color: 'inherit',
|
|
523
|
-
backgroundColor: 'currentColor'
|
|
438
|
+
'&.MuiCallout-warning': {
|
|
439
|
+
color: `var(--muidocs-palette-grey-900, ${_branding.brandingLightTheme.palette.grey[900]})`,
|
|
440
|
+
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[50], 0.5),
|
|
441
|
+
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning[700], 0.15),
|
|
442
|
+
'& strong': {
|
|
443
|
+
color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`
|
|
524
444
|
},
|
|
525
|
-
'
|
|
526
|
-
|
|
445
|
+
'& svg': {
|
|
446
|
+
fill: `var(--muidocs-palette-warning-600, ${_branding.brandingLightTheme.palette.warning[600]})`
|
|
447
|
+
},
|
|
448
|
+
'& a': {
|
|
449
|
+
color: `var(--muidocs-palette-warning-800, ${_branding.brandingLightTheme.palette.warning[800]})`,
|
|
450
|
+
textDecorationColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.warning.main, 0.4),
|
|
451
|
+
'&:hover': {
|
|
452
|
+
textDecorationColor: 'inherit'
|
|
453
|
+
}
|
|
527
454
|
}
|
|
528
|
-
}
|
|
529
|
-
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
'& img, & video': {
|
|
458
|
+
// Use !important so that inline style on <img> or <video> can't win.
|
|
459
|
+
// This avoid horizontal overflows on mobile.
|
|
460
|
+
maxWidth: '100% !important',
|
|
461
|
+
// Avoid the image to be fixed height, so it can respect the aspect ratio.
|
|
462
|
+
height: 'auto'
|
|
463
|
+
},
|
|
464
|
+
'& img': {
|
|
465
|
+
// Avoid layout jump
|
|
466
|
+
display: 'inline-block',
|
|
467
|
+
// Avoid very sharp edges
|
|
468
|
+
borderRadius: 2
|
|
469
|
+
},
|
|
470
|
+
'& hr': {
|
|
471
|
+
height: 1,
|
|
472
|
+
margin: theme.spacing(5, 0),
|
|
473
|
+
border: 0,
|
|
474
|
+
flexShrink: 0,
|
|
475
|
+
backgroundColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`
|
|
476
|
+
},
|
|
477
|
+
'& kbd.key': {
|
|
478
|
+
padding: 6,
|
|
479
|
+
display: 'inline-block',
|
|
480
|
+
whiteSpace: 'nowrap',
|
|
481
|
+
margin: '0 1px',
|
|
482
|
+
fontFamily: _branding.brandingLightTheme.typography.fontFamilyCode,
|
|
483
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(11),
|
|
484
|
+
color: `var(--muidocs-palette-text-primary, ${_branding.brandingLightTheme.palette.text.primary})`,
|
|
485
|
+
lineHeight: '10px',
|
|
486
|
+
verticalAlign: 'middle',
|
|
487
|
+
borderRadius: 6,
|
|
488
|
+
border: `1px solid var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
489
|
+
backgroundColor: `var(--muidocs-palette-grey-50, ${_branding.brandingLightTheme.palette.grey[50]})`,
|
|
490
|
+
boxShadow: `inset 0 -2px 0 var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`
|
|
491
|
+
},
|
|
492
|
+
'& details': {
|
|
493
|
+
width: '100%',
|
|
494
|
+
padding: theme.spacing(1),
|
|
495
|
+
marginBottom: theme.spacing(1.5),
|
|
496
|
+
border: '1px solid',
|
|
497
|
+
borderColor: `var(--muidocs-palette-divider, ${_branding.brandingLightTheme.palette.divider})`,
|
|
498
|
+
borderRadius: `var(--muidocs-shape-borderRadius, ${theme.shape?.borderRadius ?? _branding.brandingLightTheme.shape.borderRadius}px)`,
|
|
499
|
+
'& pre': {
|
|
500
|
+
marginTop: theme.spacing(1)
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
'& summary': {
|
|
504
|
+
cursor: 'pointer',
|
|
505
|
+
padding: theme.spacing(1),
|
|
506
|
+
borderRadius: 6,
|
|
507
|
+
listStyleType: 'none',
|
|
508
|
+
display: 'flex',
|
|
509
|
+
alignItems: 'center',
|
|
510
|
+
justifyContent: 'space-between',
|
|
511
|
+
transition: theme.transitions.create(['background'], {
|
|
512
|
+
duration: theme.transitions.duration.shortest
|
|
513
|
+
}),
|
|
514
|
+
':after': {
|
|
530
515
|
content: '""',
|
|
531
|
-
maskImage: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='
|
|
516
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='black' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")`,
|
|
517
|
+
display: 'inline-flex',
|
|
518
|
+
width: '1em',
|
|
519
|
+
height: '1em',
|
|
520
|
+
color: 'inherit',
|
|
521
|
+
backgroundColor: 'currentColor'
|
|
532
522
|
},
|
|
533
|
-
'
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
523
|
+
'&:hover': {
|
|
524
|
+
backgroundColor: `var(--muidocs-palette-grey-100, ${_branding.brandingLightTheme.palette.grey[50]})`
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
'& details[open] > summary::after': {
|
|
528
|
+
content: '""',
|
|
529
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 10L8 6L4 10' stroke='black' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")`
|
|
530
|
+
},
|
|
531
|
+
'& .MuiCode-root': {
|
|
532
|
+
direction: 'ltr /*! @noflip */',
|
|
533
|
+
position: 'relative',
|
|
534
|
+
// Font size reset to fix a bug with Safari 16.0 when letterSpacing is set
|
|
535
|
+
fontSize: 10,
|
|
536
|
+
'&:has(.MuiCode-title)': {
|
|
537
|
+
margin: theme.spacing(2, 'auto'),
|
|
538
|
+
border: `1px solid var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
539
|
+
borderRadius: theme.shape.borderRadius,
|
|
540
|
+
overflow: 'clip',
|
|
541
|
+
'& .MuiCode-copy': {
|
|
542
|
+
top: '56px'
|
|
546
543
|
}
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
'& .MuiCode-copy-container': {
|
|
547
|
+
// This container is only used in demo and highlight code
|
|
548
|
+
position: 'sticky',
|
|
549
|
+
zIndex: 1,
|
|
550
|
+
top: 0
|
|
551
|
+
},
|
|
552
|
+
'& .MuiCode-copy': {
|
|
553
|
+
cursor: 'pointer',
|
|
554
|
+
position: 'absolute',
|
|
555
|
+
top: 12,
|
|
556
|
+
right: 12,
|
|
557
|
+
display: 'inline-flex',
|
|
558
|
+
flexDirection: 'row-reverse',
|
|
559
|
+
alignItems: 'center',
|
|
560
|
+
padding: theme.spacing(0.5),
|
|
561
|
+
paddingBottom: '5px',
|
|
562
|
+
// optical alignment
|
|
563
|
+
fontFamily: _branding.brandingLightTheme.typography.fontFamily,
|
|
564
|
+
fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
|
|
565
|
+
fontSize: _branding.brandingLightTheme.typography.pxToRem(12),
|
|
566
|
+
borderRadius: 6,
|
|
567
|
+
border: '1px solid',
|
|
568
|
+
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.5),
|
|
569
|
+
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[800], 0.5),
|
|
570
|
+
color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
571
|
+
transition: theme.transitions.create(['background', 'borderColor', 'display'], {
|
|
572
|
+
duration: theme.transitions.duration.shortest
|
|
573
|
+
}),
|
|
574
|
+
'& .MuiCode-copied-label': {
|
|
575
|
+
display: 'none'
|
|
547
576
|
},
|
|
548
|
-
'
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
top: 0
|
|
553
|
-
},
|
|
554
|
-
'& .MuiCode-copy': {
|
|
555
|
-
cursor: 'pointer',
|
|
556
|
-
position: 'absolute',
|
|
557
|
-
top: 12,
|
|
558
|
-
right: 12,
|
|
559
|
-
display: 'inline-flex',
|
|
560
|
-
flexDirection: 'row-reverse',
|
|
561
|
-
alignItems: 'center',
|
|
562
|
-
padding: theme.spacing(0.5),
|
|
563
|
-
paddingBottom: '5px',
|
|
564
|
-
// optical alignment
|
|
565
|
-
fontFamily: _branding.brandingLightTheme.typography.fontFamily,
|
|
566
|
-
fontWeight: _branding.brandingLightTheme.typography.fontWeightMedium,
|
|
567
|
-
fontSize: _branding.brandingLightTheme.typography.pxToRem(12),
|
|
568
|
-
borderRadius: 6,
|
|
569
|
-
border: '1px solid',
|
|
570
|
-
borderColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[600], 0.5),
|
|
571
|
-
backgroundColor: (0, _styles.alpha)(_branding.brandingLightTheme.palette.primaryDark[800], 0.5),
|
|
572
|
-
color: `var(--muidocs-palette-grey-300, ${_branding.brandingLightTheme.palette.grey[300]})`,
|
|
573
|
-
transition: theme.transitions.create(['background', 'borderColor', 'display'], {
|
|
574
|
-
duration: theme.transitions.duration.shortest
|
|
575
|
-
}),
|
|
576
|
-
'& .MuiCode-copied-label': {
|
|
577
|
-
display: 'none'
|
|
578
|
-
},
|
|
579
|
-
'&:hover, &:focus': {
|
|
580
|
-
borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
|
|
581
|
-
backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
582
|
-
color: '#FFF',
|
|
583
|
-
'& .MuiCode-copyKeypress': {
|
|
584
|
-
display: 'block',
|
|
585
|
-
// Approximate no hover capabilities with no keyboard
|
|
586
|
-
// https://github.com/w3c/csswg-drafts/issues/3871
|
|
587
|
-
'@media (any-hover: none)': {
|
|
588
|
-
display: 'none'
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
},
|
|
577
|
+
'&:hover, &:focus': {
|
|
578
|
+
borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
|
|
579
|
+
backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
580
|
+
color: '#FFF',
|
|
592
581
|
'& .MuiCode-copyKeypress': {
|
|
593
|
-
display: '
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
'&[data-copied]': {
|
|
598
|
-
borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
|
|
599
|
-
backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
600
|
-
color: '#fff',
|
|
601
|
-
'& .MuiCode-copyKeypress': {
|
|
602
|
-
opacity: 0
|
|
603
|
-
},
|
|
604
|
-
'& .MuiCode-copy-label': {
|
|
582
|
+
display: 'block',
|
|
583
|
+
// Approximate no hover capabilities with no keyboard
|
|
584
|
+
// https://github.com/w3c/csswg-drafts/issues/3871
|
|
585
|
+
'@media (any-hover: none)': {
|
|
605
586
|
display: 'none'
|
|
606
|
-
},
|
|
607
|
-
'& .MuiCode-copied-label': {
|
|
608
|
-
display: 'block'
|
|
609
587
|
}
|
|
610
588
|
}
|
|
611
589
|
},
|
|
612
590
|
'& .MuiCode-copyKeypress': {
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
marginBottom: theme.spacing(0.2),
|
|
617
|
-
whiteSpace: 'nowrap',
|
|
618
|
-
opacity: 0.6
|
|
591
|
+
display: 'none',
|
|
592
|
+
position: 'absolute',
|
|
593
|
+
right: 34
|
|
619
594
|
},
|
|
620
|
-
'&
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
595
|
+
'&[data-copied]': {
|
|
596
|
+
borderColor: `var(--muidocs-palette-primaryDark-400, ${_branding.brandingLightTheme.palette.primaryDark[400]})`,
|
|
597
|
+
backgroundColor: `var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
598
|
+
color: '#fff',
|
|
599
|
+
'& .MuiCode-copyKeypress': {
|
|
600
|
+
opacity: 0
|
|
625
601
|
},
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
'& .feature-list': {
|
|
632
|
-
padding: 0,
|
|
633
|
-
listStyle: 'none',
|
|
634
|
-
'& li': {
|
|
635
|
-
marginBottom: 6,
|
|
636
|
-
display: 'flex',
|
|
637
|
-
alignItems: 'center',
|
|
638
|
-
gap: 12,
|
|
639
|
-
'::before': {
|
|
640
|
-
content: `url('/static/branding/pricing/yes-light.svg')`,
|
|
641
|
-
width: '18px',
|
|
642
|
-
height: '18px'
|
|
643
|
-
}
|
|
602
|
+
'& .MuiCode-copy-label': {
|
|
603
|
+
display: 'none'
|
|
604
|
+
},
|
|
605
|
+
'& .MuiCode-copied-label': {
|
|
606
|
+
display: 'block'
|
|
644
607
|
}
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
'& .MuiCode-copyKeypress': {
|
|
611
|
+
pointerEvents: 'none',
|
|
612
|
+
userSelect: 'none',
|
|
613
|
+
marginRight: theme.spacing(1.2),
|
|
614
|
+
marginBottom: theme.spacing(0.2),
|
|
615
|
+
whiteSpace: 'nowrap',
|
|
616
|
+
opacity: 0.6
|
|
617
|
+
},
|
|
618
|
+
'& li': {
|
|
619
|
+
// tight lists https://spec.commonmark.org/0.30/#tight
|
|
620
|
+
marginBottom: 4,
|
|
621
|
+
'& pre': {
|
|
622
|
+
marginTop: theme.spacing(1)
|
|
645
623
|
},
|
|
646
|
-
|
|
647
|
-
|
|
624
|
+
// loose lists https://spec.commonmark.org/0.30/#loose
|
|
625
|
+
'& > p': {
|
|
626
|
+
marginBottom: theme.spacing(1)
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
'& .feature-list': {
|
|
630
|
+
padding: 0,
|
|
631
|
+
listStyle: 'none',
|
|
632
|
+
'& li': {
|
|
633
|
+
marginBottom: 6,
|
|
648
634
|
display: 'flex',
|
|
649
635
|
alignItems: 'center',
|
|
650
|
-
gap:
|
|
651
|
-
borderBottom: `1px solid var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
652
|
-
backgroundColor: `var(--muidocs-palette-primaryDark-900, ${_branding.brandingLightTheme.palette.primaryDark[900]})`,
|
|
653
|
-
fontFamily: theme.typography.fontFamilyCode,
|
|
654
|
-
fontSize: theme.typography.pxToRem(12),
|
|
655
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
656
|
-
color: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
|
|
636
|
+
gap: 12,
|
|
657
637
|
'::before': {
|
|
658
|
-
content: `url(
|
|
659
|
-
width: '
|
|
660
|
-
height: '
|
|
661
|
-
},
|
|
662
|
-
'& + pre': {
|
|
663
|
-
margin: 0,
|
|
664
|
-
border: 'none',
|
|
665
|
-
borderRadius: 0
|
|
638
|
+
content: `url('/static/branding/pricing/yes-light.svg')`,
|
|
639
|
+
width: '18px',
|
|
640
|
+
height: '18px'
|
|
666
641
|
}
|
|
667
642
|
}
|
|
668
|
-
}
|
|
669
|
-
|
|
643
|
+
},
|
|
644
|
+
'& .MuiCode-title': {
|
|
645
|
+
padding: theme.spacing(1.5),
|
|
646
|
+
display: 'flex',
|
|
647
|
+
alignItems: 'center',
|
|
648
|
+
gap: theme.spacing(1.5),
|
|
649
|
+
borderBottom: `1px solid var(--muidocs-palette-primaryDark-700, ${_branding.brandingLightTheme.palette.primaryDark[700]})`,
|
|
650
|
+
backgroundColor: `var(--muidocs-palette-primaryDark-900, ${_branding.brandingLightTheme.palette.primaryDark[900]})`,
|
|
651
|
+
fontFamily: theme.typography.fontFamilyCode,
|
|
652
|
+
fontSize: theme.typography.pxToRem(12),
|
|
653
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
654
|
+
color: `var(--muidocs-palette-grey-200, ${_branding.brandingLightTheme.palette.grey[200]})`,
|
|
655
|
+
'::before': {
|
|
656
|
+
content: `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.3333 3.99996H8L7.06 3.05996C6.80667 2.80663 6.46667 2.66663 6.11334 2.66663H2.66667C1.93334 2.66663 1.34 3.26663 1.34 3.99996L1.33334 12C1.33334 12.7333 1.93334 13.3333 2.66667 13.3333H13.3333C14.0667 13.3333 14.6667 12.7333 14.6667 12V5.33329C14.6667 4.59996 14.0667 3.99996 13.3333 3.99996ZM12.6667 12H3.33334C2.96667 12 2.66667 11.7 2.66667 11.3333V5.99996C2.66667 5.63329 2.96667 5.33329 3.33334 5.33329H12.6667C13.0333 5.33329 13.3333 5.63329 13.3333 5.99996V11.3333C13.3333 11.7 13.0333 12 12.6667 12Z' fill='%2399CCF3'/%3E%3C/svg%3E%0A");`,
|
|
657
|
+
width: '16px',
|
|
658
|
+
height: '16px'
|
|
659
|
+
},
|
|
660
|
+
'& + pre': {
|
|
661
|
+
margin: 0,
|
|
662
|
+
border: 'none',
|
|
663
|
+
borderRadius: 0
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}), ({
|
|
670
667
|
theme
|
|
671
668
|
}) => ({
|
|
672
669
|
[`:where(${theme.vars ? '[data-mui-color-scheme="dark"]' : '.mode-dark'}) &`]: {
|