File tree Expand file tree Collapse file tree 7 files changed +19
-23
lines changed Expand file tree Collapse file tree 7 files changed +19
-23
lines changed Original file line number Diff line number Diff line change 28
28
name : material
29
29
language : ' en'
30
30
favicon : ' favicon.ico'
31
+ font : false
31
32
custom_dir : ' src/docs/_overrides'
32
33
palette :
33
34
- media : " (prefers-color-scheme: light)"
48
49
extra_css :
49
50
-
https://unpkg.com/[email protected] /themes/prism-twilight.min.css # Prism JS syntax highlighting
50
51
- docs/_assets/stylesheets/extra.css # mkDocs theme tweaks
51
- - docs/_assets/generated/docs-custom-properties.development.css # Load React UI CSS custom properties to make them accessible in the document root (outside shadowDOM) so we can preview colors etc .
52
+ - docs/_assets/generated/docs-custom-properties.development.css # Load React UI CSS custom properties to make them accessible in the document root (outside Shadow DOM), so we can set the root font size and preview colors and helpers/utilities .
52
53
53
54
# Additional JS. Mind the order!
54
55
extra_javascript :
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ See [API](#api) for all available options.
32
32
## Color Variants
33
33
34
34
To cover all possible needs of your project, Alert is available in colors from
35
- [ Feedback and Neutral color collections ] ( /docs/foundation/collections#colors ) .
35
+ [ Feedback color collection ] ( /docs/foundation/collections#colors ) .
36
36
37
37
### Success
38
38
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ This is a demo of all components supported by FormLayout.
300
300
301
301
``` docoff-react-preview
302
302
React.createElement(() => {
303
- const [fieldLayout, setFieldLayout] = React.useState('vertical ');
303
+ const [fieldLayout, setFieldLayout] = React.useState('horizontal ');
304
304
const [fruit, setFruit] = React.useState('apple');
305
305
const [isDeliveryAddress, setIsDeliveryAddress] = React.useState(true);
306
306
const [receiveNewsletter, setReceiveNewsletter] = React.useState(true);
@@ -323,16 +323,16 @@ React.createElement(() => {
323
323
<Toolbar>
324
324
<ToolbarItem>
325
325
<ButtonGroup>
326
- <Button
327
- color={fieldLayout === 'vertical' ? 'selected' : 'secondary'}
328
- label="Vertical layout"
329
- onClick={() => setFieldLayout('vertical')}
330
- />
331
326
<Button
332
327
color={fieldLayout === 'horizontal' ? 'selected' : 'secondary'}
333
328
label="Horizontal layout"
334
329
onClick={() => setFieldLayout('horizontal')}
335
330
/>
331
+ <Button
332
+ color={fieldLayout === 'vertical' ? 'selected' : 'secondary'}
333
+ label="Vertical layout"
334
+ onClick={() => setFieldLayout('vertical')}
335
+ />
336
336
</ButtonGroup>
337
337
</ToolbarItem>
338
338
</Toolbar>
@@ -388,6 +388,7 @@ React.createElement(() => {
388
388
rows={3}
389
389
/>
390
390
<FileInputField
391
+ id="my-file"
391
392
label="Attachment"
392
393
onFilesChanged={() => {}}
393
394
/>
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ supports this kind of layout as well.
145
145
label="Horizontal layout"
146
146
layout="horizontal"
147
147
>
148
- <FileInputField label="Attachment" onFilesChanged={() => {}} />
148
+ <FileInputField id="my-file" label="Attachment" onFilesChanged={() => {}} />
149
149
<Button label="Submit" />
150
150
</InputGroup>
151
151
```
Original file line number Diff line number Diff line change 20
20
/* stylelint-enable */
21
21
22
22
--docoff-code-line-height : 1.5 ;
23
- --docoff-code-font-family :
24
- "SFMono-Regular" ,
25
- "Menlo" ,
26
- "Monaco" ,
27
- "Consolas" ,
28
- "Liberation Mono" ,
29
- "Courier New" ,
30
- monospace;
23
+ --docoff-code-font-family : var (--rui-font-family-monospace );
31
24
32
25
/* Visual configuration of the `<docoff-react-preview>` live preview */
33
26
--docoff-preview-border-color : # ced4de ;
76
69
77
70
/* Document */
78
71
html {
79
- font-size : 100% ;
72
+ /* DO NOT CHANGE THE FONT SIZE. `rem` in docoff previews is calculated from the root font size which is this. */
73
+ font-size : var (--rui-font-size-base );
80
74
scroll-padding-top : 3.2rem ;
81
75
scroll-margin-top : 4rem ;
82
76
}
83
77
84
78
body {
85
- font-size : 1rem ;
79
+ --md-text-font-family : var (--rui-font-family-base );
80
+ --md-code-font-family : var (--rui-font-family-monospace );
81
+
82
+ font-size : 1em ;
86
83
background-color : var (--md-default-bg-color );
87
84
}
88
85
Original file line number Diff line number Diff line change 2
2
3
3
{% block site_meta %}
4
4
{{ super() }}
5
- < link rel ="preconnect " href ="https://fonts.googleapis.com " />
6
- < link rel ="preconnect " href ="https://fonts.gstatic.com " />
7
5
< link rel ="preconnect " href ="https://unpkg.com " />
8
6
{% endblock %}
Original file line number Diff line number Diff line change 5
5
@use " styles/theme-constants/svg" ;
6
6
7
7
@layer theme {
8
- :root ,
9
- :host {
8
+ :root {
10
9
// ============================================================================================ //
11
10
// GLOBAL TOKENS //
12
11
// ============================================================================================ //
You can’t perform that action at this time.
0 commit comments