superdesk-ui-framework 4.0.76 → 4.0.78
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/app-typescript/components/NavButton.tsx +1 -1
- package/app-typescript/components/ShowPopup.tsx +7 -0
- package/app-typescript/components/WithPopover.tsx +2 -0
- package/dist/checkbox--DO-01.png +0 -0
- package/dist/checkbox--DONT-02.png +0 -0
- package/dist/components/RadioGroup.tsx +107 -44
- package/dist/design/buttons.html +2 -2
- package/dist/design/checkbox-and-radio.html +19 -10
- package/dist/design/modals-and-dialogs.html +208 -0
- package/dist/design/switch.html +22 -9
- package/dist/dialog--do-01.png +0 -0
- package/dist/dialog--do-02.png +0 -0
- package/dist/dialog--do-03.png +0 -0
- package/dist/dialog--dont-01.png +0 -0
- package/dist/dialog--dont-02.png +0 -0
- package/dist/dialog--dont-03.png +0 -0
- package/dist/examples.bundle.css +91 -40
- package/dist/examples.bundle.js +69 -37
- package/dist/radio--DONT-02.png +0 -0
- package/dist/radio--DONT-03.png +0 -0
- package/dist/simple-dialog__structure.png +0 -0
- package/dist/superdesk-ui.bundle.js +6 -3
- package/dist/switch--DO-01.png +0 -0
- package/dist/switch--DO-02.png +0 -0
- package/dist/switch--DONT-01.png +0 -0
- package/dist/switch--DONT-02.png +0 -0
- package/package.json +1 -1
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/ShowPopup.d.ts +2 -1
- package/react/components/ShowPopup.js +5 -2
- package/react/components/WithPopover.d.ts +1 -0
- package/react/components/WithPopover.js +1 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<section class="docs-page__container">
|
|
2
|
+
<h1 class="docs-page__h2">Modals & Dialogs</h1>
|
|
3
|
+
<p class="docs-page__paragraph docs-page__paragraph--large">Dialogs and modals are essential components in Superdesk, used frequently for everything from quick confirmations to complex workflows. Given the sophisticated nature of content management, our modals often contain substantial functionality. Consistent structure and content guidelines help users navigate these interfaces confidently.</p>
|
|
4
|
+
|
|
5
|
+
<h3 class="docs-page__h3 mt-5">Structure</h3>
|
|
6
|
+
<p class="docs-page__paragraph">Every dialog consists of three main areas: <strong>Header</strong> (with title), <strong>Content</strong>, and <strong>Footer</strong>. The Header and Content are always required, while the Footer is recommended in most cases.</p>
|
|
7
|
+
|
|
8
|
+
<figure class="my-3" style="margin-inline-start: -8px;">
|
|
9
|
+
<img width="545" src="/simple-dialog__structure.png" alt="Button Tertiary">
|
|
10
|
+
</figure>
|
|
11
|
+
|
|
12
|
+
<hr class="sd-content-divider sd-content-divider--horizontal sd-content-divider--margin-large sd-content-divider--dashed" role="separator" />
|
|
13
|
+
|
|
14
|
+
<h4 class="docs-page__h4 mt-0">Header</h4>
|
|
15
|
+
<p class="docs-page__paragraph mb-0 mt-1 font-semibold">Purpose</p>
|
|
16
|
+
<p class="docs-page__paragraph mt-0">Contains the dialog title and close button. Provides immediate context about the dialog's purpose.</p>
|
|
17
|
+
<p class="docs-page__paragraph mb-0 font-semibold">Requirements</p>
|
|
18
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
19
|
+
<li>Title is always mandatory</li>
|
|
20
|
+
<li>Close (×) button aligned to the right is mandatory in most cases</li>
|
|
21
|
+
<li>Close button can only be removed when demanding a clear action from the user in the footer</li>
|
|
22
|
+
</ul>
|
|
23
|
+
|
|
24
|
+
<hr class="sd-content-divider sd-content-divider--horizontal sd-content-divider--margin-large sd-content-divider--dashed" role="separator" />
|
|
25
|
+
|
|
26
|
+
<h4 class="docs-page__h4 mt-0">Content</h4>
|
|
27
|
+
<p class="docs-page__paragraph mb-0 mt-1 font-semibold">Purpose</p>
|
|
28
|
+
<p class="docs-page__paragraph mt-0">The main area for information, forms, or other interactive elements that support the dialog's goal.</p>
|
|
29
|
+
<p class="docs-page__paragraph mb-0 font-semibold">Requirements</p>
|
|
30
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
31
|
+
<li>Always mandatory</li>
|
|
32
|
+
<li>Should clearly explain what's happening or what the user needs to do</li>
|
|
33
|
+
</ul>
|
|
34
|
+
|
|
35
|
+
<hr class="sd-content-divider sd-content-divider--horizontal sd-content-divider--margin-large sd-content-divider--dashed" role="separator" />
|
|
36
|
+
|
|
37
|
+
<h4 class="docs-page__h4 mt-0">Footer</h4>
|
|
38
|
+
<p class="docs-page__paragraph mb-0 mt-1 font-semibold">Purpose</p>
|
|
39
|
+
<p class="docs-page__paragraph mt-0">Contains action buttons that allow users to proceed, cancel, or complete the dialog's purpose.</p>
|
|
40
|
+
<p class="docs-page__paragraph mb-0 font-semibold">Requirements</p>
|
|
41
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
42
|
+
<li>Recommended in most cases but can be skipped occasionally</li>
|
|
43
|
+
<li>Rare exception: large and complex modals where actions happen inside the content area</li>
|
|
44
|
+
<li>Main action buttons always aligned to the right</li>
|
|
45
|
+
<li>Primary action positioned far right</li>
|
|
46
|
+
</ul>
|
|
47
|
+
|
|
48
|
+
<hr class="sd-content-divider sd-content-divider--horizontal sd-content-divider--margin-large" role="separator" />
|
|
49
|
+
|
|
50
|
+
<h3 class="docs-page__h3 mt-0">Content Guidelines</h3>
|
|
51
|
+
<h4 class="docs-page__h4 mt-2">Clear Titles</h4>
|
|
52
|
+
<p class="docs-page__paragraph mt-0">Use specific, descriptive titles that immediately tell users what the dialog is about.</p>
|
|
53
|
+
|
|
54
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
55
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--do">
|
|
56
|
+
<h4 class="docs-page__do-dont-block-title">Do</h4>
|
|
57
|
+
<div class="docs-page__do-dont-block-content">
|
|
58
|
+
<ul class="docs-page__unordered-list">
|
|
59
|
+
<li>"Save changes before closing?"</li>
|
|
60
|
+
<li>"Export Customer Data"</li>
|
|
61
|
+
<li>"You have unsaved changes"</li>
|
|
62
|
+
</ul>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--dont">
|
|
66
|
+
<h4 class="docs-page__do-dont-block-title">Don't</h4>
|
|
67
|
+
<div class="docs-page__do-dont-block-content">
|
|
68
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
69
|
+
<li>"Are you sure?"</li>
|
|
70
|
+
<li>"Confirmation"</li>
|
|
71
|
+
<li>"Dialog"</li>
|
|
72
|
+
</ul>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<h4 class="docs-page__h4 mt-5">Explicit Button Labels</h4>
|
|
78
|
+
<p class="docs-page__paragraph mt-0">Button text should clearly state what will happen when clicked, not generic actions.</p>
|
|
79
|
+
|
|
80
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
81
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--do">
|
|
82
|
+
<h4 class="docs-page__do-dont-block-title">Do</h4>
|
|
83
|
+
<div class="docs-page__do-dont-block-content">
|
|
84
|
+
<ul class="docs-page__unordered-list">
|
|
85
|
+
<li>"Delete Profile"</li>
|
|
86
|
+
<li>"Save & Continue"</li>
|
|
87
|
+
<li>"Discard Changes"</li>
|
|
88
|
+
</ul>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--dont">
|
|
92
|
+
<h4 class="docs-page__do-dont-block-title">Don't</h4>
|
|
93
|
+
<div class="docs-page__do-dont-block-content">
|
|
94
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
95
|
+
<li>"Ignore"</li>
|
|
96
|
+
<li>"Submit"</li>
|
|
97
|
+
<li>"Yes"</li>
|
|
98
|
+
</ul>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<h4 class="docs-page__h4 mt-5">Clear Content</h4>
|
|
104
|
+
<p class="docs-page__paragraph mt-0">Explain what's happening and what the outcome will be. Users should never guess what an action will do.</p>
|
|
105
|
+
|
|
106
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
107
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--do">
|
|
108
|
+
<h4 class="docs-page__do-dont-block-title">Do</h4>
|
|
109
|
+
<div class="docs-page__do-dont-block-content">
|
|
110
|
+
<ul class="docs-page__unordered-list">
|
|
111
|
+
<li>"This will permanently delete the profile and all its data. This action cannot be undone."</li>
|
|
112
|
+
<li>"Your changes will be saved and you'll return to the article."</li>
|
|
113
|
+
</ul>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="docs-page__do-dont-block docs-page__do-dont-block--dont">
|
|
117
|
+
<h4 class="docs-page__do-dont-block-title">Don't</h4>
|
|
118
|
+
<div class="docs-page__do-dont-block-content">
|
|
119
|
+
<ul class="docs-page__unordered-list mt-1">
|
|
120
|
+
<li>"This action will affect your data."</li>
|
|
121
|
+
<li>"Proceed with the operation?"</li>
|
|
122
|
+
</ul>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<hr class="sd-content-divider sd-content-divider--horizontal sd-content-divider--margin-large" role="separator" />
|
|
128
|
+
|
|
129
|
+
<h3 class="docs-page__h3 mt-0">Layout Guidelines</h3>
|
|
130
|
+
<h4 class="docs-page__h4 mt-2 mb-2">Action Alignment</h4>
|
|
131
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
132
|
+
<div class="docs-page__content-block-item">
|
|
133
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
134
|
+
<img width="420" src="/dialog--do-01.png" alt="Dialog - Do - example one.">
|
|
135
|
+
</figure>
|
|
136
|
+
<figcaption class="docs-page__figure-caption">
|
|
137
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--do">Do.</p>
|
|
138
|
+
<p class="docs-page__caption-text">Align primary and secondary actions to the right, with the primary action positioned furthest right.</p>
|
|
139
|
+
</figcaption>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="docs-page__content-block-item">
|
|
142
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
143
|
+
<img width="420" src="/dialog--dont-01.png" alt="Dialog - Don't - example one.">
|
|
144
|
+
</figure>
|
|
145
|
+
<figcaption class="docs-page__figure-caption">
|
|
146
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--dont">Don't.</p>
|
|
147
|
+
<p class="docs-page__caption-text">Place actions on the left side or center them, as this breaks expected interaction patterns.</p>
|
|
148
|
+
</figcaption>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
</div>
|
|
152
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
153
|
+
<div class="docs-page__content-block-item">
|
|
154
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
155
|
+
<img width="420" src="/dialog--do-02.png" alt="Dialog - Do - example two.">
|
|
156
|
+
</figure>
|
|
157
|
+
<figcaption class="docs-page__figure-caption">
|
|
158
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--do">Do.</p>
|
|
159
|
+
<p class="docs-page__caption-text">Use consistent spacing between buttons in the footer. The same spacing principles from our Button Guidelines apply here - use the <code>ButtonGroup</code> component when possible, or the <code>--gap-1</code> spacing variable for custom layouts. For more detailed information, see the guidelines for the <a href="#/design/buttons">Button component</a>.</p>
|
|
160
|
+
</figcaption>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="docs-page__content-block-item">
|
|
163
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
164
|
+
<img width="420" src="/dialog--dont-02.png" alt="Dialog - Don't - example two.">
|
|
165
|
+
</figure>
|
|
166
|
+
<figcaption class="docs-page__figure-caption">
|
|
167
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--dont">Don't.</p>
|
|
168
|
+
<p class="docs-page__caption-text">Place footer buttons too close together or use random spacing. Poorly spaced actions create confusion, increase the risk of accidental clicks, and make the interface feel inconsistent.</p>
|
|
169
|
+
</figcaption>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<h4 class="docs-page__h4 mt-4 mb-2">Close Button Usage</h4>
|
|
175
|
+
<div class="docs-page__content-block d-flex flex-wrap gap-3">
|
|
176
|
+
<div class="docs-page__content-block-item">
|
|
177
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
178
|
+
<img width="420" src="/dialog--do-03.png" alt="Dialog - Do - example three.">
|
|
179
|
+
</figure>
|
|
180
|
+
<figcaption class="docs-page__figure-caption">
|
|
181
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--do">Do.</p>
|
|
182
|
+
<p class="docs-page__caption-text">Include the close (×) button in most dialogs to give users a clear escape route.</p>
|
|
183
|
+
</figcaption>
|
|
184
|
+
</div>
|
|
185
|
+
<div class="docs-page__content-block-item">
|
|
186
|
+
<figure class="docs-page__figure-media py-5" style="background-color: hsla(214, 13%, 92%, 1);">
|
|
187
|
+
<img width="420" src="/dialog--dont-03.png" alt="Dialog - Don't - example three.">
|
|
188
|
+
</figure>
|
|
189
|
+
<figcaption class="docs-page__figure-caption">
|
|
190
|
+
<p class="docs-page__caption-heading docs-page__caption-heading--dont">Don't.</p>
|
|
191
|
+
<p class="docs-page__caption-text">Remove the close button unless you specifically need to force a decision (like unsaved changes warnings).</p>
|
|
192
|
+
</figcaption>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<div class="docs-page__button-grid">
|
|
198
|
+
<a class="docs-page__graphic-btn" href="#/components/modal" target="_blank">
|
|
199
|
+
<figure class="docs-page__graphic-btn-graphic">
|
|
200
|
+
<img src="/illustration-small--react.svg" alt="React components">
|
|
201
|
+
</figure>
|
|
202
|
+
<label class="docs-page__graphic-btn-label">
|
|
203
|
+
<span>View Modal component</span>
|
|
204
|
+
<span class="docs-page__small-text">Components</span>
|
|
205
|
+
</label>
|
|
206
|
+
</a>
|
|
207
|
+
</div>
|
|
208
|
+
</section>
|
package/dist/design/switch.html
CHANGED
|
@@ -1,46 +1,59 @@
|
|
|
1
1
|
<section class="docs-page__container">
|
|
2
|
-
<h2 class="docs-page__h2">Switch
|
|
2
|
+
<h2 class="docs-page__h2">Switch guidlines</h2>
|
|
3
|
+
<p class="docs-page__paragraph docs-page__paragraph--large">Similar rules apply to switches as for checkboxes, with the key difference being when to use them. Use switches for settings that take effect immediately without requiring a confirmation button - the switch instantly affects the view or functionality. Use the <code>SwitchGroup</code> component when grouping multiple switches.</p>
|
|
3
4
|
<div class="docs-page__content-block">
|
|
4
5
|
<div class="docs-page__content-block-item">
|
|
5
6
|
<figure class="docs-page__figure-media">
|
|
6
|
-
<img src="/switch--do-01.png" alt="Switch - Do">
|
|
7
|
+
<img width="360" src="/switch--do-01.png" alt="Switch - Do">
|
|
7
8
|
</figure>
|
|
8
9
|
<figcaption class="docs-page__figure-caption">
|
|
9
10
|
<p class="docs-page__caption-heading docs-page__caption-heading--do">Do.</p>
|
|
10
|
-
<p class="docs-page__caption-text">List multiple switches in a vertical list
|
|
11
|
+
<p class="docs-page__caption-text">List multiple switches in a vertical list with labels on the right side of the switch. Always use plain labels on the same line as the switch. Use <code>SwitchGroup</code> to organize multiple switches with consistent spacing and alignment.</p>
|
|
11
12
|
</figcaption>
|
|
12
13
|
</div>
|
|
13
14
|
<div class="docs-page__content-block-item">
|
|
14
15
|
<figure class="docs-page__figure-media">
|
|
15
|
-
<img src="/switch--do-02.png" alt="Switch - Caution">
|
|
16
|
+
<img width="360" src="/switch--do-02.png" alt="Switch - Caution">
|
|
16
17
|
</figure>
|
|
17
18
|
<figcaption class="docs-page__figure-caption">
|
|
18
19
|
<p class="docs-page__caption-heading docs-page__caption-heading--caution">Caution.</p>
|
|
19
|
-
<p class="docs-page__caption-text">In contained modules
|
|
20
|
+
<p class="docs-page__caption-text">In contained modules narrower than 400 pixels, you may place labels on the left and align switches to the right. This should be avoided when possible, as it makes it harder for users to pair labels with their switches. Consider using clear visual grouping in such cases.</p>
|
|
20
21
|
</figcaption>
|
|
21
22
|
</div>
|
|
22
23
|
</div>
|
|
23
24
|
<div class="docs-page__content-block">
|
|
24
25
|
<div class="docs-page__content-block-item">
|
|
25
26
|
<figure class="docs-page__figure-media">
|
|
26
|
-
<img src="/switch--dont-01.png" alt="Switch - Don't">
|
|
27
|
+
<img width="360" src="/switch--dont-01.png" alt="Switch - Don't">
|
|
27
28
|
</figure>
|
|
28
29
|
<figcaption class="docs-page__figure-caption">
|
|
29
30
|
<p class="docs-page__caption-heading docs-page__caption-heading--dont">Don't.</p>
|
|
30
|
-
<p class="docs-page__caption-text">
|
|
31
|
+
<p class="docs-page__caption-text">List switches with labels on the left in normal layouts. Only place labels to the left when the containing block has right text alignment.</p>
|
|
31
32
|
</figcaption>
|
|
32
33
|
</div>
|
|
33
34
|
<div class="docs-page__content-block-item">
|
|
34
35
|
<figure class="docs-page__figure-media">
|
|
35
|
-
<img src="/switch--dont-02.png" alt="Switch - Don't">
|
|
36
|
+
<img width="360" src="/switch--dont-02.png" alt="Switch - Don't">
|
|
36
37
|
</figure>
|
|
37
38
|
<figcaption class="docs-page__figure-caption">
|
|
38
39
|
<p class="docs-page__caption-heading docs-page__caption-heading--dont">Don't</p>
|
|
39
|
-
<p class="docs-page__caption-text">
|
|
40
|
+
<p class="docs-page__caption-text">List more than two switches horizontally in a single line - this creates scanning difficulties and breaks the expected vertical rhythm.</p>
|
|
40
41
|
</figcaption>
|
|
41
42
|
</div>
|
|
42
43
|
</div>
|
|
43
44
|
|
|
45
|
+
<h4 class="docs-page__h4 mt-5 mb-2">Component Usage</h4>
|
|
46
|
+
<ul class="docs-page__unordered-list mt-1 mb-5">
|
|
47
|
+
<li><strong>Switch:</strong> Individual switch component for single or multiple switch implementations</li>
|
|
48
|
+
<li><strong>SwitchGroup:</strong> Used to group multiple <code>Switch</code> components with consistent spacing and alignment</li>
|
|
49
|
+
</ul>
|
|
50
|
+
|
|
51
|
+
<h4 class="docs-page__h4 mt-5 mb-2">When to Use Switches vs Checkboxes</h4>
|
|
52
|
+
<ul class="docs-page__unordered-list mt-1 mb-5">
|
|
53
|
+
<li><strong>Switches:</strong> For settings that take effect immediately (toggle dark mode, enable notifications)</li>
|
|
54
|
+
<li><strong>Checkboxes:</strong> For selections that require confirmation or submission (form selections, bulk actions)</li>
|
|
55
|
+
</ul>
|
|
56
|
+
|
|
44
57
|
<div class="docs-page__button-grid">
|
|
45
58
|
<a class="docs-page__graphic-btn" href="#/react/switch" target="_blank">
|
|
46
59
|
<figure class="docs-page__graphic-btn-graphic">
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/examples.bundle.css
CHANGED
|
@@ -473,7 +473,7 @@ hr {
|
|
|
473
473
|
margin: 24px 0;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
|
|
476
|
+
.docs-page__h1 {
|
|
477
477
|
font-size: 18px;
|
|
478
478
|
font-weight: 400;
|
|
479
479
|
line-height: 100%;
|
|
@@ -482,15 +482,32 @@ h1.docs-page__h1 {
|
|
|
482
482
|
font-family: 'Merriweather', serif;
|
|
483
483
|
letter-spacing: 0.02em;
|
|
484
484
|
}
|
|
485
|
-
|
|
486
|
-
font-size:
|
|
485
|
+
.docs-page__h2 {
|
|
486
|
+
font-size: 40px;
|
|
487
487
|
font-weight: 700;
|
|
488
|
-
line-height:
|
|
488
|
+
line-height: 120%;
|
|
489
489
|
font-family: 'Merriweather', serif;
|
|
490
490
|
margin: 0 0 0.6em 0;
|
|
491
491
|
}
|
|
492
|
-
|
|
493
|
-
|
|
492
|
+
.docs-page__h3 {
|
|
493
|
+
font-size: 32px;
|
|
494
|
+
font-weight: 700;
|
|
495
|
+
line-height: 120%;
|
|
496
|
+
font-family: 'Merriweather', serif;
|
|
497
|
+
margin: 2em 0 0.4em 0;
|
|
498
|
+
}
|
|
499
|
+
.docs-page__h3--small-top-m {
|
|
500
|
+
margin-top: 1em;
|
|
501
|
+
}
|
|
502
|
+
.docs-page__h4 {
|
|
503
|
+
font-size: 22px;
|
|
504
|
+
font-weight: 700;
|
|
505
|
+
line-height: 120%;
|
|
506
|
+
font-family: 'Merriweather', serif;
|
|
507
|
+
margin: 1em 0 0.2em 0;
|
|
508
|
+
color: var(--color-text-muted);
|
|
509
|
+
}
|
|
510
|
+
.docs-page__group-heading {
|
|
494
511
|
font-size: 36px;
|
|
495
512
|
font-weight: 300;
|
|
496
513
|
margin: 1.6em 0 -0.6em 0;
|
|
@@ -498,7 +515,7 @@ h2.docs-page__group-heading {
|
|
|
498
515
|
color: #747474;
|
|
499
516
|
color: #999;
|
|
500
517
|
}
|
|
501
|
-
|
|
518
|
+
.docs-page__group-heading:first-of-type {
|
|
502
519
|
margin-top: 1em;
|
|
503
520
|
}
|
|
504
521
|
.docs-page__hero {
|
|
@@ -510,16 +527,6 @@ h2.docs-page__group-heading:first-of-type {
|
|
|
510
527
|
margin: 32px auto;
|
|
511
528
|
}
|
|
512
529
|
|
|
513
|
-
h3.docs-page__h3 {
|
|
514
|
-
font-size: 24px;
|
|
515
|
-
font-weight: 700;
|
|
516
|
-
line-height: 140%;
|
|
517
|
-
font-family: 'Merriweather', serif;
|
|
518
|
-
margin: 2em 0 0.4em 0;
|
|
519
|
-
}
|
|
520
|
-
h3.docs-page__h3--small-top-m {
|
|
521
|
-
margin-top: 1em;
|
|
522
|
-
}
|
|
523
530
|
.docs-page__rule {
|
|
524
531
|
border: none;
|
|
525
532
|
border-width: 2px;
|
|
@@ -566,12 +573,6 @@ h3.docs-page__h3--small-top-m {
|
|
|
566
573
|
text-align: center;
|
|
567
574
|
margin: 0 auto 32px;
|
|
568
575
|
}
|
|
569
|
-
|
|
570
|
-
h4.docs-page__h4 {
|
|
571
|
-
font-size: 18px;
|
|
572
|
-
line-height: 140%;
|
|
573
|
-
margin: 0 0 0.4em 0;
|
|
574
|
-
}
|
|
575
576
|
.docs-page__paragraph {
|
|
576
577
|
font-size: 16px;
|
|
577
578
|
margin: 1em 0;
|
|
@@ -742,6 +743,10 @@ h4.docs-page__h4 {
|
|
|
742
743
|
overflow-y: auto;
|
|
743
744
|
position: relative;
|
|
744
745
|
background-color: var(--docs-page-color-bg-00);
|
|
746
|
+
a {
|
|
747
|
+
color: var(--sd-colour-interactive);
|
|
748
|
+
text-decoration: dotted;
|
|
749
|
+
}
|
|
745
750
|
}
|
|
746
751
|
.docs-page__masthead {
|
|
747
752
|
display: flex;
|
|
@@ -1081,8 +1086,9 @@ pre.prettyprint {
|
|
|
1081
1086
|
}
|
|
1082
1087
|
|
|
1083
1088
|
.docs-page__paragraph code,
|
|
1084
|
-
.docs-page__caption-text code
|
|
1085
|
-
|
|
1089
|
+
.docs-page__caption-text code,
|
|
1090
|
+
.docs-page__unordered-list code {
|
|
1091
|
+
font-size: 95%;
|
|
1086
1092
|
padding: 0 0.4em;
|
|
1087
1093
|
background-color: var(--sd-colour-interactive--alpha-20);
|
|
1088
1094
|
border-radius: 3px;
|
|
@@ -1092,12 +1098,14 @@ pre.prettyprint {
|
|
|
1092
1098
|
vertical-align: baseline;
|
|
1093
1099
|
color: var(--color-text);
|
|
1094
1100
|
}
|
|
1101
|
+
.docs-page__unordered-list strong {
|
|
1102
|
+
font-weight: 600;
|
|
1103
|
+
}
|
|
1095
1104
|
|
|
1096
1105
|
.docs-page__unordered-list {
|
|
1097
1106
|
font-size: 16px;
|
|
1098
1107
|
margin: 1em 0 2em;
|
|
1099
1108
|
line-height: 150%;
|
|
1100
|
-
font-weight: 300;
|
|
1101
1109
|
}
|
|
1102
1110
|
.docs-page__unordered-list li {
|
|
1103
1111
|
list-style-type: disc;
|
|
@@ -1226,7 +1234,7 @@ pre.prettyprint {
|
|
|
1226
1234
|
display: flex;
|
|
1227
1235
|
align-items: center;
|
|
1228
1236
|
justify-content: center;
|
|
1229
|
-
border-radius:
|
|
1237
|
+
border-radius: var(--b-radius--large);
|
|
1230
1238
|
}
|
|
1231
1239
|
.docs-page__figure-media img {
|
|
1232
1240
|
max-width: 100%;
|
|
@@ -1239,31 +1247,33 @@ pre.prettyprint {
|
|
|
1239
1247
|
font-size: 14px;
|
|
1240
1248
|
margin-top: 12px;
|
|
1241
1249
|
line-height: 150%;
|
|
1250
|
+
text-wrap: pretty;
|
|
1242
1251
|
}
|
|
1243
1252
|
.docs-page__caption-heading {
|
|
1244
|
-
border-top:
|
|
1245
|
-
font-size:
|
|
1253
|
+
border-top: 4px solid;
|
|
1254
|
+
font-size: 16px;
|
|
1246
1255
|
font-weight: 500;
|
|
1247
1256
|
margin: 0;
|
|
1248
1257
|
max-width: 100%;
|
|
1249
|
-
padding:
|
|
1250
|
-
margin-bottom:
|
|
1258
|
+
padding: var(--space--1) var(--space--1-5) var(--space--1) var(--space--1-5);
|
|
1259
|
+
margin-bottom: var(--space--1-5);
|
|
1251
1260
|
line-height: 120%;
|
|
1261
|
+
border-radius: var(--b-radius--medium);
|
|
1252
1262
|
}
|
|
1253
1263
|
.docs-page__caption-heading--do {
|
|
1254
|
-
border-color:
|
|
1255
|
-
color:
|
|
1256
|
-
background-color:
|
|
1264
|
+
border-color: var(--color-success-highlight);
|
|
1265
|
+
color: var(--color-success-default);
|
|
1266
|
+
background-color: var(--color-success-translucent);
|
|
1257
1267
|
}
|
|
1258
1268
|
.docs-page__caption-heading--dont {
|
|
1259
|
-
border-color:
|
|
1260
|
-
color:
|
|
1261
|
-
background-color:
|
|
1269
|
+
border-color: var(--color-alert-highlight);
|
|
1270
|
+
color: var(--color-alert-default);
|
|
1271
|
+
background-color: var(--color-alert-translucent);
|
|
1262
1272
|
}
|
|
1263
1273
|
.docs-page__caption-heading--caution {
|
|
1264
|
-
border-color:
|
|
1265
|
-
color:
|
|
1266
|
-
background-color:
|
|
1274
|
+
border-color: var(--color-warning-highlight);
|
|
1275
|
+
color: var(--color-warning-default);
|
|
1276
|
+
background-color: var(--color-warning-translucent);
|
|
1267
1277
|
}
|
|
1268
1278
|
|
|
1269
1279
|
.docs-page__text-align--center {
|
|
@@ -1519,6 +1529,47 @@ pre[class*='language-'] {
|
|
|
1519
1529
|
background: hsl(214, 13%, 8%);
|
|
1520
1530
|
}
|
|
1521
1531
|
|
|
1532
|
+
.docs-page__do-dont-block {
|
|
1533
|
+
background-color: var(--sd-item__main-Bg);
|
|
1534
|
+
border-radius: var(--b-radius--large);
|
|
1535
|
+
overflow: hidden;
|
|
1536
|
+
border: 1px solid var(--sd-colour-line--medium);
|
|
1537
|
+
flex: 1 1%;
|
|
1538
|
+
min-width: 400px;
|
|
1539
|
+
|
|
1540
|
+
&.docs-page__do-dont-block--do {
|
|
1541
|
+
.docs-page__do-dont-block-title {
|
|
1542
|
+
border-color: var(--color-success-highlight);
|
|
1543
|
+
color: var(--color-success-default);
|
|
1544
|
+
background-color: var(--color-success-translucent);
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
&.docs-page__do-dont-block--dont {
|
|
1549
|
+
.docs-page__do-dont-block-title {
|
|
1550
|
+
border-color: var(--color-alert-highlight);
|
|
1551
|
+
color: var(--color-alert-default);
|
|
1552
|
+
background-color: var(--color-alert-translucent);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.docs-page__do-dont-block-title {
|
|
1558
|
+
font-size: 16px;
|
|
1559
|
+
font-weight: 500;
|
|
1560
|
+
line-height: 1;
|
|
1561
|
+
padding: var(--space--1-5) var(--space--2);
|
|
1562
|
+
border-radius: var(--b-radius--large) var(--b-radius--large) 0 0;
|
|
1563
|
+
border-bottom: 4px solid var(--sd-colour-line--medium);
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
.docs-page__do-dont-block-content {
|
|
1567
|
+
padding: var(--space--1);
|
|
1568
|
+
.docs-page__unordered-list {
|
|
1569
|
+
margin-block: var(--space--1-5);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1522
1573
|
/*// extra large screen media query /100em = 1600px/*/
|
|
1523
1574
|
@media only screen and (min-width: 100em) {
|
|
1524
1575
|
.docs-page__section {
|